Module com.aoapps.appcluster.core
Package com.aoapps.appcluster
Class ResourceNode<R extends Resource<R,RN>,RN extends ResourceNode<R,RN>>
- java.lang.Object
-
- com.aoapps.appcluster.ResourceNode<R,RN>
-
- Direct Known Subclasses:
CronResourceNode
public abstract class ResourceNode<R extends Resource<R,RN>,RN extends ResourceNode<R,RN>> extends Object
The node settings on a per-resource basis.- Author:
- AO Industries, Inc.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedResourceNode(Node node, ResourceNodeConfiguration<R,RN> resourceNodeConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)NodeDnsStatusgetDnsStatus()Gets the current DNS status of this resource node.NodegetNode()Gets the node this represents.Set<? extends Name>getNodeRecords()Gets the set of node DNS records that must all by the same and match the resource's masterRecords for this node to be considered a master.RgetResource()Gets the resource this represents.ResourceStatusgetSynchronizationStatus()Gets the synchronization status for this resource node as a remote node ornullif this is not a remote node.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
ResourceNode
protected ResourceNode(Node node, ResourceNodeConfiguration<R,RN> resourceNodeConfiguration)
-
-
Method Detail
-
getResource
public R getResource()
Gets the resource this represents.
-
getNode
public Node getNode()
Gets the node this represents.
-
getNodeRecords
public Set<? extends Name> getNodeRecords()
Gets the set of node DNS records that must all by the same and match the resource's masterRecords for this node to be considered a master.
-
getDnsStatus
public NodeDnsStatus getDnsStatus()
Gets the current DNS status of this resource node.
-
getSynchronizationStatus
public ResourceStatus getSynchronizationStatus()
Gets the synchronization status for this resource node as a remote node ornullif this is not a remote node.
-
-