@InterfaceAudience.Private public interface MonitoredTask extends Cloneable
Modifier and Type | Interface and Description |
---|---|
static class |
MonitoredTask.State |
Modifier and Type | Method and Description |
---|---|
void |
abort(String msg) |
void |
cleanup()
Explicitly mark this status as able to be cleaned up,
even though it might not be complete.
|
MonitoredTask |
clone()
Public exposure of Object.clone() in order to allow clients to easily
capture current state.
|
void |
expireNow() |
long |
getCompletionTimestamp() |
String |
getDescription() |
long |
getStartTime() |
MonitoredTask.State |
getState() |
long |
getStateTime() |
String |
getStatus() |
long |
getStatusTime() |
void |
markComplete(String msg) |
void |
pause(String msg) |
void |
resume(String msg) |
void |
setDescription(String description) |
void |
setStatus(String status) |
String |
toJSON()
Creates a JSON object for parseable exposure of monitored tasks.
|
Map<String,Object> |
toMap()
Creates a string map of internal details for extensible exposure of
monitored tasks.
|
long getStartTime()
String getDescription()
String getStatus()
long getStatusTime()
MonitoredTask.State getState()
long getStateTime()
long getCompletionTimestamp()
void markComplete(String msg)
void pause(String msg)
void resume(String msg)
void abort(String msg)
void expireNow()
void setStatus(String status)
void setDescription(String description)
void cleanup()
MonitoredTask clone()
Map<String,Object> toMap() throws IOException
IOException
String toJSON() throws IOException
IOException
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.