org.apache.manifoldcf.crawler.interfaces
Class JobStartRecord

java.lang.Object
  extended by org.apache.manifoldcf.crawler.interfaces.JobStartRecord

public class JobStartRecord
extends java.lang.Object

This class is a paper object which contains a job ID and a last job start time (0 if none).


Field Summary
static java.lang.String _rcsid
           
protected  java.lang.Long jobID
          The job id.
protected  long synchTime
          The last synch time
protected  boolean wasStarted
          Whether this job was started or not
 
Constructor Summary
JobStartRecord(java.lang.Long jobID, long synchTime)
          Constructor.
 
Method Summary
 java.lang.Long getJobID()
          Get the job ID.
 long getSynchTime()
          Get the synch time.
 void noteStarted()
          Note that the job was started.
 boolean wasStarted()
          Check whether job was started.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_rcsid

public static final java.lang.String _rcsid
See Also:
Constant Field Values

jobID

protected java.lang.Long jobID
The job id.


synchTime

protected long synchTime
The last synch time


wasStarted

protected boolean wasStarted
Whether this job was started or not

Constructor Detail

JobStartRecord

public JobStartRecord(java.lang.Long jobID,
                      long synchTime)
Constructor.

Method Detail

getJobID

public java.lang.Long getJobID()
Get the job ID.

Returns:
the id.

getSynchTime

public long getSynchTime()
Get the synch time.

Returns:
the time.

noteStarted

public void noteStarted()
Note that the job was started.


wasStarted

public boolean wasStarted()
Check whether job was started.

Returns:
true if started.