java.lang.Object
com.aoapps.appcluster.ResourceDnsMonitor
Monitors the status of a resource by monitoring its role based on DNS entries
Monitors DNS entries to determine which nodes are masters and which are slaves
while being careful to detect any inconsistent states.
- Author:
- AO Industries, Inc.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the last result.Resource
<?, ?> Gets the resource this monitor is for.
-
Field Details
-
DNS_CHECK_INTERVAL
Checks the DNS settings once every 30 seconds. -
DNS_ATTEMPTS
public static final int DNS_ATTEMPTSThe number of DNS tries.- See Also:
-
DNS_CHECK_TIMEOUT
DNS queries time-out at 30 seconds.
-
-
Method Details
-
getResource
Gets the resource this monitor is for. -
getLastResult
Gets the last result.
-