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
 MonitoredRPCHandler createRPCStatus(String description)
           
 MonitoredTask createStatus(String description)
           
 void dumpAsText(PrintWriter out)
           
static TaskMonitor get()
          Get singleton instance.
 List<MonitoredTask> getTasks()
          Produces a list containing copies of the current state of all non-expired MonitoredTasks handled by this TaskMonitor.
 
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)

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 © 2015 The Apache Software Foundation. All Rights Reserved.