- java.lang.Object
-
- com.aoapps.appcluster.Node
-
public class Node extends Object
One node within the cluster.- Author:
- AO Industries, Inc.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetDisplay()Gets the display name of this node.NamegetHostname()Gets the hostname of the machine that runs this node.StringgetId()Gets the unique identifier for this node.Set<? extends Nameserver>getNameservers()Gets the set of nameservers that are local to the machine running this node.ResourceStatusgetStatus()Gets the overall status of the this node based on enabled and all resourceNodes.StringgetUsername()Gets the username the cluster must run as on the machine that runs this node.inthashCode()booleanisEnabled()Determines if both the cluster and this node are enabled.StringtoString()
-
-
-
Method Detail
-
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.
-
-