Package org.apache.tika.batch
Class ParallelFileProcessingResult
java.lang.Object
org.apache.tika.batch.ParallelFileProcessingResult
-
Constructor Summary
ConstructorDescriptionParallelFileProcessingResult
(int considered, int added, int consumed, int numberHandledExceptions, double secondsElapsed, int exitStatus, String causeForTermination) -
Method Summary
-
Constructor Details
-
ParallelFileProcessingResult
public ParallelFileProcessingResult(int considered, int added, int consumed, int numberHandledExceptions, double secondsElapsed, int exitStatus, String causeForTermination)
-
-
Method Details
-
getConsidered
public int getConsidered()Returns the number of file resources considered. If a filter causes the crawler to ignore a number of resources, this number could be higher than that returned bygetConsumed()
.- Returns:
- number of file resources considered
-
getAdded
public int getAdded()- Returns:
- number of resources added to the queue
-
getConsumed
public int getConsumed()- Returns:
- number of resources that were tried to be consumed. There may have been an exception.
-
getCauseForTermination
- Returns:
- whether the
BatchProcess
was interrupted by anInterrupter
.
-
secondsElapsed
public double secondsElapsed()- Returns:
- seconds elapsed since the start of the batch processing
-
getNumberHandledExceptions
public int getNumberHandledExceptions() -
getExitStatus
public int getExitStatus()- Returns:
- intendedExitStatus
-
toString
-