public class DatabaseLockManagerPingService
extends neo.xredsys.api.services.SingleThreadedExecutor
GenericService.StartCommand, GenericService.StopCommand
mLogger, state
Constructor and Description |
---|
DatabaseLockManagerPingService()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
LockManager |
getLockManager()
Deprecated.
|
void |
setLockManager(LockManager pLockManager)
Deprecated.
|
protected void |
singleExecute()
Deprecated.
Invoked when an alarm is triggered.
|
protected void |
startExecutor()
Deprecated.
Will be called from
SingleThreadedExecutor.startService()() when we are the server to provide this SingleThreadedExecutor . |
protected void |
stopExecutor()
Deprecated.
Will be called from
SingleThreadedExecutor.stopService() when we are to stop providing this SingleThreadedExecutor . |
execute, getAlarmMessage, isExecuting, startService, stopService
doStartService, doStopService, stopIdleService
assertServiceRunning, getServiceDescription, getServiceMessage, getServiceState, isServiceEnabled, isServiceFailed, isServiceIdle, isServiceRunning, isServiceShutdownFailed, isServiceStopped, setServiceDescription, setServiceEnabled, start, stop, validateIsTrue, validateNotNull
public DatabaseLockManagerPingService()
public void setLockManager(LockManager pLockManager)
public LockManager getLockManager()
protected void singleExecute()
neo.xredsys.api.services.SingleThreadedExecutor
SingleThreadedExecutor.execute()
.singleExecute
in class neo.xredsys.api.services.SingleThreadedExecutor
protected void startExecutor() throws Exception
neo.xredsys.api.services.SingleThreadedExecutor
Will be called from SingleThreadedExecutor.startService()()
when we are the server to provide this SingleThreadedExecutor
. Exceptions thrown from this
method will be logged by AbstractNurseryService.doStartService()
.
Subclasses must implement this method to bootstrap the service.
startExecutor
in class neo.xredsys.api.services.SingleThreadedExecutor
Exception
- when something goes wrong when starting this SingleThreadedExecutor
. GenericService.isServiceRunning()
will return false
and GenericService.isServiceFailed()
will return true
.IllegalArgumentException
- when the configuration of the SingleThreadedExecutor
is invalid. GenericService.isServiceRunning()
will return false
and GenericService.isServiceFailed()
will
return true
.IllegalStateException
- when this service is in the wrong state for being started at this time. Used to signal to AbstractNurseryService.doStartService()
that it is OK to try to start
this SingleThreadedExecutor
later. GenericService.isServiceRunning()
will return false
and GenericService.isServiceIdle()
will return true
.SingleThreadedExecutor.startService()
,
AbstractNurseryService.doStartService()
protected void stopExecutor() throws Exception
neo.xredsys.api.services.SingleThreadedExecutor
Will be called from SingleThreadedExecutor.stopService()
when we are to stop providing this SingleThreadedExecutor
. Exceptions thrown from this
method will be logged by AbstractNurseryService.doStopService()
.
Subclasses must implement this method to shutdown the service.
stopExecutor
in class neo.xredsys.api.services.SingleThreadedExecutor
IllegalStateException
- when this service is in the wrong state for being stopped at this time. Used to signal to AbstractNurseryService.doStopService()
that it is OK to try to stop
this service
later. GenericService.isServiceRunning()
will return true
.Exception
- when something goes wrong when stopping this service
. GenericService.isServiceRunning()
will return false
and GenericService.isServiceShutdownFailed()
will return true
.SingleThreadedExecutor.stopService()
© 1998- 2021 Escenic AS