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