public class CMain
extends java.lang.Object
implements java.lang.Runnable
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
CMain() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getRunningThreads()
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).
|
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
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.Runnablepublic static void ShutdownMailbox(java.lang.String sMailboxName)
sMailboxName - The name of the mailbox to shutdown.public static void StartOneMailbox(java.lang.String sMailboxName)
throws ResponseMasterException
sMailboxName - The name of the mailbox to start.ResponseMasterException - if the mailbox can't be started.