private static final class ServerTaskBuilder.ServerTaskImpl extends Object implements ServerTask
ServerTask.State| Modifier and Type | Field and Description |
|---|---|
private long |
completionTime |
private String |
description |
private long |
startTime |
private ServerTask.State |
state |
private String |
status |
| Modifier | Constructor and Description |
|---|---|
private |
ServerTaskImpl(String description,
String status,
ServerTask.State state,
long startTime,
long completionTime) |
| Modifier and Type | Method and Description |
|---|---|
long |
getCompletionTime()
Get the task completion time.
|
String |
getDescription()
Get the task's description.
|
long |
getStartTime()
Get the task start time.
|
ServerTask.State |
getState()
Get the current state of the task.
|
String |
getStatus()
Get the current status of the task.
|
String |
toString() |
private final String description
private final ServerTask.State state
private final long startTime
private final long completionTime
private ServerTaskImpl(String description, String status, ServerTask.State state, long startTime, long completionTime)
public String getDescription()
ServerTaskgetDescription in interface ServerTaskpublic String getStatus()
ServerTaskgetStatus in interface ServerTaskpublic ServerTask.State getState()
ServerTaskgetState in interface ServerTaskpublic long getStartTime()
ServerTaskgetStartTime in interface ServerTaskpublic long getCompletionTime()
ServerTaskgetCompletionTime in interface ServerTaskCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.