org.apache.hadoop.hbase.monitoring
Class TaskMonitor

java.lang.Object
  extended by org.apache.hadoop.hbase.monitoring.TaskMonitor

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


Constructor Summary
TaskMonitor()
           
 
Method Summary
 MonitoredTask createStatus(String description)
           
 void dumpAsText(PrintWriter out)
           
static TaskMonitor get()
          Get singleton instance.
 List<MonitoredTask> getTasks()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskMonitor

public TaskMonitor()
Method Detail

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)

getTasks

public List<MonitoredTask> getTasks()

dumpAsText

public void dumpAsText(PrintWriter out)


Copyright © 2012 Cloudera. All Rights Reserved.