java.lang.Object
com.aoapps.appcluster.Node

public class Node extends Object
One node within the cluster.
Author:
AO Industries, Inc.
  • 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
    • getId

      public String getId()
      Gets the unique identifier for this node.
    • isEnabled

      public boolean isEnabled()
      Determines if both the cluster and this node are enabled.
    • getDisplay

      public String getDisplay()
      Gets the display name of this node.
    • getHostname

      public Name getHostname()
      Gets the hostname of the machine that runs this node.
    • getUsername

      public String getUsername()
      Gets the username the cluster must run as on the machine that runs this node. This must match the system property "user.name" for this JVM to be considered as "localNode".
    • getNameservers

      public Set<? extends Nameserver> getNameservers()
      Gets the set of nameservers that are local to the machine running this node.
    • getStatus

      public ResourceStatus getStatus()
      Gets the overall status of the this node based on enabled and all resourceNodes.