Package org.apache.tika.server.core
Class ServerStatus
java.lang.Object
org.apache.tika.server.core.ServerStatus
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionServerStatus(String serverId, int numRestarts) ServerStatus(String serverId, int numRestarts, boolean isLegacy) -
Method Summary
Modifier and TypeMethodDescriptionvoidcomplete(long taskId) Removes the task from the collection of currently running tasks.longlongintgetTasks()booleanvoidsetStatus(ServerStatus.STATUS status) longstart(ServerStatus.TASK task, String fileName, long timeoutMillis)
-
Constructor Details
-
ServerStatus
-
ServerStatus
-
-
Method Details
-
start
-
complete
Removes the task from the collection of currently running tasks.- Parameters:
taskId-- Throws:
IllegalArgumentException- if there is no task by that taskId in the collection
-
getStatus
-
setStatus
-
getTasks
-
getFilesProcessed
public long getFilesProcessed() -
getMillisSinceLastParseStarted
public long getMillisSinceLastParseStarted() -
isOperating
public boolean isOperating()- Returns:
- true if this is legacy, otherwise whether or not status == OPERATING.
-
getServerId
-
getNumRestarts
public int getNumRestarts()
-