public class HttpProbe 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 |
|---|
HttpProbe(URL url,
int timeout,
int min,
int max,
org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
static HttpURLConnection |
getConnection(URL url,
int timeout) |
ProbeStatus |
ping(boolean livePing)
Ping the endpoint.
|
beginBootstrap, endBootstrap, getName, init, isBooted, setBooted, setName, toStringpublic HttpProbe(URL url, int timeout, int min, int max, org.apache.hadoop.conf.Configuration conf) throws IOException
IOExceptionpublic static HttpURLConnection getConnection(URL url, int timeout) throws IOException
IOExceptionpublic ProbeStatus ping(boolean livePing)
ProbeCopyright © 2014–2015 The Apache Software Foundation. All rights reserved.