|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.extrememessaging.ResponseMaster.CMain
public class CMain
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 |
---|
public static final int BUILD_NUMBER
public static final boolean TRIAL_VERSION
public static boolean DEBUG_MAIL
public static boolean bIsService
public static volatile boolean bPaused
public static volatile boolean bStarted
public java.lang.String[] args
Constructor Detail |
---|
public CMain()
Method Detail |
---|
public static void main(java.lang.String[] args)
args
- Array of parameters passed to the application
via the command line.
We expect the name of the master config file.public static void Restart()
public static void Shutdown()
public static int getRunningThreads()
public void run()
run
in interface java.lang.Runnable
public static void ShutdownMailbox(java.lang.String sMailboxName)
public static void StartOneMailbox(java.lang.String sMailboxName) throws ResponseMasterException
sMailboxName
-
ResponseMasterException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |