Class JobStatus
- java.lang.Object
-
- org.apache.manifoldcf.crawler.interfaces.JobStatus
-
public class JobStatus extends java.lang.ObjectThis class describes the complete status of a job. It is immutable.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_rcsidprotected java.lang.Stringdescriptionprotected longdocumentsInQueueprotected longdocumentsOutstandingprotected longdocumentsProcessedprotected longendTimeprotected java.lang.StringerrorTextprotected java.lang.StringjobIDstatic intJOBSTATUS_ABORTINGstatic intJOBSTATUS_COMPLETEDstatic intJOBSTATUS_DESTRUCTINGstatic intJOBSTATUS_ERRORstatic intJOBSTATUS_JOBENDCLEANUPstatic intJOBSTATUS_JOBENDNOTIFICATIONstatic intJOBSTATUS_NOTYETRUNstatic intJOBSTATUS_PAUSEDstatic intJOBSTATUS_RESTARTINGstatic intJOBSTATUS_RESUMINGstatic intJOBSTATUS_RUNNINGstatic intJOBSTATUS_RUNNING_UNINSTALLEDstatic intJOBSTATUS_STARTINGstatic intJOBSTATUS_STOPPINGstatic intJOBSTATUS_WINDOWWAITprotected booleanoutstandingCountExactprotected booleanprocessedCountExactprotected booleanqueueCountExactprotected longstartTimeprotected intstatus
-
Constructor Summary
Constructors Constructor Description JobStatus(java.lang.String jobID, java.lang.String description, int status, long documentsInQueue, long documentsOutstanding, long documentsProcessed, boolean queueCountExact, boolean outstandingCountExact, boolean processedCountExact, long startTime, long endTime, java.lang.String errorText)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescription()Get the job description.longgetDocumentsInQueue()Get the number of documents in the queue.longgetDocumentsOutstanding()Get the number of documents outstanding.longgetDocumentsProcessed()Get the number of documents that have been processed at least once.longgetEndTime()Get the end time.java.lang.StringgetErrorText()Get the error text.java.lang.StringgetJobID()Get the job id.booleangetOutstandingCountExact()Get whether the outstanding count is accurate, or an estimate.booleangetProcessedCountExact()Get whether the processed count is accurate, or an estimate.booleangetQueueCountExact()Get whether the queue count is accurate, or an estimate.longgetStartTime()Get the start time.intgetStatus()Get the job status.
-
-
-
Field Detail
-
_rcsid
public static final java.lang.String _rcsid
- See Also:
- Constant Field Values
-
JOBSTATUS_NOTYETRUN
public static final int JOBSTATUS_NOTYETRUN
- See Also:
- Constant Field Values
-
JOBSTATUS_RUNNING
public static final int JOBSTATUS_RUNNING
- See Also:
- Constant Field Values
-
JOBSTATUS_STOPPING
public static final int JOBSTATUS_STOPPING
- See Also:
- Constant Field Values
-
JOBSTATUS_PAUSED
public static final int JOBSTATUS_PAUSED
- See Also:
- Constant Field Values
-
JOBSTATUS_RESUMING
public static final int JOBSTATUS_RESUMING
- See Also:
- Constant Field Values
-
JOBSTATUS_COMPLETED
public static final int JOBSTATUS_COMPLETED
- See Also:
- Constant Field Values
-
JOBSTATUS_WINDOWWAIT
public static final int JOBSTATUS_WINDOWWAIT
- See Also:
- Constant Field Values
-
JOBSTATUS_STARTING
public static final int JOBSTATUS_STARTING
- See Also:
- Constant Field Values
-
JOBSTATUS_DESTRUCTING
public static final int JOBSTATUS_DESTRUCTING
- See Also:
- Constant Field Values
-
JOBSTATUS_ERROR
public static final int JOBSTATUS_ERROR
- See Also:
- Constant Field Values
-
JOBSTATUS_ABORTING
public static final int JOBSTATUS_ABORTING
- See Also:
- Constant Field Values
-
JOBSTATUS_RESTARTING
public static final int JOBSTATUS_RESTARTING
- See Also:
- Constant Field Values
-
JOBSTATUS_RUNNING_UNINSTALLED
public static final int JOBSTATUS_RUNNING_UNINSTALLED
- See Also:
- Constant Field Values
-
JOBSTATUS_JOBENDCLEANUP
public static final int JOBSTATUS_JOBENDCLEANUP
- See Also:
- Constant Field Values
-
JOBSTATUS_JOBENDNOTIFICATION
public static final int JOBSTATUS_JOBENDNOTIFICATION
- See Also:
- Constant Field Values
-
jobID
protected final java.lang.String jobID
-
description
protected final java.lang.String description
-
status
protected final int status
-
documentsInQueue
protected final long documentsInQueue
-
documentsOutstanding
protected final long documentsOutstanding
-
documentsProcessed
protected final long documentsProcessed
-
queueCountExact
protected final boolean queueCountExact
-
outstandingCountExact
protected final boolean outstandingCountExact
-
processedCountExact
protected final boolean processedCountExact
-
startTime
protected final long startTime
-
endTime
protected final long endTime
-
errorText
protected final java.lang.String errorText
-
-
Constructor Detail
-
JobStatus
public JobStatus(java.lang.String jobID, java.lang.String description, int status, long documentsInQueue, long documentsOutstanding, long documentsProcessed, boolean queueCountExact, boolean outstandingCountExact, boolean processedCountExact, long startTime, long endTime, java.lang.String errorText)Constructor.- Parameters:
jobID- is the job identifier.description- is the job description.status- is the job status.documentsInQueue- is the total number of documents currently in the document queue for the job.documentsOutstanding- is the total number of documents currently marked for processing.documentsProcessed- is the total number of documents that have been processed at least once.startTime- is time the job started (use -1 for never)endTime- is the time the job ended (use -1 for not yet)
-
-
Method Detail
-
getJobID
public java.lang.String getJobID()
Get the job id.- Returns:
- the id.
-
getDescription
public java.lang.String getDescription()
Get the job description.- Returns:
- the description.
-
getStatus
public int getStatus()
Get the job status.- Returns:
- the status.
-
getDocumentsInQueue
public long getDocumentsInQueue()
Get the number of documents in the queue.- Returns:
- the number of documents in the queue.
-
getQueueCountExact
public boolean getQueueCountExact()
Get whether the queue count is accurate, or an estimate.- Returns:
- true if accurate.
-
getDocumentsOutstanding
public long getDocumentsOutstanding()
Get the number of documents outstanding.- Returns:
- the documents that are waiting for processing.
-
getOutstandingCountExact
public boolean getOutstandingCountExact()
Get whether the outstanding count is accurate, or an estimate.- Returns:
- true if accurate.
-
getDocumentsProcessed
public long getDocumentsProcessed()
Get the number of documents that have been processed at least once.- Returns:
- the document count.
-
getProcessedCountExact
public boolean getProcessedCountExact()
Get whether the processed count is accurate, or an estimate.- Returns:
- true if accurate.
-
getStartTime
public long getStartTime()
Get the start time.- Returns:
- the start time, or -1
-
getEndTime
public long getEndTime()
Get the end time.- Returns:
- the end time, or -1
-
getErrorText
public java.lang.String getErrorText()
Get the error text.- Returns:
- the text, or null.
-
-