org.apache.manifoldcf.crawler.interfaces
Interface IAbortActivity

All Known Subinterfaces:
IProcessActivity, ISeedingActivity, IVersionActivity
All Known Implementing Classes:
SeedingActivity, WorkerThread.ProcessActivity, WorkerThread.VersionActivity

public interface IAbortActivity

This interface abstracts from the activities that handle job aborts.


Field Summary
static java.lang.String _rcsid
           
 
Method Summary
 void checkJobStillActive()
          Check whether current job is still active.
 

Field Detail

_rcsid

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

checkJobStillActive

void checkJobStillActive()
                         throws ManifoldCFException,
                                ServiceInterruption
Check whether current job is still active. This method is provided to allow an individual connector that needs to wait on some long-term condition to give up waiting due to the job itself being aborted. If the connector should abort, this method will raise a properly-formed ServiceInterruption, which if thrown to the caller, will signal that the current seeding activity remains incomplete and must be retried when the job is resumed.

Throws:
ManifoldCFException
ServiceInterruption