public class ListPoolIndexBeanProvider extends AbstractIndexBeanProvider
AbstractIndexBeanProvider.DetectMissingBeansAction
GenericService.StartCommand, GenericService.StopCommand
CLASS_VERSION
mLogger, state
Constructor and Description |
---|
ListPoolIndexBeanProvider() |
Modifier and Type | Method and Description |
---|---|
protected AbstractIndexBeanProvider.DetectMissingBeansAction |
createMissingBeansAction(Timestamp pModifiedAfter) |
List<IndexBean> |
getBeans(Timestamp pForm,
boolean pAscending,
int pCount)
Retrieves a number of
beans from the given timestamp
in a specified order. |
IndexBean.IndexBeanType |
getIndexBeanType()
Returns type of
IndexBean which is provided by the IndexBeanProvider. |
void |
setIndexBeanType(IndexBean.IndexBeanType pIndexBeanType) |
protected void |
startService()
Is called by
AbstractNurseryService.doStartService() when the NurseryService is being started. |
getACLManager, getContentManager, getMissingBeans, getMissingBeans, setACLManager, setContentManager, stopService
doStartService, doStopService, stopIdleService
assertServiceRunning, getServiceDescription, getServiceMessage, getServiceState, isServiceEnabled, isServiceFailed, isServiceIdle, isServiceRunning, isServiceShutdownFailed, isServiceStopped, setServiceDescription, setServiceEnabled, start, stop, validateIsTrue, validateNotNull
public IndexBean.IndexBeanType getIndexBeanType()
IndexBeanProvider
IndexBean
which is provided by the IndexBeanProvider.public void setIndexBeanType(IndexBean.IndexBeanType pIndexBeanType)
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 AbstractIndexBeanProvider
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()
public List<IndexBean> getBeans(Timestamp pForm, boolean pAscending, int pCount)
IndexBeanProvider
beans
from the given timestamp
in a specified order.protected AbstractIndexBeanProvider.DetectMissingBeansAction createMissingBeansAction(Timestamp pModifiedAfter)
createMissingBeansAction
in class AbstractIndexBeanProvider
© 1998- 2018 Stibo DX