public class ServerStatus extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ServerStatus.STATUS |
static class |
ServerStatus.TASK |
Constructor and Description |
---|
ServerStatus(String serverId,
int numRestarts) |
ServerStatus(String serverId,
int numRestarts,
boolean isLegacy) |
Modifier and Type | Method and Description |
---|---|
void |
complete(long taskId)
Removes the task from the collection of currently running tasks.
|
long |
getFilesProcessed() |
long |
getMillisSinceLastParseStarted() |
int |
getNumRestarts() |
String |
getServerId() |
ServerStatus.STATUS |
getStatus() |
Map<Long,TaskStatus> |
getTasks() |
boolean |
isOperating() |
void |
setStatus(ServerStatus.STATUS status) |
long |
start(ServerStatus.TASK task,
String fileName,
long timeoutMillis) |
public ServerStatus(String serverId, int numRestarts)
public ServerStatus(String serverId, int numRestarts, boolean isLegacy)
public long start(ServerStatus.TASK task, String fileName, long timeoutMillis)
public void complete(long taskId) throws IllegalArgumentException
taskId
- IllegalArgumentException
- if there is no task by that taskId in the collectionpublic ServerStatus.STATUS getStatus()
public void setStatus(ServerStatus.STATUS status)
public Map<Long,TaskStatus> getTasks()
public long getFilesProcessed()
public long getMillisSinceLastParseStarted()
public boolean isOperating()
public String getServerId()
public int getNumRestarts()
Copyright © 2007–2023 The Apache Software Foundation. All rights reserved.