public interface VirtualNetworkGroupStore extends VirtualStore<GroupEvent,GroupStoreDelegate>
Modifier and Type | Interface and Description |
---|---|
static class |
VirtualNetworkGroupStore.UpdateType |
Modifier and Type | Method and Description |
---|---|
void |
addOrUpdateExtraneousGroupEntry(NetworkId networkId,
Group group)
A group entry that is present in switch but not in the store.
|
void |
addOrUpdateGroupEntry(NetworkId networkId,
Group group)
Stores a new group entry, or updates an existing entry.
|
void |
deleteGroupDescription(NetworkId networkId,
DeviceId deviceId,
GroupKey appCookie)
Triggers deleting the existing group entry.
|
void |
deviceInitialAuditCompleted(NetworkId networkId,
DeviceId deviceId,
boolean completed)
Indicates the first group audit is completed.
|
boolean |
deviceInitialAuditStatus(NetworkId networkId,
DeviceId deviceId)
Retrieves the initial group audit status for a device.
|
java.lang.Iterable<Group> |
getExtraneousGroups(NetworkId networkId,
DeviceId deviceId)
Returns the extraneous groups associated with a device.
|
Group |
getGroup(NetworkId networkId,
DeviceId deviceId,
GroupId groupId)
Returns the stored group entry for an id.
|
Group |
getGroup(NetworkId networkId,
DeviceId deviceId,
GroupKey appCookie)
Returns the stored group entry in a virtual network.
|
int |
getGroupCount(NetworkId networkId,
DeviceId deviceId)
Returns the number of groups for the specified virtual device in the store.
|
java.lang.Iterable<Group> |
getGroups(NetworkId networkId,
DeviceId deviceId)
Returns the groups associated with a virtual device.
|
void |
groupOperationFailed(NetworkId networkId,
DeviceId deviceId,
GroupOperation operation)
Indicates the group operations failed.
|
void |
notifyOfFailovers(NetworkId networkId,
java.util.Collection<Group> failoverGroups)
Indicates failover within a failover group.
|
default void |
purgeGroupEntries(NetworkId networkId)
Removes all group entries from store.
|
void |
purgeGroupEntry(NetworkId networkId,
DeviceId deviceId)
Removes all group entries of given device from store.
|
void |
pushGroupMetrics(NetworkId networkId,
DeviceId deviceId,
java.util.Collection<Group> groupEntries)
Submits the group metrics to store for a given device ID.
|
void |
removeExtraneousGroupEntry(NetworkId networkId,
Group group)
Remove the group entry from extraneous database.
|
void |
removeGroupEntry(NetworkId networkId,
Group group)
Removes the group entry from store.
|
void |
storeGroupDescription(NetworkId networkId,
GroupDescription groupDesc)
Stores a new group entry using the information from group description
for a virtual network.
|
void |
updateGroupDescription(NetworkId networkId,
DeviceId deviceId,
GroupKey oldAppCookie,
VirtualNetworkGroupStore.UpdateType type,
GroupBuckets newBuckets,
GroupKey newAppCookie)
Updates the existing group entry with the information
from group description.
|
hasDelegate, setDelegate, unsetDelegate
int getGroupCount(NetworkId networkId, DeviceId deviceId)
networkId
- the virtual network IDdeviceId
- the device IDjava.lang.Iterable<Group> getGroups(NetworkId networkId, DeviceId deviceId)
networkId
- the virtual network IDdeviceId
- the device IDGroup getGroup(NetworkId networkId, DeviceId deviceId, GroupKey appCookie)
networkId
- the virtual network IDdeviceId
- the device IDappCookie
- the group keyGroup getGroup(NetworkId networkId, DeviceId deviceId, GroupId groupId)
networkId
- the virtual network IDdeviceId
- the device IDgroupId
- the group identifiervoid storeGroupDescription(NetworkId networkId, GroupDescription groupDesc)
networkId
- the virtual network IDgroupDesc
- group description to be used to store group entryvoid updateGroupDescription(NetworkId networkId, DeviceId deviceId, GroupKey oldAppCookie, VirtualNetworkGroupStore.UpdateType type, GroupBuckets newBuckets, GroupKey newAppCookie)
networkId
- the virtual network IDdeviceId
- the device IDoldAppCookie
- the current group keytype
- update typenewBuckets
- group buckets for updatesnewAppCookie
- optional new group keyvoid deleteGroupDescription(NetworkId networkId, DeviceId deviceId, GroupKey appCookie)
networkId
- the virtual network IDdeviceId
- the device IDappCookie
- the group keyvoid addOrUpdateGroupEntry(NetworkId networkId, Group group)
networkId
- the virtual network IDgroup
- group entryvoid removeGroupEntry(NetworkId networkId, Group group)
networkId
- the virtual network IDgroup
- group entryvoid purgeGroupEntry(NetworkId networkId, DeviceId deviceId)
networkId
- the virtual network IDdeviceId
- device iddefault void purgeGroupEntries(NetworkId networkId)
networkId
- the virtual network IDvoid addOrUpdateExtraneousGroupEntry(NetworkId networkId, Group group)
networkId
- the virtual network IDgroup
- group entryvoid removeExtraneousGroupEntry(NetworkId networkId, Group group)
networkId
- the virtual network IDgroup
- group entryjava.lang.Iterable<Group> getExtraneousGroups(NetworkId networkId, DeviceId deviceId)
networkId
- the virtual network IDdeviceId
- the device IDvoid deviceInitialAuditCompleted(NetworkId networkId, DeviceId deviceId, boolean completed)
networkId
- the virtual network IDdeviceId
- the device IDcompleted
- initial audit statusboolean deviceInitialAuditStatus(NetworkId networkId, DeviceId deviceId)
networkId
- the virtual network IDdeviceId
- the device IDvoid groupOperationFailed(NetworkId networkId, DeviceId deviceId, GroupOperation operation)
networkId
- the virtual network IDdeviceId
- the device IDoperation
- the group operation failedvoid pushGroupMetrics(NetworkId networkId, DeviceId deviceId, java.util.Collection<Group> groupEntries)
networkId
- the virtual network IDdeviceId
- the device IDgroupEntries
- the group entries as received from southbound