Class DefaultProbe
java.lang.Object
org.apache.hadoop.yarn.service.monitor.probe.Probe
org.apache.hadoop.yarn.service.monitor.probe.DefaultProbe
- All Implemented Interfaces:
MonitorKeys
A probe that checks whether the AM has retrieved an IP for a container.
Optional parameters enable a subsequent check for whether a DNS lookup can
be performed for the container's hostname. Configurable properties include:
dns.check.enabled - true if DNS check should be performed (default false)
dns.address - optional IP:port address of DNS server to use for DNS check
-
Field Summary
Fields inherited from interface org.apache.hadoop.yarn.service.monitor.probe.MonitorKeys
DEFAULT_PROBE_DNS_ADDRESS, DEFAULT_PROBE_DNS_CHECK_ENABLED, DEFAULT_PROBE_DNS_CHECK_ENABLED_DEFAULT, PORT_PROBE_CONNECT_TIMEOUT, PORT_PROBE_CONNECT_TIMEOUT_DEFAULT, PORT_PROBE_PORT, WEB_PROBE_CONNECT_TIMEOUT, WEB_PROBE_CONNECT_TIMEOUT_DEFAULT, WEB_PROBE_MAX_SUCCESS, WEB_PROBE_MAX_SUCCESS_DEFAULT, WEB_PROBE_MIN_SUCCESS, WEB_PROBE_MIN_SUCCESS_DEFAULT, WEB_PROBE_URL -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefaultProbe(String name, Map<String, String> props) DefaultProbe(Map<String, String> props) -
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultProbecreate()static DefaultProbeprotected booleanping(ComponentInstance instance) Ping the endpoint.Methods inherited from class org.apache.hadoop.yarn.service.monitor.probe.Probe
getName, getProperty, getPropertyBool, getPropertyInt, init, setName, toString
-
Constructor Details
-
DefaultProbe
-
DefaultProbe
-
-
Method Details
-
create
- Throws:
IOException
-
create
- Throws:
IOException
-
ping
Description copied from class:ProbePing the endpoint. All exceptions must be caught and included in the (failure) status. -
isDnsCheckEnabled
protected boolean isDnsCheckEnabled()
-