Package org.apache.tika.server.core
Class ServerStatus
java.lang.Object
org.apache.tika.server.core.ServerStatus
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionServerStatus
(String serverId, int numRestarts) ServerStatus
(String serverId, int numRestarts, boolean isLegacy) -
Method Summary
Modifier and TypeMethodDescriptionvoid
complete
(long taskId) Removes the task from the collection of currently running tasks.long
long
int
getTasks()
boolean
void
setStatus
(ServerStatus.STATUS status) long
start
(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()
-