CoreService, SchedulerServiceAbstractCoreService, AbstractServiceController, AspectranCoreService, QuartzSchedulerServicepublic interface ServiceController
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getServiceName() |
|
boolean |
isActive() |
Returns whether this service is currently started and active.
|
boolean |
isDerived() |
Returns whether this service is derived from another root service.
|
void |
pause() |
Pauses the service.
|
void |
pause(long timeout) |
Pauses the service for a specified period of time.
|
void |
restart() |
Restarts the service.
|
void |
resume() |
Continues the service after it has been paused.
|
void |
setServiceStateListener(ServiceStateListener serviceStateListener) |
Sets the service state listener.
|
void |
start() |
Starts the service.
|
void |
stop() |
Stops the service.
|
java.lang.String getServiceName()
void setServiceStateListener(ServiceStateListener serviceStateListener)
serviceStateListener - the new service state listenerboolean isDerived()
void start()
throws java.lang.Exception
java.lang.Exception - if the service control failsvoid restart()
throws java.lang.Exception
java.lang.Exception - if the service control failsvoid pause()
throws java.lang.Exception
java.lang.Exception - if the service control failsvoid pause(long timeout)
throws java.lang.Exception
timeout - the maximum time to wait in milliseconds.java.lang.Exception - if the service control failsvoid resume()
throws java.lang.Exception
java.lang.Exception - if the service control failsvoid stop()
boolean isActive()
Copyright © 2008–2018 The Aspectran Project. All rights reserved.