| Package | Description |
|---|---|
| org.onosproject.mastership |
Set of abstractions for dealing with controller mastership related topics.
|
| org.onosproject.net |
Network model entities & service API definitions.
|
| org.onosproject.net.device |
Infrastructure device model & related services API definitions.
|
| Modifier and Type | Method and Description |
|---|---|
MastershipRole |
MastershipService.getLocalRole(DeviceId deviceId)
Returns the role of the local node for the specified device, without
triggering master selection.
|
MastershipRole |
MastershipStore.getRole(NodeId nodeId,
DeviceId deviceId)
Returns the role of a device for a specific controller instance.
|
MastershipRole |
MastershipStore.requestRole(DeviceId deviceId)
Requests role of the local node for the specified device.
|
MastershipRole |
MastershipService.requestRoleFor(DeviceId deviceId)
Returns the mastership status of the local controller for a given
device forcing master selection if necessary.
|
| Modifier and Type | Method and Description |
|---|---|
void |
MastershipAdminService.setRole(NodeId instance,
DeviceId deviceId,
MastershipRole role)
Applies the current mastership role for the specified device.
|
| Modifier and Type | Method and Description |
|---|---|
static MastershipRole |
MastershipRole.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MastershipRole[] |
MastershipRole.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
MastershipRole |
DeviceService.getRole(DeviceId deviceId)
Returns the current mastership role for the specified device.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DeviceProviderService.receivedRoleReply(DeviceId deviceId,
MastershipRole requested,
MastershipRole response)
Notifies the core about the result of a RoleRequest sent to a device.
|
void |
DeviceProvider.roleChanged(DeviceId deviceId,
MastershipRole newRole)
Notifies the provider of a mastership role change for the specified
device as decided by the core.
|
Copyright © 2015. All rights reserved.