net.sf.xbus.bootstrap
Class ReceiverServiceAdministratorBootstrap

java.lang.Object
  extended by net.sf.xbus.bootstrap.ReceiverServiceAdministratorBootstrap

public class ReceiverServiceAdministratorBootstrap
extends java.lang.Object

ReceiverServiceAdministratorBootstrap stops or restarts the ReceiverService.

The XBUSClassLoader is used to call the ReceiverServiceAdministrator.


Constructor Summary
ReceiverServiceAdministratorBootstrap()
           
 
Method Summary
static void main(java.lang.String[] args)
          Either stops (args = "SHUTDOWN") or restarts (args = "RESTART") the ReceiverService.
protected static void restart()
          Restarts the ReceiverService.
protected static void shutdown()
          Stops the ReceiverService.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReceiverServiceAdministratorBootstrap

public ReceiverServiceAdministratorBootstrap()
Method Detail

main

public static void main(java.lang.String[] args)
Either stops (args = "SHUTDOWN") or restarts (args = "RESTART") the ReceiverService.

Parameters:
args - an array containing exactly one string ("SHUTDOWN" or "RESTART")

shutdown

protected static void shutdown()
                        throws XException
Stops the ReceiverService.

Throws:
XException - if the ReceiverService cannot be stopped.

restart

protected static void restart()
                       throws XException
Restarts the ReceiverService.

Throws:
XException - if the ReceiverService cannot be restarted.