| 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.net.intent |
Set of abstractions for conveying high-level intents for treatment of
selected network traffic by allowing applications to express the
what rather than the how.
|
| org.onosproject.store.cluster.messaging |
Cluster messaging APIs for the use by the various distributed stores.
|
| org.onosproject.store.service |
Distributed core state management services.
|
| Modifier and Type | Method and Description |
|---|---|
NodeId |
ControllerNodeToNodeId.apply(ControllerNode input) |
NodeId |
LeadershipService.getLeader(String path)
Returns the current 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() |
List<NodeId> |
Leadership.candidates()
Returns an preference-ordered list of nodes that are in the leadership
race for this topic.
|
Map<String,List<NodeId>> |
LeadershipService.getCandidates()
Returns the candidates for all known topics.
|
List<NodeId> |
LeadershipService.getCandidates(String path)
Returns the candidates for a given topic.
|
| 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.
|
org.joda.time.DateTime |
ClusterStore.getLastUpdated(NodeId nodeId)
Returns the system when the availability state was last updated.
|
org.joda.time.DateTime |
ClusterService.getLastUpdated(NodeId nodeId)
Returns the system time when the availability state was last updated.
|
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.
|
boolean |
LeadershipService.makeTopCandidate(String path,
NodeId nodeId)
Moves the specified nodeId to the top of the candidates list for the topic.
|
Set<String> |
LeadershipService.ownedTopics(NodeId nodeId)
Returns the set of topics owned by the specified 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,
List<NodeId> candidates,
long epoch,
long electedTime) |
Leadership(String topic,
NodeId leader,
long epoch,
long electedTime) |
RoleInfo(NodeId master,
List<NodeId> backups) |
| Constructor and Description |
|---|
Leadership(String topic,
List<NodeId> candidates,
long epoch,
long electedTime) |
Leadership(String topic,
NodeId leader,
List<NodeId> candidates,
long epoch,
long electedTime) |
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,
long term) |
void |
MastershipStore.relinquishAllRole(NodeId nodeId)
Removes all the roles for the specified controller instance.
|
CompletableFuture<MastershipEvent> |
MastershipStore.relinquishRole(NodeId nodeId,
DeviceId deviceId)
Allows a controller instance to give up its current role for a device.
|
CompletableFuture<MastershipEvent> |
MastershipStore.setMaster(NodeId nodeId,
DeviceId deviceId)
Sets a device's role for a specified controller instance.
|
CompletableFuture<Void> |
MastershipAdminService.setRole(NodeId instance,
DeviceId deviceId,
MastershipRole role)
Applies the current mastership role for the specified device.
|
CompletableFuture<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 |
PartitionService.getLeader(Key intentKey)
Returns the leader for a particular key.
|
NodeId |
IntentData.origin()
Returns the origin node that created this intent.
|
| Modifier and Type | Method and Description |
|---|---|
void |
IntentData.setOrigin(NodeId origin)
Sets the origin, which is the node that created the intent.
|
| Modifier and Type | Method and Description |
|---|---|
NodeId |
ClusterMessage.sender()
Returns the id of the controller sending this message.
|
| Modifier and Type | Method and Description |
|---|---|
<M,R> CompletableFuture<R> |
ClusterCommunicationService.sendAndReceive(M message,
MessageSubject subject,
java.util.function.Function<M,byte[]> encoder,
java.util.function.Function<byte[],R> decoder,
NodeId toNodeId)
Sends a message and expects a reply.
|
<M> CompletableFuture<Void> |
ClusterCommunicationService.unicast(M message,
MessageSubject subject,
java.util.function.Function<M,byte[]> encoder,
NodeId toNodeId)
Sends a message to the specified controller node.
|
| Modifier and Type | Method and Description |
|---|---|
<M> void |
ClusterCommunicationService.multicast(M message,
MessageSubject subject,
java.util.function.Function<M,byte[]> encoder,
Set<NodeId> nodeIds)
Multicasts a message to a set of controller nodes.
|
| Constructor and Description |
|---|
ClusterMessage(NodeId sender,
MessageSubject subject,
byte[] payload)
Creates a cluster message.
|
| Modifier and Type | Method and Description |
|---|---|
EventuallyConsistentMapBuilder<K,V> |
EventuallyConsistentMapBuilder.withPeerUpdateFunction(java.util.function.BiFunction<K,V,Collection<NodeId>> peerUpdateFunction)
Sets a function that can determine which peers to replicate updates to.
|
Copyright © 2015. All rights reserved.