02/28/2005
 

com.epicentric.services
Class AbstractServiceController

java.lang.Object
  |
  +--com.epicentric.services.AbstractServiceController
All Implemented Interfaces:
ServiceController

public abstract class AbstractServiceController
extends Object
implements ServiceController


Constructor Summary
protected AbstractServiceController()
           
 
Method Summary
 ServiceConfiguration getServiceConfiguration()
          Retrieves the service ID.
abstract  String getServiceInfo()
          Retrieves hard-coded information about the service.
abstract  void init()
           
 void init(ServiceConfiguration serviceConfiguration)
          Initializes the service.
 void restart()
          Runs stop() and then start().
 void restart(ServiceConfiguration serviceConfiguration)
          Runs stop() and then start().
abstract  void start()
          Starts the service.
 void stop()
          Stops the service.
 boolean supportsReinitialization()
           
 boolean supportsStop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractServiceController

protected AbstractServiceController()
Method Detail

restart

public void restart(ServiceConfiguration serviceConfiguration)
             throws ServiceException
Description copied from interface: ServiceController
Runs stop() and then start().
Specified by:
restart in interface ServiceController

supportsStop

public boolean supportsStop()
Specified by:
supportsStop in interface ServiceController

supportsReinitialization

public boolean supportsReinitialization()
Specified by:
supportsReinitialization in interface ServiceController

start

public abstract void start()
                    throws ServiceException
Description copied from interface: ServiceController
Starts the service. Called after the ServiceController.init(ServiceConfiguration) method.
Specified by:
start in interface ServiceController

init

public void init(ServiceConfiguration serviceConfiguration)
          throws ServiceException
Description copied from interface: ServiceController
Initializes the service. Called before the ServiceController.start() method. Any work that must be done before the service starts should be performed in this method.
Specified by:
init in interface ServiceController

init

public abstract void init()
                   throws ServiceException

restart

public void restart()
             throws ServiceException
Description copied from interface: ServiceController
Runs stop() and then start().
Specified by:
restart in interface ServiceController

getServiceInfo

public abstract String getServiceInfo()
Description copied from interface: ServiceController
Retrieves hard-coded information about the service.
Specified by:
getServiceInfo in interface ServiceController
Following copied from interface: com.epicentric.services.ServiceController
Returns:
String description of the service.

getServiceConfiguration

public ServiceConfiguration getServiceConfiguration()
Description copied from interface: ServiceController
Retrieves the service ID.
Specified by:
getServiceConfiguration in interface ServiceController
Following copied from interface: com.epicentric.services.ServiceController
Returns:
service's ID as defined in the properties file

stop

public void stop()
Description copied from interface: ServiceController
Stops the service. (For some services, a null implementation is appropriate.)
Specified by:
stop in interface ServiceController

02/28/2005
 

Copyright and Trademark Notices