|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.manifoldcf.crawler.system.WorkerThread.VersionActivity
protected static class WorkerThread.VersionActivity
Version activity class wraps access to activity history.
| Field Summary | |
|---|---|
protected java.util.HashMap |
abortSet
|
protected java.lang.String |
connectionName
|
protected IRepositoryConnectionManager |
connMgr
|
protected IIncrementalIngester |
ingester
|
protected IJobDescription |
job
|
protected java.lang.Long |
jobID
|
protected IJobManager |
jobManager
|
| Fields inherited from interface org.apache.manifoldcf.crawler.interfaces.IVersionActivity |
|---|
_rcsid |
| Constructor Summary | |
|---|---|
WorkerThread.VersionActivity(java.lang.String connectionName,
IRepositoryConnectionManager connMgr,
IJobManager jobManager,
IJobDescription job,
IIncrementalIngester ingester,
java.util.HashMap abortSet)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
beginEventSequence(java.lang.String eventName)
Begin an event sequence. |
boolean |
checkDocumentIndexable(java.io.File localFile)
Check whether a document is indexable by the currently specified output connector. |
void |
checkJobStillActive()
Check whether current job is still active. |
boolean |
checkMimeTypeIndexable(java.lang.String mimeType)
Check whether a mime type is indexable by the currently specified output connector. |
void |
completeEventSequence(java.lang.String eventName)
Complete an event sequence. |
java.lang.String |
createConnectionSpecificString(java.lang.String simpleString)
Create a connection-specific string from a simple string. |
java.lang.String |
createGlobalString(java.lang.String simpleString)
Create a global string from a simple string. |
java.lang.String |
createJobSpecificString(java.lang.String simpleString)
Create a job-based string from a simple string. |
void |
recordActivity(java.lang.Long startTime,
java.lang.String activityType,
java.lang.Long dataSize,
java.lang.String entityIdentifier,
java.lang.String resultCode,
java.lang.String resultDescription,
java.lang.String[] childIdentifiers)
Record time-stamped information about the activity of the connector. |
java.lang.String[] |
retrieveParentData(java.lang.String localIdentifier,
java.lang.String dataName)
Retrieve data passed from parents to a specified child document. |
CharacterInput[] |
retrieveParentDataAsFiles(java.lang.String localIdentifier,
java.lang.String dataName)
Retrieve data passed from parents to a specified child document. |
void |
retryDocumentProcessing(java.lang.String localIdentifier)
Abort processing a document (for sequencing reasons). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String connectionName
protected IRepositoryConnectionManager connMgr
protected IJobManager jobManager
protected java.lang.Long jobID
protected IJobDescription job
protected IIncrementalIngester ingester
protected java.util.HashMap abortSet
| Constructor Detail |
|---|
public WorkerThread.VersionActivity(java.lang.String connectionName,
IRepositoryConnectionManager connMgr,
IJobManager jobManager,
IJobDescription job,
IIncrementalIngester ingester,
java.util.HashMap abortSet)
| Method Detail |
|---|
public boolean checkMimeTypeIndexable(java.lang.String mimeType)
throws ManifoldCFException,
ServiceInterruption
checkMimeTypeIndexable in interface IFingerprintActivitymimeType - is the mime type to check, not including any character set specification.
ManifoldCFException
ServiceInterruption
public boolean checkDocumentIndexable(java.io.File localFile)
throws ManifoldCFException,
ServiceInterruption
checkDocumentIndexable in interface IFingerprintActivitylocalFile - is the local copy of the file to check.
ManifoldCFException
ServiceInterruption
public void recordActivity(java.lang.Long startTime,
java.lang.String activityType,
java.lang.Long dataSize,
java.lang.String entityIdentifier,
java.lang.String resultCode,
java.lang.String resultDescription,
java.lang.String[] childIdentifiers)
throws ManifoldCFException
recordActivity in interface IHistoryActivitystartTime - is either null or the time since the start of epoch in milliseconds (Jan 1, 1970). Every
activity has an associated time; the startTime field records when the activity began. A null value
indicates that the start time and the finishing time are the same.activityType - is a string which is fully interpretable only in the context of the connector involved, which is
used to categorize what kind of activity is being recorded. For example, a web connector might record a
"fetch document" activity. Cannot be null.dataSize - is the number of bytes of data involved in the activity, or null if not applicable.entityIdentifier - is a (possibly long) string which identifies the object involved in the history record.
The interpretation of this field will differ from connector to connector. May be null.resultCode - contains a terse description of the result of the activity. The description is limited in
size to 255 characters, and can be interpreted only in the context of the current connector. May be null.resultDescription - is a (possibly long) human-readable string which adds detail, if required, to the result
described in the resultCode field. This field is not meant to be queried on. May be null.childIdentifiers - is a set of child entity identifiers associated with this activity. May be null.
ManifoldCFException
public java.lang.String[] retrieveParentData(java.lang.String localIdentifier,
java.lang.String dataName)
throws ManifoldCFException
retrieveParentData in interface IVersionActivitylocalIdentifier - is the document identifier of the document we want the recorded data for.dataName - is the name of the data items to retrieve.
ManifoldCFException
public CharacterInput[] retrieveParentDataAsFiles(java.lang.String localIdentifier,
java.lang.String dataName)
throws ManifoldCFException
retrieveParentDataAsFiles in interface IVersionActivitylocalIdentifier - is the document identifier of the document we want the recorded data for.dataName - is the name of the data items to retrieve.
ManifoldCFException
public void checkJobStillActive()
throws ManifoldCFException,
ServiceInterruption
checkJobStillActive in interface IAbortActivityManifoldCFException
ServiceInterruption
public boolean beginEventSequence(java.lang.String eventName)
throws ManifoldCFException
beginEventSequence in interface IEventActivityeventName - is the event name.
ManifoldCFException
public void completeEventSequence(java.lang.String eventName)
throws ManifoldCFException
completeEventSequence in interface IEventActivityeventName - is the event name.
ManifoldCFException
public void retryDocumentProcessing(java.lang.String localIdentifier)
throws ManifoldCFException
retryDocumentProcessing in interface IEventActivitylocalIdentifier - is the document identifier to requeue
ManifoldCFExceptionpublic java.lang.String createGlobalString(java.lang.String simpleString)
createGlobalString in interface INamingActivitysimpleString - is the simple string.
public java.lang.String createConnectionSpecificString(java.lang.String simpleString)
createConnectionSpecificString in interface INamingActivitysimpleString - is the simple string.
public java.lang.String createJobSpecificString(java.lang.String simpleString)
createJobSpecificString in interface INamingActivitysimpleString - is the simple string.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||