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()
ServerTask
getDescription
in interface ServerTask
public String getStatus()
ServerTask
getStatus
in interface ServerTask
public ServerTask.State getState()
ServerTask
getState
in interface ServerTask
public long getStartTime()
ServerTask
getStartTime
in interface ServerTask
public long getCompletionTime()
ServerTask
getCompletionTime
in interface ServerTask
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.