com.extrememessaging.ResponseMaster
Class CMain

java.lang.Object
  extended by com.extrememessaging.ResponseMaster.CMain
All Implemented Interfaces:
java.lang.Runnable

public class CMain
extends java.lang.Object
implements java.lang.Runnable

This class is the main entry point of the application. It loads some parameters and causes the other classes to load their parameters.


Field Summary
 java.lang.String[] args
          Used to start the server when it is running as a service
static boolean bIsService
          True if ResponseMaster is running as a service
static boolean bPaused
          True if we paused now (ie running, but not processing messages)
static boolean bStarted
          True if we have finished starting up.
static int BUILD_NUMBER
          The build number.
static boolean DEBUG_MAIL
          True if Java Mail should log debugging messages
static boolean TRIAL_VERSION
          True if this is a build of a trial version
 
Constructor Summary
CMain()
           
 
Method Summary
static int getRunningThreads()
          Retrieves the count of running threads The running thread count is used to determine when ResponseMaster can actually stop
static void main(java.lang.String[] args)
          The main entry point for the application.
static void Restart()
          Indicate that ResponseMaster should be restarted
 void run()
           
static void Shutdown()
          Indicate that ResponseMaster should shutdown
static void ShutdownMailbox(java.lang.String sMailboxName)
          Shutsdown one mailbox.
static void StartOneMailbox(java.lang.String sMailboxName)
          Starts one mailbox (by name).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUILD_NUMBER

public static final int BUILD_NUMBER
The build number. It is automatically incremented by the build.

See Also:
Constant Field Values

TRIAL_VERSION

public static final boolean TRIAL_VERSION
True if this is a build of a trial version

See Also:
Constant Field Values

DEBUG_MAIL

public static boolean DEBUG_MAIL
True if Java Mail should log debugging messages


bIsService

public static boolean bIsService
True if ResponseMaster is running as a service


bPaused

public static volatile boolean bPaused
True if we paused now (ie running, but not processing messages)


bStarted

public static volatile boolean bStarted
True if we have finished starting up.


args

public java.lang.String[] args
Used to start the server when it is running as a service

Constructor Detail

CMain

public CMain()
Method Detail

main

public static void main(java.lang.String[] args)
The main entry point for the application.

Parameters:
args - Array of parameters passed to the application via the command line. We expect the name of the master config file.

Restart

public static void Restart()
Indicate that ResponseMaster should be restarted


Shutdown

public static void Shutdown()
Indicate that ResponseMaster should shutdown


getRunningThreads

public static int getRunningThreads()
Retrieves the count of running threads The running thread count is used to determine when ResponseMaster can actually stop


run

public void run()
Specified by:
run in interface java.lang.Runnable

ShutdownMailbox

public static void ShutdownMailbox(java.lang.String sMailboxName)
Shutsdown one mailbox. If the mailbox is not found, that is ok.


StartOneMailbox

public static void StartOneMailbox(java.lang.String sMailboxName)
                            throws ResponseMasterException
Starts one mailbox (by name). It should not be running currently.

Parameters:
sMailboxName -
Throws:
ResponseMasterException