Package org.apache.tika.server.core
Class ServerStatus
- java.lang.Object
- 
- org.apache.tika.server.core.ServerStatus
 
- 
 public class ServerStatus extends Object 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classServerStatus.STATUSstatic classServerStatus.TASK
 - 
Constructor SummaryConstructors Constructor Description ServerStatus(String serverId, int numRestarts)ServerStatus(String serverId, int numRestarts, boolean isLegacy)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcomplete(long taskId)Removes the task from the collection of currently running tasks.longgetFilesProcessed()longgetMillisSinceLastParseStarted()intgetNumRestarts()StringgetServerId()ServerStatus.STATUSgetStatus()Map<Long,TaskStatus>getTasks()booleanisOperating()voidsetStatus(ServerStatus.STATUS status)longstart(ServerStatus.TASK task, String fileName, long timeoutMillis)
 
- 
- 
- 
Method Detail- 
startpublic long start(ServerStatus.TASK task, String fileName, long timeoutMillis) 
 - 
completepublic void complete(long taskId) throws IllegalArgumentExceptionRemoves the task from the collection of currently running tasks.- Parameters:
- taskId-
- Throws:
- IllegalArgumentException- if there is no task by that taskId in the collection
 
 - 
getStatuspublic ServerStatus.STATUS getStatus() 
 - 
setStatuspublic void setStatus(ServerStatus.STATUS status) 
 - 
getTaskspublic Map<Long,TaskStatus> getTasks() 
 - 
getFilesProcessedpublic long getFilesProcessed() 
 - 
getMillisSinceLastParseStartedpublic long getMillisSinceLastParseStarted() 
 - 
isOperatingpublic boolean isOperating() - Returns:
- true if this is legacy, otherwise whether or not status == OPERATING.
 
 - 
getServerIdpublic String getServerId() 
 - 
getNumRestartspublic int getNumRestarts() 
 
- 
 
-