Package org.apache.hadoop.hbase
Class ServerTaskBuilder.ServerTaskImpl
java.lang.Object
org.apache.hadoop.hbase.ServerTaskBuilder.ServerTaskImpl
- All Implemented Interfaces:
ServerTask
- Enclosing class:
- ServerTaskBuilder
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.ServerTask
ServerTask.State
-
Field Summary
Modifier and TypeFieldDescriptionprivate final long
private final String
private final long
private final ServerTask.State
private final String
-
Constructor Summary
ModifierConstructorDescriptionprivate
ServerTaskImpl
(String description, String status, ServerTask.State state, long startTime, long completionTime) -
Method Summary
-
Field Details
-
description
-
status
-
state
-
startTime
-
completionTime
-
-
Constructor Details
-
ServerTaskImpl
private ServerTaskImpl(String description, String status, ServerTask.State state, long startTime, long completionTime)
-
-
Method Details
-
getDescription
Description copied from interface:ServerTask
Get the task's description.- Specified by:
getDescription
in interfaceServerTask
- Returns:
- the task's description, typically a name
-
getStatus
Description copied from interface:ServerTask
Get the current status of the task.- Specified by:
getStatus
in interfaceServerTask
- Returns:
- the task's current status
-
getState
Description copied from interface:ServerTask
Get the current state of the task.- Specified by:
getState
in interfaceServerTask
- Returns:
- the task's current state
-
getStartTime
Description copied from interface:ServerTask
Get the task start time.- Specified by:
getStartTime
in interfaceServerTask
- Returns:
- the time when the task started, or 0 if it has not started yet
-
getCompletionTime
Description copied from interface:ServerTask
Get the task completion time.- Specified by:
getCompletionTime
in interfaceServerTask
- Returns:
- the time when the task completed, or 0 if it has not completed yet
-
toString
-