com.epicentric.services
Class AbstractServiceController
java.lang.Object
|
+--com.epicentric.services.AbstractServiceController
- All Implemented Interfaces:
- ServiceController
- public abstract class AbstractServiceController
- extends Object
- implements ServiceController
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractServiceController
protected AbstractServiceController()
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
Copyright and Trademark Notices