Class QbScheduler

java.lang.Object
quadbase.scheduler.QbScheduler

public class QbScheduler extends Object
The QbScheduler class enables the user to invoke the Quadbase EspressReport Scheduler application using the API.
  • Constructor Summary

    Constructors
    Constructor
    Description
    QbScheduler(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 Type
    Method
    Description
    boolean
    Returns 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 String
    return servlet context
    static void
    Sets the protocol to be used to connect to the Application server.
    static void
    setCommUrl(String comm_url)
    Sets the communication URL to be the comm_url string.
    static final void
    setDebugMode(int mode)
    set debug mode to display debug statement
    static final void
    set debug mode to display debug statement
    void
    Sets whether the user can see the Insert Command function.
    void
    Restricts the user to not be able to browse to any location above the browseRoot directory.
    void
    setSecurityLevel(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
    Set the server address of EspressManager.
    static void
    Set the list of host names for EspressManager when tunneling is used.
    static void
    Set the port number of EspressManager.
    static void
    set servlet context
    static void
    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
    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 Details

    • QbScheduler

      public QbScheduler(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 Details

    • setCommProtocol

      public static void setCommProtocol(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(String comm_url)
      Sets the communication URL to be the comm_url string.
    • setDebugMode

      public static final void setDebugMode(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 JPanel getScheduler()
      Returns the scheduler as a JPanel.
    • setRootDirectoryForBrowse

      public void setRootDirectoryForBrowse(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(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 String getSecurityLevel()
      Gets the String name of the security level that the user will operate at.
    • setServerAddress

      public static void setServerAddress(String address) throws 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:
      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(Vector<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(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(String context)
      set servlet context
    • getServletContext

      public static 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