public final class GroupStoreMessage
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GroupStoreMessage.Type
Type of group store request.
|
| Modifier and Type | Method and Description |
|---|---|
org.onosproject.net.group.GroupKey |
appCookie()
Returns the application cookie associated with this group request.
|
static GroupStoreMessage |
createGroupAddRequestMsg(org.onosproject.net.DeviceId deviceId,
org.onosproject.net.group.GroupDescription desc)
Creates a group store message for group ADD request.
|
static GroupStoreMessage |
createGroupDeleteRequestMsg(org.onosproject.net.DeviceId deviceId,
org.onosproject.net.group.GroupKey appCookie)
Creates a group store message for group DELETE request.
|
static GroupStoreMessage |
createGroupFailoverMsg(org.onosproject.net.DeviceId deviceId,
org.onosproject.net.group.GroupDescription desc) |
static GroupStoreMessage |
createGroupUpdateRequestMsg(org.onosproject.net.DeviceId deviceId,
org.onosproject.net.group.GroupKey appCookie,
org.onosproject.net.group.GroupStore.UpdateType updateType,
org.onosproject.net.group.GroupBuckets updateBuckets,
org.onosproject.net.group.GroupKey newAppCookie)
Creates a group store message for group UPDATE request.
|
org.onosproject.net.DeviceId |
deviceId()
Returns the device identifier of this group request.
|
org.onosproject.net.group.GroupDescription |
groupDesc()
Returns the group create parameters associated with this group request.
|
org.onosproject.net.group.GroupKey |
newAppCookie()
Returns the new application cookie associated with this group operation.
|
GroupStoreMessage.Type |
type()
Returns the type of this group operation.
|
org.onosproject.net.group.GroupBuckets |
updateBuckets()
Returns the group buckets to be updated as part of this group request.
|
org.onosproject.net.group.GroupStore.UpdateType |
updateType()
Returns the update group operation type.
|
public static GroupStoreMessage createGroupAddRequestMsg(org.onosproject.net.DeviceId deviceId, org.onosproject.net.group.GroupDescription desc)
deviceId - device identifier in which group to be addeddesc - group creation parameterspublic static GroupStoreMessage createGroupUpdateRequestMsg(org.onosproject.net.DeviceId deviceId, org.onosproject.net.group.GroupKey appCookie, org.onosproject.net.group.GroupStore.UpdateType updateType, org.onosproject.net.group.GroupBuckets updateBuckets, org.onosproject.net.group.GroupKey newAppCookie)
deviceId - the device IDappCookie - the current group keyupdateType - update (add or delete) typeupdateBuckets - group buckets for updatesnewAppCookie - optional new group keypublic static GroupStoreMessage createGroupDeleteRequestMsg(org.onosproject.net.DeviceId deviceId, org.onosproject.net.group.GroupKey appCookie)
deviceId - the device IDappCookie - the group keypublic static GroupStoreMessage createGroupFailoverMsg(org.onosproject.net.DeviceId deviceId, org.onosproject.net.group.GroupDescription desc)
public org.onosproject.net.DeviceId deviceId()
public org.onosproject.net.group.GroupKey appCookie()
public org.onosproject.net.group.GroupDescription groupDesc()
public org.onosproject.net.group.GroupBuckets updateBuckets()
public org.onosproject.net.group.GroupStore.UpdateType updateType()
public org.onosproject.net.group.GroupKey newAppCookie()
public GroupStoreMessage.Type type()