fccsc.manager
Class MessageManager

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--fccsc.manager.MessageManager
All Implemented Interfaces:
java.lang.Runnable

public final class MessageManager
extends java.lang.Thread


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
MessageManager()
          Instantiates a new MessageManager object and performs the following: - loads configuration data from property files, - loads data wrapping templates for required message processes, - and creates / manages *.logs files for logging events.
 
Method Summary
static void doShutdown()
          Performs a shutdown of this server.
static void doShutdown(java.lang.String[] p_params)
          Performs a shutdown of this server.
static void main(java.lang.String[] args)
          Entry point for application.
 void run()
          This is where this server's thread does all of its listening and handling for incoming requests.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MessageManager

public MessageManager()
Instantiates a new MessageManager object and performs the following: - loads configuration data from property files, - loads data wrapping templates for required message processes, - and creates / manages *.logs files for logging events. The following required directories must exist relative to the current directory: /properties - contains all configuration *.properties files /templates - contains all data wrapping *.template files /logs - location for all *.logs files to be managed by Log4j

Method Detail

main

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

Parameters:
args - no parameters required.

run

public void run()
This is where this server's thread does all of its listening and handling for incoming requests. This process automatically "starts" when this object is instantiated.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

doShutdown

public static void doShutdown()
Performs a shutdown of this server. First, it triggers for the server to stop listening for requests. Then, it waits until all current threads complete their tasks. Finally, it shuts the server off and exits the JVM.


doShutdown

public static void doShutdown(java.lang.String[] p_params)
Performs a shutdown of this server. First, it triggers for the server to stop listening for requests. Then, it waits until all current threads complete their tasks. Finally, it shuts the server off and exits the JVM.

Parameters:
p_params - optional parameters ... (currently ignored).