Class ResourceNode<R extends Resource<R,N>,N extends ResourceNode<R,N>>

java.lang.Object
com.aoapps.appcluster.ResourceNode<R,N>
Direct Known Subclasses:
CronResourceNode

public abstract class ResourceNode<R extends Resource<R,N>,N extends ResourceNode<R,N>> extends Object
The node settings on a per-resource basis.
Author:
AO Industries, Inc.
  • Constructor Details

  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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 or null if this is not a remote node.