com.ibm.wbi
Class Run

java.lang.Object
  |
  +--com.ibm.wbi.Run
All Implemented Interfaces:
java.util.EventListener, java.lang.Runnable, SignalListener

public class Run
extends java.lang.Object
implements java.lang.Runnable, SignalListener

Run provides a wrapper around the proxy. This class provides a console for sending commands to the proxy such as registering and deregistering plugins, etc.


Field Summary
protected static com.ibm.wbi.cmdProcessor cp
          The command processor.
protected static java.lang.String homeDir
          The home directory.
protected static java.lang.String promptPrefix
          The prompt prefix; can be used to include Build ID in console prompt.
protected static com.ibm.wbi.TransProxyRASDirector ras
          RAS facility
protected static java.util.ResourceBundle rBundle
          A resource bundle for displayed text.
protected static Proxy theProxy
          The proxy.
 
Fields inherited from interface com.ibm.wbi.util.SignalListener
COPYRIGHT
 
Constructor Summary
Run()
           
 
Method Summary
static void cleanup()
          Cleanup - called during NT service stop.
protected static void logBuildInfo(com.ibm.wbi.RASDirector ras)
           
static void main(java.lang.String[] args)
          The main driver provides command line argument parsing.
 void run()
          Run provides the console for commanding the proxy.
 void signal(SignalEvent e)
          Signal to shutdown.
static void startWbiGui(Proxy theProxy, com.ibm.wbi.cmdProcessor cp, com.ibm.wbi.EnvironmentSystemContext proxyContext, com.ibm.wbi.IntermediateOutputHandler ioh, com.ibm.wbi.TransProxyRASDirector ras)
          Starts the Wbi Gui.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ras

protected static com.ibm.wbi.TransProxyRASDirector ras
RAS facility

theProxy

protected static Proxy theProxy
The proxy.

rBundle

protected static java.util.ResourceBundle rBundle
A resource bundle for displayed text.

homeDir

protected static java.lang.String homeDir
The home directory.

cp

protected static com.ibm.wbi.cmdProcessor cp
The command processor.

promptPrefix

protected static java.lang.String promptPrefix
The prompt prefix; can be used to include Build ID in console prompt.
Constructor Detail

Run

public Run()
Method Detail

main

public static void main(java.lang.String[] args)
The main driver provides command line argument parsing.
Parameters:
args - The command line arguments.

startWbiGui

public static void startWbiGui(Proxy theProxy,
                               com.ibm.wbi.cmdProcessor cp,
                               com.ibm.wbi.EnvironmentSystemContext proxyContext,
                               com.ibm.wbi.IntermediateOutputHandler ioh,
                               com.ibm.wbi.TransProxyRASDirector ras)
                        throws java.lang.Exception
Starts the Wbi Gui. Throws an exception if the gui can't be started for some reason. The exception is usually an instance of the class com.ibm.almaden.gui.GuiException. In order to prevent runtime exceptions on startup, the base class Exception is used.
Parameters:
theProxy - Instance of a Proxy that was currently started.
cp - Instance of the commandProcessor used with theProxy.
proxyContext - The environment system context.
ioh - The output handler.
ras - The ras director.

run

public void run()
Run provides the console for commanding the proxy.
Specified by:
run in interface java.lang.Runnable

cleanup

public static void cleanup()
Cleanup - called during NT service stop.

signal

public void signal(SignalEvent e)
Signal to shutdown.
Specified by:
signal in interface SignalListener
Parameters:
e - The signal

logBuildInfo

protected static void logBuildInfo(com.ibm.wbi.RASDirector ras)