- java.lang.Object
-
- com.aoapps.appcluster.ResourceDnsResult
-
- All Implemented Interfaces:
ResourceResult
public class ResourceDnsResult extends Object implements ResourceResult
Contains the results of one DNS monitoring pass.- Author:
- AO Industries, Inc.
-
-
Field Summary
Fields Modifier and Type Field Description static intERROR_SECONDSstatic intWARNING_SECONDSThe warning is 10 seconds after the longest check time including timeouts.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TimestampgetEndTime()Map<? extends Name,? extends Map<? extends Nameserver,? extends DnsLookupResult>>getMasterRecordLookups()Gets the mapping of all masterRecord DNS lookups in the form masterRecord->enabledNameserver->result.MasterDnsStatusgetMasterStatus()Gets the status of the master records.SortedSet<String>getMasterStatusMessages()Gets the master status messages.Map<? extends Node,? extends ResourceNodeDnsResult>getNodeResultMap()Gets the result of each node.Collection<? extends ResourceNodeDnsResult>getNodeResults()Gets the result of each node.Resource<?,?>getResource()ResourceStatusgetResourceStatus()Gets the ResourceStatus this result will cause.LonggetSecondsSince()Gets the number of seconds since this result had started ornullif not running.ResourceStatusgetSecondsSinceStatus()Matches the rules for resource status.TimestampgetStartTime()
-
-
-
Method Detail
-
getResource
public Resource<?,?> getResource()
-
getStartTime
public Timestamp getStartTime()
- Specified by:
getStartTimein interfaceResourceResult
-
getEndTime
public Timestamp getEndTime()
- Specified by:
getEndTimein interfaceResourceResult
-
getSecondsSince
public Long getSecondsSince()
Gets the number of seconds since this result had started ornullif not running.
-
getSecondsSinceStatus
public ResourceStatus getSecondsSinceStatus()
Matches the rules for resource status.- See Also:
getResourceStatus()
-
getMasterRecordLookups
public Map<? extends Name,? extends Map<? extends Nameserver,? extends DnsLookupResult>> getMasterRecordLookups()
Gets the mapping of all masterRecord DNS lookups in the form masterRecord->enabledNameserver->result. If no lookups have been performed, such as during STOPPED or UNKNOWN state, returnsnull. Otherwise, it contains an entry for every masterRecord querying every enabled nameserver.
-
getMasterStatus
public MasterDnsStatus getMasterStatus()
Gets the status of the master records.
-
getMasterStatusMessages
public SortedSet<String> getMasterStatusMessages()
Gets the master status messages. If no message, returns an empty set.
-
getNodeResultMap
public Map<? extends Node,? extends ResourceNodeDnsResult> getNodeResultMap()
Gets the result of each node. This has an entry for every node in this resource.
-
getNodeResults
public Collection<? extends ResourceNodeDnsResult> getNodeResults()
Gets the result of each node. This has an entry for every node in this resource.
-
getResourceStatus
public ResourceStatus getResourceStatus()
Gets the ResourceStatus this result will cause.- Specified by:
getResourceStatusin interfaceResourceResult
-
-