@InterfaceAudience.Private public class TaskMonitor extends Object
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_EXPIRATION_TIME |
static int |
DEFAULT_MAX_TASKS |
static long |
DEFAULT_MONITOR_INTERVAL |
static long |
DEFAULT_RPC_WARN_TIME |
static String |
EXPIRATION_TIME_KEY |
static String |
MAX_TASKS_KEY |
static String |
MONITOR_INTERVAL_KEY |
static String |
RPC_WARN_TIME_KEY |
Modifier and Type | Method and Description |
---|---|
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.
|
void |
shutdown() |
public static final String MAX_TASKS_KEY
public static final int DEFAULT_MAX_TASKS
public static final String RPC_WARN_TIME_KEY
public static final long DEFAULT_RPC_WARN_TIME
public static final String EXPIRATION_TIME_KEY
public static final long DEFAULT_EXPIRATION_TIME
public static final String MONITOR_INTERVAL_KEY
public static final long DEFAULT_MONITOR_INTERVAL
public static TaskMonitor get()
public MonitoredTask createStatus(String description)
public MonitoredRPCHandler createRPCStatus(String description)
public List<MonitoredTask> getTasks()
public void dumpAsText(PrintWriter out)
public void shutdown()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.