@InterfaceAudience.Private public interface MonitoredTask extends Cloneable
| Modifier and Type | Interface and Description | 
|---|---|
| static class  | MonitoredTask.State | 
| static interface  | MonitoredTask.StatusJournalEntry | 
| 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 | disableStatusJournal() | 
| void | enableStatusJournal(boolean includeCurrentStatus)Enable journal that will store all statuses that have been set along with the time stamps when
 they were set. | 
| void | expireNow() | 
| long | getCompletionTimestamp() | 
| String | getDescription() | 
| long | getStartTime() | 
| MonitoredTask.State | getState() | 
| long | getStateTime() | 
| String | getStatus() | 
| List<MonitoredTask.StatusJournalEntry> | getStatusJournal() | 
| long | getStatusTime() | 
| long | getWarnTime() | 
| void | markComplete(String msg) | 
| void | pause(String msg) | 
| String | prettyPrintJournal() | 
| void | resume(String msg) | 
| void | setDescription(String description) | 
| void | setStatus(String status) | 
| void | setWarnTime(long t) | 
| 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()
long getStatusTime()
MonitoredTask.State getState()
long getStateTime()
long getCompletionTimestamp()
long getWarnTime()
void markComplete(String msg)
void expireNow()
void setDescription(String description)
void setWarnTime(long t)
List<MonitoredTask.StatusJournalEntry> getStatusJournal()
void enableStatusJournal(boolean includeCurrentStatus)
includeCurrentStatus - whether to include the current set status in the journalvoid disableStatusJournal()
String prettyPrintJournal()
void cleanup()
MonitoredTask clone()
Map<String,Object> toMap() throws IOException
IOExceptionString toJSON() throws IOException
IOExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.