Class IndexingState
- java.lang.Object
-
- dk.netarkivet.harvester.indexserver.IndexingState
-
public class IndexingState extends java.lang.Object
Stores the state of a indexing task.
-
-
Constructor Summary
Constructors Constructor Description IndexingState(java.lang.Long jobId, java.lang.String indexingpath, java.util.concurrent.Future<java.lang.Boolean> result)
Constructor for an IndexingState object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getIndex()
java.lang.Long
getJobIdentifier()
java.util.concurrent.Future<java.lang.Boolean>
getResultObject()
java.lang.String
toString()
-
-
-
Constructor Detail
-
IndexingState
public IndexingState(java.lang.Long jobId, java.lang.String indexingpath, java.util.concurrent.Future<java.lang.Boolean> result)
Constructor for an IndexingState object.- Parameters:
jobId
- The ID of the Job being indexing.indexingpath
- The full path to the index.result
- The result object for the indexing task
-
-
Method Detail
-
getJobIdentifier
public java.lang.Long getJobIdentifier()
- Returns:
- the Id of the job being indexed.
-
getIndex
public java.lang.String getIndex()
- Returns:
- the full path to the index generated.
-
getResultObject
public java.util.concurrent.Future<java.lang.Boolean> getResultObject()
- Returns:
- the result of the indexing process.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-