public class ScheduleModifier
extends java.lang.Object
// first connect to Espress Manager
ScheduleModifier.connectServer(null);
// allocate the ScheduleObject
ScheduleObject sObj = ...;
// set the desired settings for this schedule task
sObj.setFileLocation("Templates/SAMPLE.rpt");
// ...
// add the task (ScheduleObject) to the scheduler
ScheduleModifier.addScheduleTask(sObj);
Constructor and Description |
---|
ScheduleModifier() |
Modifier and Type | Method and Description |
---|---|
static void |
addScheduleTask(ScheduleObject schObj)
Adds Schedule Task into Scheduler
|
static void |
connectServer(java.lang.Object object)
Connects to server
|
static java.util.Vector<ScheduleObject> |
getScheduleList()
Returns Vector of ScheduleObject which are waiting to export
|
static java.util.Vector<ScheduleObject> |
getScheduleList(java.lang.String searchTips)
Returns Vector of ScheduleObject which are waiting to export and contains the searchTips in
either export location or schedule job name
|
static java.lang.String |
getServletContext()
Returns servlet context
|
static void |
modifyScheduleTask(ScheduleObject schObj,
int idx)
Modifies ScheduleObject in specific index
|
static void |
removeScheduleTask(ScheduleObject schObj)
Removes Schedule Object from scheduler
|
static void |
saveScheduleTask()
Asks server to write the schedule task job to file so schedule job remains when user restarts
server
|
static void |
setServerAddress(java.lang.String address)
Sets the server address of EspressManager.
|
static void |
setServerHosts(java.util.Vector<java.lang.String> hostnames)
Sets the list of host names for EspressManager when tunneling is used.
|
static void |
setServerPortNumber(int port)
Sets the port number of EspressManager.
|
static void |
setServletContext(java.lang.String context)
Sets servlet context
|
static void |
setServletRunner(java.lang.String comm_url)
Sets servlet runner hostname and port number
|
static void |
useServlet(boolean b)
Determines whether to use SOCKET or HTTP or SERVLET for chart server connection
|
public static void connectServer(java.lang.Object object)
object
- can be null, applet or framepublic static void setServerAddress(java.lang.String address) throws java.net.UnknownHostException
java.net.UnknownHostException
public static void setServerPortNumber(int port)
public static void setServerHosts(java.util.Vector<java.lang.String> hostnames)
public static void setServletRunner(java.lang.String comm_url)
comm_url
- servlet runner hostname and port numberpublic static void useServlet(boolean b)
b
- If true use SERVLET connection, otherwise use other connection The default value
is false.public static java.lang.String getServletContext()
public static void setServletContext(java.lang.String context)
public static java.util.Vector<ScheduleObject> getScheduleList() throws java.lang.Exception
java.lang.Exception
public static java.util.Vector<ScheduleObject> getScheduleList(java.lang.String searchTips) throws java.lang.Exception
java.lang.Exception
public static void modifyScheduleTask(ScheduleObject schObj, int idx) throws java.lang.Exception
schObj
- new ScheduleObjectjava.lang.Exception
public static void addScheduleTask(ScheduleObject schObj) throws java.lang.Exception
schObj
- new ScheduleObjectjava.lang.Exception
public static void removeScheduleTask(ScheduleObject schObj) throws java.lang.Exception
schObj
- the scheduleObject that user wants to removejava.lang.Exception
public static void saveScheduleTask() throws java.lang.Exception
java.lang.Exception