| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.xbus.technical.ReceiverService
public class ReceiverService
ReceiverService runs as a background service and waits for
 incoming messages to process.
 
 At startup, ReceiverService searches for systems, which receiver
 ends with "Thread". For every found system, a thread is started
 to process the messages. The used receivers must extend the
 ReceiverThreadBase.
 
| Constructor Summary | |
|---|---|
ReceiverService()
The constructor should be private to implement the Singleton
 pattern. | 
|
| Method Summary | |
|---|---|
static ReceiverService | 
getInstance()
Returns the one and only instance of the ReceiverService,
 which implements the Singleton  pattern. | 
 boolean | 
isWatchdogRunning()
 | 
 void | 
start(boolean insideServletEngine)
Starts all threads to receive messages and for administration.  | 
 void | 
startAllSystems()
Starts all configured threads to process message for different systems.  | 
 void | 
startInsideServletEngine()
Starts all threads to receive messages and for administration.  | 
 void | 
startWithoutServletEngine()
Starts all threads to receive messages and for administration.  | 
 boolean | 
stop()
Stops all threads, including the administration threads.  | 
 void | 
stopAllSystems()
Stops all threads after processing their current message.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ReceiverService()
Singleton
 pattern. But the bootstrapping mechanism needs a public constructor.
| Method Detail | 
|---|
public static ReceiverService getInstance()
ReceiverService,
 which implements the Singleton  pattern. If the object doesn't
 exist, it is created.
ReceiverService
public void start(boolean insideServletEngine)
           throws XException
insideServletEngine - if true, the ReceiverService is running inside a servlet
            engine
XException
public void startInsideServletEngine()
                              throws XException
ReceiverService is running inside a servlet engine.
XException
public void startWithoutServletEngine()
                               throws XException
ReceiverService is not running inside a servlet engine.
XException
public boolean stop()
             throws XException
XException
public void startAllSystems()
                     throws XException
XException
public void stopAllSystems()
                    throws XException
XExceptionpublic boolean isWatchdogRunning()
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||