Package org.apache.tika.batch
Class ParallelFileProcessingResult
- java.lang.Object
-
- org.apache.tika.batch.ParallelFileProcessingResult
-
public class ParallelFileProcessingResult extends Object
-
-
Constructor Summary
Constructors Constructor Description ParallelFileProcessingResult(int considered, int added, int consumed, int numberHandledExceptions, double secondsElapsed, int exitStatus, String causeForTermination)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAdded()StringgetCauseForTermination()intgetConsidered()Returns the number of file resources considered.intgetConsumed()intgetExitStatus()intgetNumberHandledExceptions()doublesecondsElapsed()StringtoString()
-
-
-
Constructor Detail
-
ParallelFileProcessingResult
public ParallelFileProcessingResult(int considered, int added, int consumed, int numberHandledExceptions, double secondsElapsed, int exitStatus, String causeForTermination)
-
-
Method Detail
-
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
public String getCauseForTermination()
- Returns:
- whether the
BatchProcesswas 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
-
-