ServiceControllerAbstractCoreService, QuartzSchedulerServicepublic abstract class AbstractServiceController extends java.lang.Object implements ServiceController
| Constructor | Description |
|---|---|
AbstractServiceController() |
| Modifier and Type | Method | Description |
|---|---|---|
protected abstract void |
doPause() |
|
protected abstract void |
doPause(long timeout) |
|
protected abstract void |
doRestart() |
|
protected abstract void |
doResume() |
|
protected abstract void |
doStart() |
|
protected abstract void |
doStop() |
|
protected java.lang.Object |
getLock() |
|
java.lang.String |
getServiceName() |
|
boolean |
isActive() |
Returns whether this service is currently started and active.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisDerivedpublic java.lang.String getServiceName()
getServiceName in interface ServiceControllerpublic void setServiceStateListener(ServiceStateListener serviceStateListener)
ServiceControllersetServiceStateListener in interface ServiceControllerserviceStateListener - the new service state listenerprotected abstract void doStart()
throws java.lang.Exception
java.lang.Exceptionprotected abstract void doRestart()
throws java.lang.Exception
java.lang.Exceptionprotected abstract void doPause()
throws java.lang.Exception
java.lang.Exceptionprotected abstract void doPause(long timeout)
throws java.lang.Exception
java.lang.Exceptionprotected abstract void doResume()
throws java.lang.Exception
java.lang.Exceptionprotected abstract void doStop()
throws java.lang.Exception
java.lang.Exceptionprotected java.lang.Object getLock()
public void start()
throws java.lang.Exception
ServiceControllerstart in interface ServiceControllerjava.lang.Exception - if the service control failspublic void restart()
throws java.lang.Exception
ServiceControllerrestart in interface ServiceControllerjava.lang.Exception - if the service control failspublic void pause()
throws java.lang.Exception
ServiceControllerpause in interface ServiceControllerjava.lang.Exception - if the service control failspublic void pause(long timeout)
throws java.lang.Exception
ServiceControllerpause in interface ServiceControllertimeout - the maximum time to wait in milliseconds.java.lang.Exception - if the service control failspublic void resume()
throws java.lang.Exception
ServiceControllerresume in interface ServiceControllerjava.lang.Exception - if the service control failspublic void stop()
ServiceControllerstop in interface ServiceControllerpublic boolean isActive()
ServiceControllerisActive in interface ServiceControllerCopyright © 2008–2018 The Aspectran Project. All rights reserved.