public class UiClusterMember extends UiElement
Constructor and Description |
---|
UiClusterMember(UiTopology topology,
ControllerNode cnode)
Constructs a UI cluster member, with a reference to the parent
topology instance and the specified controller node instance.
|
Modifier and Type | Method and Description |
---|---|
ControllerNode |
backingNode()
Returns the controller node instance backing this UI cluster member.
|
NodeId |
id()
Returns the identity of the cluster member.
|
String |
idAsString()
Returns a string representation of the element identifier.
|
IpAddress |
ip()
Returns the IP address of the cluster member.
|
boolean |
isOnline()
Returns true if this cluster member is online (active).
|
boolean |
isReady()
Returns true if this cluster member is considered ready.
|
void |
setState(ControllerNode.State state)
Sets the state of this cluster member.
|
String |
toString() |
public UiClusterMember(UiTopology topology, ControllerNode cnode)
topology
- parent topology containing this cluster membercnode
- underlying controller nodepublic String idAsString()
UiElement
idAsString
in class UiElement
public ControllerNode backingNode()
public void setState(ControllerNode.State state)
state
- the statepublic NodeId id()
public IpAddress ip()
public boolean isOnline()
public boolean isReady()