public abstract class AbstractIndexBeanProvider extends AbstractNurseryService implements IndexBeanProvider
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractIndexBeanProvider.DetectMissingBeansAction |
GenericService.StartCommand, GenericService.StopCommand
CLASS_VERSION
mLogger, state
Constructor and Description |
---|
AbstractIndexBeanProvider() |
Modifier and Type | Method and Description |
---|---|
protected abstract AbstractIndexBeanProvider.DetectMissingBeansAction |
createMissingBeansAction(Timestamp pModifiedAfter) |
neo.xredsys.acl.ACLManager |
getACLManager() |
neo.xredsys.content.ContentManager |
getContentManager() |
List<IndexBean> |
getMissingBeans()
|
List<IndexBean> |
getMissingBeans(Timestamp pModifiedAfter)
|
void |
setACLManager(neo.xredsys.acl.ACLManager pACLManager) |
void |
setContentManager(neo.xredsys.content.ContentManager pContentManager) |
protected void |
startService()
Is called by
AbstractNurseryService.doStartService() when the NurseryService is being started. |
protected void |
stopService()
Is called by
AbstractNurseryService.doStopService() when the service is being shut down. |
doStartService, doStopService, stopIdleService
assertServiceRunning, getServiceDescription, getServiceMessage, getServiceState, isServiceEnabled, isServiceFailed, isServiceIdle, isServiceRunning, isServiceShutdownFailed, isServiceStopped, setServiceDescription, setServiceEnabled, start, stop, validateIsTrue, validateNotNull
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBeans, getBeans, getBeans, getIndexBeanType
public neo.xredsys.content.ContentManager getContentManager()
public void setContentManager(neo.xredsys.content.ContentManager pContentManager)
public neo.xredsys.acl.ACLManager getACLManager()
public void setACLManager(neo.xredsys.acl.ACLManager pACLManager)
protected void startService() throws Exception
AbstractNurseryService
Is called by AbstractNurseryService.doStartService()
when the NurseryService
is being started. Exceptions thrown by this
method are logged by AbstractNurseryService.doStartService()
.
Subclasses must implement this method to bootstrap the service.
startService
in class AbstractNurseryService
Exception
- when something goes wrong during startup. GenericService.isServiceRunning()
will return false
and GenericService.isServiceFailed()
will return true
.IllegalArgumentException
- when the configuration of the service
is invalid. GenericService.isServiceRunning()
will return false
and GenericService.isServiceFailed()
will return true
.IllegalStateException
- when this service is in the wrong state for startup. Used to signal to AbstractNurseryService.doStartService()
that it is OK to try to starting
this service
later. GenericService.isServiceRunning()
returns false
and GenericService.isServiceIdle()
returns true
.AbstractNurseryService.doStartService()
protected void stopService() throws Exception
AbstractNurseryService
Is called by AbstractNurseryService.doStopService()
when the service
is being shut down. Exceptions thrown by this
method are logged by AbstractNurseryService.doStopService()
.
Subclasses must implement this method to shut down the service.
stopService
in class AbstractNurseryService
IllegalStateException
- when this service is in the wrong state for shutdown. Used to signal to AbstractNurseryService.doStopService()
that
it is OK to try stopping this service
later. GenericService.isServiceRunning()
returns true
.Exception
- when something goes during shutdown. GenericService.isServiceRunning()
returns false
and
GenericService.isServiceShutdownFailed()
returns true
.AbstractNurseryService.doStopService()
public List<IndexBean> getMissingBeans() throws SQLException
IndexBeanProvider
getMissingBeans
in interface IndexBeanProvider
beans
. The method should never return null
SQLException
- if collection the missing beans failedprotected abstract AbstractIndexBeanProvider.DetectMissingBeansAction createMissingBeansAction(Timestamp pModifiedAfter)
public List<IndexBean> getMissingBeans(Timestamp pModifiedAfter) throws SQLException
IndexBeanProvider
getMissingBeans
in interface IndexBeanProvider
pModifiedAfter
- Only find objects that has been modified since the given timestamp. This parameter will never be null
beans
. The method should never return null
SQLException
- if collection the missing beans failed© 1998- 2021 Escenic AS