Class ServerStatus

java.lang.Object
org.apache.tika.server.core.ServerStatus

public class ServerStatus extends Object
  • Constructor Details

    • ServerStatus

      public ServerStatus(String serverId, int numRestarts)
    • ServerStatus

      public ServerStatus(String serverId, int numRestarts, boolean isLegacy)
  • Method Details

    • start

      public long start(ServerStatus.TASK task, String fileName, long timeoutMillis)
    • complete

      public void complete(long taskId) throws IllegalArgumentException
      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

      public ServerStatus.STATUS getStatus()
    • setStatus

      public void setStatus(ServerStatus.STATUS status)
    • getTasks

      public Map<Long,TaskStatus> 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

      public String getServerId()
    • getNumRestarts

      public int getNumRestarts()