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.
|
int |
deviceCount()
Returns the number of devices for which this cluster member is master.
|
NodeId |
id()
Returns the identity of the cluster member.
|
String |
idAsString()
Returns a string representation of the element identifier.
|
org.onlab.packet.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.
|
Set<DeviceId> |
masterOf()
Returns the list of devices for which this cluster member is master.
|
boolean |
masterOf(DeviceId deviceId)
Returns true if the specified device is one for which this cluster
member is master.
|
void |
setMastership(Set<DeviceId> mastership)
Sets the collection of identities of devices for which this
controller node is master.
|
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 node.public String idAsString()
UiElementidAsString in class UiElementpublic ControllerNode backingNode()
public void setState(ControllerNode.State state)
state - the statepublic void setMastership(Set<DeviceId> mastership)
mastership - device IDspublic NodeId id()
public org.onlab.packet.IpAddress ip()
public boolean isOnline()
public boolean isReady()
public int deviceCount()
public Set<DeviceId> masterOf()
public boolean masterOf(DeviceId deviceId)
deviceId - device ID