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
FieldsModifier and TypeFieldDescriptionprivate final longprivate final Stringprivate final longprivate final ServerTask.Stateprivate final String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateServerTaskImpl(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:ServerTaskGet the task's description.- Specified by:
getDescriptionin interfaceServerTask- Returns:
- the task's description, typically a name
-
getStatus
Description copied from interface:ServerTaskGet the current status of the task.- Specified by:
getStatusin interfaceServerTask- Returns:
- the task's current status
-
getState
Description copied from interface:ServerTaskGet the current state of the task.- Specified by:
getStatein interfaceServerTask- Returns:
- the task's current state
-
getStartTime
Description copied from interface:ServerTaskGet the task start time.- Specified by:
getStartTimein interfaceServerTask- Returns:
- the time when the task started, or 0 if it has not started yet
-
getCompletionTime
Description copied from interface:ServerTaskGet the task completion time.- Specified by:
getCompletionTimein interfaceServerTask- Returns:
- the time when the task completed, or 0 if it has not completed yet
-
toString
-