public abstract class Probe extends Object implements MonitorKeys
| Modifier and Type | Field and Description |
|---|---|
long |
bootstrapFinished |
long |
bootstrapStarted |
protected org.apache.hadoop.conf.Configuration |
conf |
int |
failureCount |
int |
successCount |
BOOTSTRAP_TIMEOUT_DEFAULT, DEFAULT_PROBE_HOST, DEFAULT_PROBE_PORT, JT_PROBE_BOOTSTRAP_TIMEOUT, JT_PROBE_BOOTSTRAP_TIMEOUT_DEFAULT, JT_PROBE_ENABLED, LS_PROBE_BOOTSTRAP_TIMEOUT, LS_PROBE_BOOTSTRAP_TIMEOUT_DEFAULT, LS_PROBE_DEFAULT, LS_PROBE_ENABLED, LS_PROBE_PATH, MONITOR_BOOTSTRAP_TIMEOUT, MONITOR_DEPENDENCY_DFSLIVE, MONITOR_KEY_PREFIX, MONITOR_PROBE_INTERVAL, MONITOR_PROBE_TIMEOUT, MONITOR_REPORT_INTERVAL, MONITOR_REPORTER, PID_PROBE_ENABLED, PID_PROBE_PIDFILE, PORT_PROBE_BOOTSTRAP_TIMEOUT, PORT_PROBE_BOOTSTRAP_TIMEOUT_DEFAULT, PORT_PROBE_CONNECT_TIMEOUT, PORT_PROBE_CONNECT_TIMEOUT_DEFAULT, PORT_PROBE_ENABLED, PORT_PROBE_HOST, PORT_PROBE_PORT, PROBE_INTERVAL_DEFAULT, PROBE_TIMEOUT_DEFAULT, REPORT_INTERVAL_DEFAULT, WEB_PROBE_BOOTSTRAP_TIMEOUT, WEB_PROBE_BOOTSTRAP_TIMEOUT_DEFAULT, WEB_PROBE_CONNECT_TIMEOUT, WEB_PROBE_DEFAULT_CODE, WEB_PROBE_DEFAULT_URL, WEB_PROBE_ENABLED, WEB_PROBE_MAX, WEB_PROBE_MIN, WEB_PROBE_URL| Constructor and Description |
|---|
Probe(String name,
org.apache.hadoop.conf.Configuration conf)
Create a probe of a specific name
|
| Modifier and Type | Method and Description |
|---|---|
void |
beginBootstrap() |
void |
endBootstrap() |
String |
getName() |
void |
init()
perform any prelaunch initialization
|
boolean |
isBooted() |
abstract ProbeStatus |
ping(boolean livePing)
Ping the endpoint.
|
void |
setBooted(boolean booted) |
protected void |
setName(String name) |
String |
toString() |
protected final org.apache.hadoop.conf.Configuration conf
public int successCount
public int failureCount
public long bootstrapStarted
public long bootstrapFinished
public Probe(String name, org.apache.hadoop.conf.Configuration conf)
name - probe nameconf - configuration being stored.protected void setName(String name)
public String getName()
public void init()
throws IOException
IOExceptionpublic abstract ProbeStatus ping(boolean livePing)
livePing - is the ping live: true for live; false for boot timepublic void beginBootstrap()
public void endBootstrap()
public boolean isBooted()
public void setBooted(boolean booted)
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.