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.Exception
void stop() throws java.lang.Exception
java.lang.Exception
boolean isEnabled()
true
if the service is enabledIAgentLogger getLogger()
boolean isStarted()
ServiceState.STARTED
true
if the service is startedboolean isStopped()
ServiceState.STOPPED
true
if the service is stoppedboolean isStartedOrStarting()
ServiceState.STARTED
or starting state ServiceState.STARTING
true
if the service is started or startingboolean isStoppedOrStopping()
ServiceState.STOPPED
or stopping state ServiceState.STOPPING
true
if the service is stopped or stopping