public class PurgeDeletedItemsService
extends neo.xredsys.api.services.SingleThreadedMutexExecutor
GenericService.StartCommand, GenericService.StopCommand
mLogger, state
Constructor and Description |
---|
PurgeDeletedItemsService() |
Modifier and Type | Method and Description |
---|---|
Indexer |
getIndexer() |
void |
setIndexer(Indexer pIndexer) |
protected void |
singleExecute()
Invoked when an alarm is triggered.
|
protected void |
startMutexExecutor()
Will be called from
SingleThreadedMutexExecutor.startMutexService()() when we are the server to provide this SingleThreadedMutexExecutor . |
protected void |
stopMutexExecutor()
Will be called from
SingleThreadedMutexExecutor.stopMutexService() when we are to stop providing this SingleThreadedMutexExecutor . |
execute, getAlarmMessage, isExecuting, startMutexService, stopMutexService
getAlarmManager, getResourceLockManager, getServerName, getServiceName, getServiceUri, getTimeToLive, getValidateInterval, setAlarmManager, setResourceLockManager, setServiceName, setValidateInterval, startService, stopIdleService, stopService
doStartService, doStopService
assertServiceRunning, getServiceDescription, getServiceMessage, getServiceState, isServiceEnabled, isServiceFailed, isServiceIdle, isServiceRunning, isServiceShutdownFailed, isServiceStopped, setServiceDescription, setServiceEnabled, start, stop, validateIsTrue, validateNotNull
public Indexer getIndexer()
public void setIndexer(Indexer pIndexer)
protected void singleExecute()
neo.xredsys.api.services.SingleThreadedMutexExecutor
SingleThreadedMutexExecutor.execute()
.singleExecute
in class neo.xredsys.api.services.SingleThreadedMutexExecutor
protected void startMutexExecutor() throws Exception
neo.xredsys.api.services.SingleThreadedMutexExecutor
Will be called from SingleThreadedMutexExecutor.startMutexService()()
when we are the server to provide this SingleThreadedMutexExecutor
. Exceptions thrown from this
method will be logged by AbstractNurseryService.doStartService()
.
Subclasses must implement this method to bootstrap the service.
startMutexExecutor
in class neo.xredsys.api.services.SingleThreadedMutexExecutor
Exception
- when something goes wrong when starting this SingleThreadedMutexExecutor
. GenericService.isServiceRunning()
will return false
and GenericService.isServiceFailed()
will return true
. There will be no automatic attempts to start this MutexService
.IllegalArgumentException
- when the configuration of the SingleThreadedMutexExecutor
is invalid. GenericService.isServiceRunning()
will return false
and GenericService.isServiceFailed()
will
return true
. There will be no automatic attempts to start this SingleThreadedMutexExecutor
.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 SingleThreadedMutexExecutor
later. GenericService.isServiceRunning()
will return false
and GenericService.isServiceIdle()
will return true
. There
will be automatic attempts to start it from SingleThreadedMutexExecutor
.SingleThreadedMutexExecutor.startMutexService()
,
MutexService.startService()
,
AbstractNurseryService.doStartService()
protected void stopMutexExecutor() throws Exception
neo.xredsys.api.services.SingleThreadedMutexExecutor
Will be called from SingleThreadedMutexExecutor.stopMutexService()
when we are to stop providing this SingleThreadedMutexExecutor
. Exceptions thrown from this
method will be logged by AbstractNurseryService.doStopService()
.
Subclasses must implement this method to shutdown the service.
stopMutexExecutor
in class neo.xredsys.api.services.SingleThreadedMutexExecutor
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
.MutexService.stopService()
© 1998- 2018 Stibo DX