org.apache.hadoop.hbase.monitoring
Class TaskMonitor
java.lang.Object
org.apache.hadoop.hbase.monitoring.TaskMonitor
@InterfaceAudience.Private
public class TaskMonitor
- extends Object
Singleton which keeps track of tasks going on in this VM.
A Task here is anything which takes more than a few seconds
and the user might want to inquire about the status
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TaskMonitor
public TaskMonitor()
get
public static TaskMonitor get()
- Get singleton instance.
TODO this would be better off scoped to a single daemon
createStatus
public MonitoredTask createStatus(String description)
createRPCStatus
public MonitoredRPCHandler createRPCStatus(String description)
getTasks
public List<MonitoredTask> getTasks()
- Produces a list containing copies of the current state of all non-expired
MonitoredTasks handled by this TaskMonitor.
- Returns:
- A complete list of MonitoredTasks.
dumpAsText
public void dumpAsText(PrintWriter out)
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.