EspressReport 6.6

quadbase.scheduler
Class QbScheduler

java.lang.Object
  extended by quadbase.scheduler.QbScheduler

public class QbScheduler
extends java.lang.Object

The QbScheduler class enables the user to invoke the Quadbase EspressReport Scheduler application using the API.


Constructor Summary
QbScheduler(java.applet.Applet applet, javax.swing.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
 boolean getInsertCommandEnabled()
          Returns whether Insert Command is enabled or not.
 javax.swing.JPanel getScheduler()
          Returns the scheduler as a JPanel.
 java.lang.String getSecurityLevel()
          Gets the String name of the security level that the user will operate at.
static java.lang.String getServletContext()
          return servlet context
static void setCommProtocol(java.lang.String str)
          Sets the protocol to be used to connect to the Application server.
static void setCommUrl(java.lang.String comm_url)
          Sets the communication URL to be the comm_url string.
static void setDebugMode(int mode)
          set debug mode to display debug statement
static void setDebugMode(java.lang.String mode)
          set debug mode to display debug statement
 void setInsertCommandEnabled(boolean b)
          Sets whether the user can see the Insert Command function.
 void setRootDirectoryForBrowse(java.lang.String browseRoot)
          Restricts the user to not be able to browse to any location above the browseRoot directory.
 void setSecurityLevel(java.lang.String securityLevel)
          Sets the security level associated with this Scheduler with a String name of the security level setup previously by the administrator.
static void setServerAddress(java.lang.String address)
          Set the server address of EspressManager.
static void setServerHosts(java.util.Vector<java.lang.String> hostnames)
          Set the list of host names for EspressManager when tunneling is used.
static void setServerPortNumber(int port)
          Set the port number of EspressManager.
static void setServletContext(java.lang.String context)
          set servlet context
static void setServletRunner(java.lang.String comm_url)
          Set servlet runner hostname and port number Note: this static method MUST be called before any QbChart constructor
 void setSysExitOnExit(boolean state)
          Sets the state of whether System.exit() is called when the user selects Done.
 boolean sysExitOnExit()
          Gets the state of whether System.exit() is called when the user selects Done.
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QbScheduler

public QbScheduler(java.applet.Applet applet,
                   javax.swing.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 Detail

setCommProtocol

public static void setCommProtocol(java.lang.String str)
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

public static void setCommUrl(java.lang.String comm_url)
Sets the communication URL to be the comm_url string.


setDebugMode

public static final void setDebugMode(java.lang.String mode)
set debug mode to display debug statement


setDebugMode

public static final void setDebugMode(int mode)
set debug mode to display debug statement


getScheduler

public javax.swing.JPanel getScheduler()
Returns the scheduler as a JPanel.


setRootDirectoryForBrowse

public void setRootDirectoryForBrowse(java.lang.String browseRoot)
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

public void setSecurityLevel(java.lang.String securityLevel)
Sets the security level associated with this Scheduler with a String name of the security level setup previously by the administrator.


getSecurityLevel

public java.lang.String getSecurityLevel()
Gets the String name of the security level that the user will operate at.


setServerAddress

public static void setServerAddress(java.lang.String address)
                             throws java.net.UnknownHostException
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:
java.net.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

public static void setServerHosts(java.util.Vector<java.lang.String> hostnames)
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

public static void setServletRunner(java.lang.String comm_url)
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

public static void setServletContext(java.lang.String context)
set servlet context


getServletContext

public static java.lang.String 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

EspressReport 6.6