Package org.onosproject.ui.model.topo
Class UiClusterMember
- java.lang.Object
-
- org.onosproject.ui.model.topo.UiElement
-
- org.onosproject.ui.model.topo.UiClusterMember
-
public class UiClusterMember extends UiElement
Represents an individual member of the cluster (ONOS instance).
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ControllerNode
backingNode()
Returns the controller node instance backing this UI cluster member.NodeId
id()
Returns the identity of the cluster member.java.lang.String
idAsString()
Returns a string representation of the element identifier.IpAddress
ip()
Returns the IP address of the cluster member.java.lang.String
toString()
-
-
-
Constructor Detail
-
UiClusterMember
public UiClusterMember(UiTopology topology, ControllerNode cnode)
Constructs a UI cluster member, with a reference to the parent topology instance and the specified controller node instance.- Parameters:
topology
- parent topology containing this cluster membercnode
- underlying controller node
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
idAsString
public java.lang.String idAsString()
Description copied from class:UiElement
Returns a string representation of the element identifier.- Specified by:
idAsString
in classUiElement
- Returns:
- the element unique identifier
-
backingNode
public ControllerNode backingNode()
Returns the controller node instance backing this UI cluster member.- Returns:
- the backing controller node instance
-
id
public NodeId id()
Returns the identity of the cluster member.- Returns:
- member identifier
-
ip
public IpAddress ip()
Returns the IP address of the cluster member.- Returns:
- the IP address
-
-