Package quadbase.scheduler
Class QbScheduler
java.lang.Object
quadbase.scheduler.QbScheduler
The QbScheduler class enables the user to invoke the Quadbase EspressReport Scheduler application
using the API.
-
Constructor Summary
ConstructorsConstructorDescriptionQbScheduler(Applet applet, JFrame frame) Allocates a new QbScheduler Object giving it a handle to an applet or a frame if necessary to display the Scheduler in an applet or frame. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether Insert Command is enabled or not.Returns the scheduler as a JPanel.Gets the String name of the security level that the user will operate at.static Stringreturn servlet contextstatic voidsetCommProtocol(String str) Sets the protocol to be used to connect to the Application server.static voidsetCommUrl(String comm_url) Sets the communication URL to be the comm_url string.static final voidsetDebugMode(int mode) set debug mode to display debug statementstatic final voidsetDebugMode(String mode) set debug mode to display debug statementvoidsetInsertCommandEnabled(boolean b) Sets whether the user can see the Insert Command function.voidsetRootDirectoryForBrowse(String browseRoot) Restricts the user to not be able to browse to any location above the browseRoot directory.voidsetSecurityLevel(String securityLevel) Sets the security level associated with this Scheduler with a String name of the security level setup previously by the administrator.static voidsetServerAddress(String address) Set the server address of EspressManager.static voidsetServerHosts(Vector<String> hostnames) Set the list of host names for EspressManager when tunneling is used.static voidsetServerPortNumber(int port) Set the port number of EspressManager.static voidsetServletContext(String context) set servlet contextstatic voidsetServletRunner(String comm_url) Set servlet runner hostname and port number Note: this static method MUST be called before any QbChart constructorvoidsetSysExitOnExit(boolean state) Sets the state of whether System.exit() is called when the user selects Done.booleanGets the state of whether System.exit() is called when the user selects Done.static voiduseServlet(boolean b) Determines whether to use SOCKET or HTTP or SERVLET for chart server connection Note that this static method MUST be called before any QbChart constructor.
-
Constructor Details
-
QbScheduler
Allocates a new QbScheduler Object giving it a handle to an applet or a frame if necessary to display the Scheduler in an applet or frame.
-
-
Method Details
-
setCommProtocol
Sets the protocol to be used to connect to the Application server.- Parameters:
str- if the str is "http" (ignoring case), then http protocol will be used to communicate with the server, other protocol are ignored.
-
setCommUrl
Sets the communication URL to be the comm_url string. -
setDebugMode
set debug mode to display debug statement -
setDebugMode
public static final void setDebugMode(int mode) set debug mode to display debug statement -
getScheduler
Returns the scheduler as a JPanel. -
setRootDirectoryForBrowse
Restricts the user to not be able to browse to any location above the browseRoot directory. -
setInsertCommandEnabled
public void setInsertCommandEnabled(boolean b) Sets whether the user can see the Insert Command function. -
getInsertCommandEnabled
public boolean getInsertCommandEnabled()Returns whether Insert Command is enabled or not. -
setSecurityLevel
Sets the security level associated with this Scheduler with a String name of the security level setup previously by the administrator. -
getSecurityLevel
Gets the String name of the security level that the user will operate at. -
setServerAddress
Set 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) Set 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
Set 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
Set servlet runner hostname and port number Note: this static method MUST be called before any QbChart constructor- 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 Note that this static method MUST be called before any QbChart constructor.- Parameters:
b- If true use SERVLET connection, otherwise use other connection The default value is false.
-
setServletContext
set servlet context -
getServletContext
return servlet context -
setSysExitOnExit
public void setSysExitOnExit(boolean state) Sets the state of whether System.exit() is called when the user selects Done.- Parameters:
state- the state
-
sysExitOnExit
public boolean sysExitOnExit()Gets the state of whether System.exit() is called when the user selects Done.- Returns:
- the current state
-