public interface Service
| Modifier and Type | Method and Description |
|---|---|
IAgentLogger |
getLogger() |
java.lang.String |
getName()
Get the service name.
|
boolean |
isEnabled()
Is the service enabled.
|
boolean |
isStarted()
Is the service in the started state
ServiceState.STARTED |
boolean |
isStartedOrStarting()
Is the service in the started state
ServiceState.STARTED or starting state ServiceState.STARTING |
boolean |
isStopped()
Is the service in the stopped state
ServiceState.STOPPED |
boolean |
isStoppedOrStopping()
Is the service in the stopped state
ServiceState.STOPPED or stopping state ServiceState.STOPPING |
void |
start()
Start the service.
|
void |
stop()
Stop the service.
|
java.lang.String getName()
void start()
throws java.lang.Exception
java.lang.Exceptionvoid stop() throws java.lang.Exception
java.lang.Exceptionboolean isEnabled()
true if the service is enabledIAgentLogger getLogger()
boolean isStarted()
ServiceState.STARTEDtrue if the service is startedboolean isStopped()
ServiceState.STOPPEDtrue if the service is stoppedboolean isStartedOrStarting()
ServiceState.STARTED or starting state ServiceState.STARTINGtrue if the service is started or startingboolean isStoppedOrStopping()
ServiceState.STOPPED or stopping state ServiceState.STOPPINGtrue if the service is stopped or stopping