|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.service.scheduler.SchedulableService atg.repository.search.indexing.IndexingPeriodicService
public class IndexingPeriodicService
The indexing periodic service. This service checks for claimed but expired configurations, and for configurations that have incremental updates due.
Created: April 21 2005
AnotherClass
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Fields inherited from class atg.service.scheduler.SchedulableService |
---|
mJobId |
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
IndexingPeriodicService()
|
Method Summary | |
---|---|
void |
checkForExpiredConfigurationClaims()
Look for expirations that have expired. |
void |
doStartService()
The default implementation is to just start our scheduled job. |
ConfigStatePersister |
getConfigStatePersister()
Get the configuration state persister. |
IncrementalLoader |
getIncrementalLoader()
Get the incremental loader to use. |
java.util.List |
getIncrementalLoaders()
|
boolean |
isEnabled()
Return whether this service is enabled. |
protected boolean |
needsIncrementalUpdate(ConfigStatePersister.ConfigState pConfigState,
IndexingOutputConfig pConfig)
Whether the specified configuration needs an incremental update based on the last update indexed times. |
void |
performScheduledTask()
Perform our scheduled task. |
void |
performScheduledTask(Scheduler pScheduler,
ScheduledJob pJob)
Called by the scheduler when it is time for this service to perform its function. |
void |
scanForIncrementalUpdates()
Look for configurations to claim. |
protected void |
scanForIncrementalUpdates(IncrementalLoader pLoader)
|
void |
setConfigStatePersister(ConfigStatePersister pConfigStatePersister)
Set the configuration state persister. |
void |
setEnabled(boolean pEnabled)
Set whether this service is enabled. |
void |
setIncrementalLoader(IncrementalLoader pIncrementalLoader)
Set the incremental loader to use. |
void |
setIncrementalLoaders(java.util.List pLoaders)
|
Methods inherited from class atg.service.scheduler.SchedulableService |
---|
doStopService, getJobDescription, getJobName, getSchedule, getScheduler, getThreadMethod, isTransactional, setJobDescription, setJobName, setSchedule, setScheduler, setThreadMethod, setTransactional, startScheduledJob, stopScheduledJob |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CLASS_VERSION
Constructor Detail |
---|
public IndexingPeriodicService()
Method Detail |
---|
public void setConfigStatePersister(ConfigStatePersister pConfigStatePersister)
public ConfigStatePersister getConfigStatePersister()
public void setEnabled(boolean pEnabled)
public boolean isEnabled()
public void setIncrementalLoader(IncrementalLoader pIncrementalLoader)
public IncrementalLoader getIncrementalLoader()
public java.util.List getIncrementalLoaders()
public void setIncrementalLoaders(java.util.List pLoaders)
public void doStartService() throws ServiceException
doStartService
in class SchedulableService
ServiceException
- if an error occurred during the operationpublic void performScheduledTask(Scheduler pScheduler, ScheduledJob pJob)
performScheduledTask
in interface Schedulable
performScheduledTask
in class SchedulableService
pScheduler
- the scheduler managing this jobpJob
- the scheduled job associated with this servicepublic void performScheduledTask() throws IndexingException
IndexingException
public void checkForExpiredConfigurationClaims() throws IndexingException
IndexingException
public void scanForIncrementalUpdates()
protected void scanForIncrementalUpdates(IncrementalLoader pLoader)
protected boolean needsIncrementalUpdate(ConfigStatePersister.ConfigState pConfigState, IndexingOutputConfig pConfig)
pConfigState
- the configuration state to checkpConfig
- the configuration.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |