public class PortProbe extends Probe
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
bootstrapFinished, bootstrapStarted, conf, failureCount, successCountBOOTSTRAP_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 |
|---|
PortProbe(String host,
int port,
int timeout,
String name,
org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
static PortProbe |
createPortProbe(org.apache.hadoop.conf.Configuration conf,
String hostname,
int port) |
void |
init()
perform any prelaunch initialization
|
ProbeStatus |
ping(boolean livePing)
Try to connect to the (host,port); a failure to connect within
the specified timeout is a failure
|
beginBootstrap, endBootstrap, getName, isBooted, setBooted, setName, toStringpublic PortProbe(String host, int port, int timeout, String name, org.apache.hadoop.conf.Configuration conf) throws IOException
IOExceptionpublic static PortProbe createPortProbe(org.apache.hadoop.conf.Configuration conf, String hostname, int port) throws IOException
IOExceptionpublic void init()
throws IOException
Probeinit in class ProbeIOExceptionpublic ProbeStatus ping(boolean livePing)
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.