Package quadbase.scheduler
Class ScheduleModifier
java.lang.Object
quadbase.scheduler.ScheduleModifier
Contains static API methods to manage tasks in the scheduler. A typical use of this class
involves the following:
// 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddScheduleTask(ScheduleObject schObj) Adds Schedule Task into Schedulerstatic voidconnectServer(Object object) Connects to serverstatic Vector<ScheduleObject> Returns Vector of ScheduleObject which are waiting to exportstatic Vector<ScheduleObject> getScheduleList(String searchTips) Returns Vector of ScheduleObject which are waiting to export and contains the searchTips in either export location or schedule job namestatic StringReturns servlet contextstatic voidmodifyScheduleTask(ScheduleObject schObj, int idx) Modifies ScheduleObject in specific indexstatic voidremoveScheduleTask(ScheduleObject schObj) Removes Schedule Object from schedulerstatic voidAsks server to write the schedule task job to file so schedule job remains when user restarts serverstatic voidsetServerAddress(String address) Sets the server address of EspressManager.static voidsetServerHosts(Vector<String> hostnames) Sets the list of host names for EspressManager when tunneling is used.static voidsetServerPortNumber(int port) Sets the port number of EspressManager.static voidsetServletContext(String context) Sets servlet contextstatic voidsetServletRunner(String comm_url) Sets servlet runner hostname and port numberstatic voiduseServlet(boolean b) Determines whether to use SOCKET or HTTP or SERVLET for chart server connection
-
Constructor Details
-
ScheduleModifier
public ScheduleModifier()
-
-
Method Details
-
connectServer
Connects to server- Parameters:
object- can be null, applet or frame
-
setServerAddress
Sets the server address of EspressManager. Use this address instead of the one provided in the espressmanager.cfg file. It also eliminates the need of the espressmanager.cfg file in the working directory.- Throws:
UnknownHostException
-
setServerPortNumber
public static void setServerPortNumber(int port) Sets the port number of EspressManager. Use this port number instead of the one provided in the espressmanager.cfg file. It also eliminates the need of the espressmanager.cfg file in the working directory. -
setServerHosts
Sets the list of host names for EspressManager when tunneling is used. Use these hosts along with the ones provided in the espressmanager.cfg file. If the espressmanager.cfg file is not present, then only these hosts will be used. -
setServletRunner
Sets servlet runner hostname and port number- Parameters:
comm_url- servlet runner hostname and port number
-
useServlet
public static void useServlet(boolean b) Determines whether to use SOCKET or HTTP or SERVLET for chart server connection- Parameters:
b- If true use SERVLET connection, otherwise use other connection The default value is false.
-
getServletContext
Returns servlet context -
setServletContext
Sets servlet context -
getScheduleList
Returns Vector of ScheduleObject which are waiting to export- Throws:
Exception
-
getScheduleList
Returns Vector of ScheduleObject which are waiting to export and contains the searchTips in either export location or schedule job name- Throws:
Exception
-
modifyScheduleTask
Modifies ScheduleObject in specific index- Parameters:
schObj- new ScheduleObject- Throws:
Exception
-
addScheduleTask
Adds Schedule Task into Scheduler- Parameters:
schObj- new ScheduleObject- Throws:
Exception
-
removeScheduleTask
Removes Schedule Object from scheduler- Parameters:
schObj- the scheduleObject that user wants to remove- Throws:
Exception
-
saveScheduleTask
Asks server to write the schedule task job to file so schedule job remains when user restarts server- Throws:
Exception
-