| Package | Description |
|---|---|
| org.onosproject.cluster |
Set of abstractions for dealing with controller cluster related topics.
|
| org.onosproject.mastership |
Set of abstractions for dealing with controller mastership related topics.
|
| org.onosproject.store.cluster.messaging |
Cluster messaging APIs for the use by the various distributed stores.
|
| Modifier and Type | Method and Description |
|---|---|
NodeId |
ControllerNodeToNodeId.apply(ControllerNode input) |
NodeId |
LeadershipService.getLeader(String path)
Gets the most recent leader for the topic.
|
NodeId |
DefaultControllerNode.id() |
NodeId |
ControllerNode.id()
Returns the instance identifier.
|
NodeId |
Leadership.leader()
The nodeId of leader for this topic.
|
NodeId |
RoleInfo.master() |
| Modifier and Type | Method and Description |
|---|---|
List<NodeId> |
RoleInfo.backups() |
| Modifier and Type | Method and Description |
|---|---|
ControllerNode |
ClusterStore.addNode(NodeId nodeId,
org.onlab.packet.IpAddress ip,
int tcpPort)
Adds a new controller node to the cluster.
|
ControllerNode |
ClusterAdminService.addNode(NodeId nodeId,
org.onlab.packet.IpAddress ip,
int tcpPort)
Adds a new controller node to the cluster.
|
ControllerNode |
ClusterStore.getNode(NodeId nodeId)
Returns the specified controller node.
|
ControllerNode |
ClusterService.getNode(NodeId nodeId)
Returns the specified controller node.
|
ControllerNode.State |
ClusterStore.getState(NodeId nodeId)
Returns the availability state of the specified controller node.
|
ControllerNode.State |
ClusterService.getState(NodeId nodeId)
Returns the availability state of the specified controller node.
|
void |
ClusterStore.removeNode(NodeId nodeId)
Removes the specified node from the inventory of cluster nodes.
|
void |
ClusterAdminService.removeNode(NodeId nodeId)
Removes the specified node from the cluster node list.
|
| Constructor and Description |
|---|
DefaultControllerNode(NodeId id,
org.onlab.packet.IpAddress ip)
Creates a new instance with the specified id and IP address.
|
DefaultControllerNode(NodeId id,
org.onlab.packet.IpAddress ip,
int tcpPort)
Creates a new instance with the specified id and IP address and TCP port.
|
Leadership(String topic,
NodeId leader,
long epoch) |
RoleInfo(NodeId master,
List<NodeId> backups) |
| Constructor and Description |
|---|
RoleInfo(NodeId master,
List<NodeId> backups) |
| Modifier and Type | Method and Description |
|---|---|
NodeId |
MastershipStore.getMaster(DeviceId deviceId)
Returns the master for a device.
|
NodeId |
MastershipService.getMasterFor(DeviceId deviceId)
Returns the current master for a given device.
|
NodeId |
MastershipTerm.master() |
| Modifier and Type | Method and Description |
|---|---|
Set<DeviceId> |
MastershipStore.getDevices(NodeId nodeId)
Returns the devices that a controller instance is master of.
|
Set<DeviceId> |
MastershipService.getDevicesOf(NodeId nodeId)
Returns the devices for which a controller is master.
|
MastershipRole |
MastershipStore.getRole(NodeId nodeId,
DeviceId deviceId)
Returns the role of a device for a specific controller instance.
|
static MastershipTerm |
MastershipTerm.of(NodeId master,
int term) |
MastershipEvent |
MastershipStore.relinquishRole(NodeId nodeId,
DeviceId deviceId)
Allows a controller instance to give up its current role for a device.
|
MastershipEvent |
MastershipStore.setMaster(NodeId nodeId,
DeviceId deviceId)
Sets a device's role for a specified controller instance.
|
void |
MastershipAdminService.setRole(NodeId instance,
DeviceId deviceId,
MastershipRole role)
Applies the current mastership role for the specified device.
|
MastershipEvent |
MastershipStore.setStandby(NodeId nodeId,
DeviceId deviceId)
Sets a controller instance's mastership role to STANDBY for a device.
|
| Modifier and Type | Method and Description |
|---|---|
NodeId |
ClusterMessage.sender()
Returns the id of the controller sending this message.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.common.util.concurrent.ListenableFuture<byte[]> |
ClusterCommunicationService.sendAndReceive(ClusterMessage message,
NodeId toNodeId)
Sends a message synchronously.
|
boolean |
ClusterCommunicationService.unicast(ClusterMessage message,
NodeId toNodeId)
Sends a message to the specified controller node.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
ClusterCommunicationService.multicast(ClusterMessage message,
Set<NodeId> nodeIds)
Multicast a message to a set of controller nodes.
|
| Constructor and Description |
|---|
ClusterMessage(NodeId sender,
MessageSubject subject,
byte[] payload)
Creates a cluster message.
|
Copyright © 2015. All rights reserved.