public class IndexingJob
extends atg.nucleus.logging.LoggingFormatter
Created: November 23 2011
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
mApplicationLogger, mErrorCount, mLoggingDebug, mLoggingError, mLoggingInfo, mLoggingTrace, mLoggingWarning, mWarningCount
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
IndexingJob(ApplicationLogging pLogging,
boolean pBaseline)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addIndexingPhase(IndexingPhase pPhase)
Add a child phase.
|
void |
cancel()
Cancel this job.
|
java.util.List<IndexingTask> |
getAllTasks()
Build a list of all the tasks in the job.
|
long |
getFinishTime()
Returns property finishTime.
|
IndexingStatePersister |
getIndexingStatePersister()
Returns property indexingStatePersister.
|
Nucleus |
getNucleus()
Returns property nucleus.
|
java.lang.Object |
getOwner()
Returns property owner.
|
java.lang.String |
getOwnerName()
Return the name of the Nucleus component that owns/created
this job.
|
java.lang.String |
getOwnerPath()
Return the Nucleus path of our Nucleus component that owns/created
this job.
|
java.util.List<IndexingPhase> |
getPhases()
Return the list of tasks associated with this job.
|
MutableRepositoryItem |
getRepositoryItem()
Returns property repositoryItem.
|
long |
getStartTime()
Returns property startTime.
|
Status |
getStatus()
Get the overall status of the job.
|
boolean |
getSuccess()
Get the overall status of the job.
|
javax.transaction.TransactionManager |
getTransactionManager()
Returns property transactionManager.
|
boolean |
isBaseline()
Return whether this is a baseline update.
|
boolean |
isForcedToBaseline()
Gets property forcedToBaseline.
|
boolean |
isForceToBaseline()
If incremental job has to be forced to baseline, new baseline IndexingJob is returned.
|
void |
markPendingTasksCanceled()
Marking any pending tasks if canceled.
|
void |
performJobInParallel()
Perform our job by running tasks in parallel.
|
void |
performJobSerially()
Perform our task serially by running each subtask in turn.
|
protected void |
persistEndingData()
Persist ending data about our job, if indexingStatePersister is set.
|
protected MutableRepositoryItem |
persistStartingData()
Persist starting data about our job, if indexingStatePersister is set.
|
void |
setFinishTime(long pFinishTime)
Sets property finishTime.
|
void |
setForcedToBaseline(boolean pForcedToBaseline)
Sets property forcedToBaseline.
|
void |
setIndexingStatePersister(IndexingStatePersister pIndexingStatePersister)
Sets property indexingStatePersister.
|
void |
setNucleus(Nucleus pNucleus)
Sets property nucleus.
|
void |
setOwner(java.lang.Object pOwner)
Sets property owner.
|
void |
setStartTime(long pStartTime)
Sets property startTime.
|
void |
setTransactionManager(javax.transaction.TransactionManager pTransactionManager)
Sets property transactionManager.
|
format, getErrorCount, getLoggingForVlogging, getLoggingIdentifier, getWarningCount, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, setApplicationLogger, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public IndexingJob(ApplicationLogging pLogging, boolean pBaseline)
pLogging
- the application logging to log through.pBaseline
- whether this is a baseline update.public MutableRepositoryItem getRepositoryItem()
public void setIndexingStatePersister(IndexingStatePersister pIndexingStatePersister)
public IndexingStatePersister getIndexingStatePersister()
public java.util.List<IndexingPhase> getPhases()
public void addIndexingPhase(IndexingPhase pPhase)
pPhase
- the child phase to add.public boolean isBaseline()
public void setStartTime(long pStartTime)
public long getStartTime()
public void setFinishTime(long pFinishTime)
public long getFinishTime()
public Status getStatus()
public boolean getSuccess()
public void setTransactionManager(javax.transaction.TransactionManager pTransactionManager)
public javax.transaction.TransactionManager getTransactionManager()
public void setNucleus(Nucleus pNucleus)
public Nucleus getNucleus()
public void setOwner(java.lang.Object pOwner)
public java.lang.Object getOwner()
public boolean isForcedToBaseline()
public void setForcedToBaseline(boolean pForcedToBaseline)
public java.lang.String getOwnerPath()
public java.lang.String getOwnerName()
public void performJobSerially() throws IndexingException
IndexingException
public void performJobInParallel() throws IndexingException
IndexingException
public void markPendingTasksCanceled()
public java.util.List<IndexingTask> getAllTasks()
public void cancel()
public boolean isForceToBaseline()
protected MutableRepositoryItem persistStartingData() throws IndexingException
IndexingException
protected void persistEndingData() throws IndexingException
IndexingException