@Service public class SimpleVirtualGroupStore extends AbstractVirtualStore<org.onosproject.net.group.GroupEvent,org.onosproject.net.group.GroupStoreDelegate> implements VirtualNetworkGroupStore
VirtualNetworkGroupStore.UpdateTypedelegateMap| Constructor and Description |
|---|
SimpleVirtualGroupStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
addOrUpdateExtraneousGroupEntry(NetworkId networkId,
org.onosproject.net.group.Group group)
A group entry that is present in switch but not in the store.
|
void |
addOrUpdateGroupEntry(NetworkId networkId,
org.onosproject.net.group.Group group)
Stores a new group entry, or updates an existing entry.
|
void |
deactivate() |
void |
deleteGroupDescription(NetworkId networkId,
org.onosproject.net.DeviceId deviceId,
org.onosproject.net.group.GroupKey appCookie)
Triggers deleting the existing group entry.
|
void |
deviceInitialAuditCompleted(NetworkId networkId,
org.onosproject.net.DeviceId deviceId,
boolean completed)
Indicates the first group audit is completed.
|
boolean |
deviceInitialAuditStatus(NetworkId networkId,
org.onosproject.net.DeviceId deviceId)
Retrieves the initial group audit status for a device.
|
java.lang.Iterable<org.onosproject.net.group.Group> |
getExtraneousGroups(NetworkId networkId,
org.onosproject.net.DeviceId deviceId)
Returns the extraneous groups associated with a device.
|
org.onosproject.net.group.Group |
getGroup(NetworkId networkId,
org.onosproject.net.DeviceId deviceId,
org.onosproject.core.GroupId groupId)
Returns the stored group entry for an id.
|
org.onosproject.net.group.Group |
getGroup(NetworkId networkId,
org.onosproject.net.DeviceId deviceId,
org.onosproject.net.group.GroupKey appCookie)
Returns the stored group entry in a virtual network.
|
int |
getGroupCount(NetworkId networkId,
org.onosproject.net.DeviceId deviceId)
Returns the number of groups for the specified virtual device in the store.
|
java.lang.Iterable<org.onosproject.net.group.Group> |
getGroups(NetworkId networkId,
org.onosproject.net.DeviceId deviceId)
Returns the groups associated with a virtual device.
|
void |
groupOperationFailed(NetworkId networkId,
org.onosproject.net.DeviceId deviceId,
org.onosproject.net.group.GroupOperation operation)
Indicates the group operations failed.
|
void |
notifyOfFailovers(NetworkId networkId,
java.util.Collection<org.onosproject.net.group.Group> failoverGroups)
Indicates failover within a failover group.
|
void |
purgeGroupEntries(NetworkId networkId)
Removes all group entries from store.
|
void |
purgeGroupEntry(NetworkId networkId,
org.onosproject.net.DeviceId deviceId)
Removes all group entries of given device from store.
|
void |
pushGroupMetrics(NetworkId networkId,
org.onosproject.net.DeviceId deviceId,
java.util.Collection<org.onosproject.net.group.Group> groupEntries)
Submits the group metrics to store for a given device ID.
|
void |
removeExtraneousGroupEntry(NetworkId networkId,
org.onosproject.net.group.Group group)
Remove the group entry from extraneous database.
|
void |
removeGroupEntry(NetworkId networkId,
org.onosproject.net.group.Group group)
Removes the group entry from store.
|
void |
storeGroupDescription(NetworkId networkId,
org.onosproject.net.group.GroupDescription groupDesc)
Stores a new group entry using the information from group description
for a virtual network.
|
void |
updateGroupDescription(NetworkId networkId,
org.onosproject.net.DeviceId deviceId,
org.onosproject.net.group.GroupKey oldAppCookie,
VirtualNetworkGroupStore.UpdateType type,
org.onosproject.net.group.GroupBuckets newBuckets,
org.onosproject.net.group.GroupKey newAppCookie)
Updates the existing group entry with the information
from group description.
|
hasDelegate, notifyDelegate, notifyDelegate, setDelegate, unsetDelegateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasDelegate, setDelegate, unsetDelegate@Activate public void activate()
@Deactivate public void deactivate()
public int getGroupCount(NetworkId networkId, org.onosproject.net.DeviceId deviceId)
VirtualNetworkGroupStoregetGroupCount in interface VirtualNetworkGroupStorenetworkId - the virtual network IDdeviceId - the device IDpublic java.lang.Iterable<org.onosproject.net.group.Group> getGroups(NetworkId networkId, org.onosproject.net.DeviceId deviceId)
VirtualNetworkGroupStoregetGroups in interface VirtualNetworkGroupStorenetworkId - the virtual network IDdeviceId - the device IDpublic org.onosproject.net.group.Group getGroup(NetworkId networkId, org.onosproject.net.DeviceId deviceId, org.onosproject.net.group.GroupKey appCookie)
VirtualNetworkGroupStoregetGroup in interface VirtualNetworkGroupStorenetworkId - the virtual network IDdeviceId - the device IDappCookie - the group keypublic org.onosproject.net.group.Group getGroup(NetworkId networkId, org.onosproject.net.DeviceId deviceId, org.onosproject.core.GroupId groupId)
VirtualNetworkGroupStoregetGroup in interface VirtualNetworkGroupStorenetworkId - the virtual network IDdeviceId - the device IDgroupId - the group identifierpublic void storeGroupDescription(NetworkId networkId, org.onosproject.net.group.GroupDescription groupDesc)
VirtualNetworkGroupStorestoreGroupDescription in interface VirtualNetworkGroupStorenetworkId - the virtual network IDgroupDesc - group description to be used to store group entrypublic void updateGroupDescription(NetworkId networkId, org.onosproject.net.DeviceId deviceId, org.onosproject.net.group.GroupKey oldAppCookie, VirtualNetworkGroupStore.UpdateType type, org.onosproject.net.group.GroupBuckets newBuckets, org.onosproject.net.group.GroupKey newAppCookie)
VirtualNetworkGroupStoreupdateGroupDescription in interface VirtualNetworkGroupStorenetworkId - the virtual network IDdeviceId - the device IDoldAppCookie - the current group keytype - update typenewBuckets - group buckets for updatesnewAppCookie - optional new group keypublic void deleteGroupDescription(NetworkId networkId, org.onosproject.net.DeviceId deviceId, org.onosproject.net.group.GroupKey appCookie)
VirtualNetworkGroupStoredeleteGroupDescription in interface VirtualNetworkGroupStorenetworkId - the virtual network IDdeviceId - the device IDappCookie - the group keypublic void addOrUpdateGroupEntry(NetworkId networkId, org.onosproject.net.group.Group group)
VirtualNetworkGroupStoreaddOrUpdateGroupEntry in interface VirtualNetworkGroupStorenetworkId - the virtual network IDgroup - group entrypublic void removeGroupEntry(NetworkId networkId, org.onosproject.net.group.Group group)
VirtualNetworkGroupStoreremoveGroupEntry in interface VirtualNetworkGroupStorenetworkId - the virtual network IDgroup - group entrypublic void purgeGroupEntry(NetworkId networkId, org.onosproject.net.DeviceId deviceId)
VirtualNetworkGroupStorepurgeGroupEntry in interface VirtualNetworkGroupStorenetworkId - the virtual network IDdeviceId - device idpublic void purgeGroupEntries(NetworkId networkId)
VirtualNetworkGroupStorepurgeGroupEntries in interface VirtualNetworkGroupStorenetworkId - the virtual network IDpublic void addOrUpdateExtraneousGroupEntry(NetworkId networkId, org.onosproject.net.group.Group group)
VirtualNetworkGroupStoreaddOrUpdateExtraneousGroupEntry in interface VirtualNetworkGroupStorenetworkId - the virtual network IDgroup - group entrypublic void removeExtraneousGroupEntry(NetworkId networkId, org.onosproject.net.group.Group group)
VirtualNetworkGroupStoreremoveExtraneousGroupEntry in interface VirtualNetworkGroupStorenetworkId - the virtual network IDgroup - group entrypublic java.lang.Iterable<org.onosproject.net.group.Group> getExtraneousGroups(NetworkId networkId, org.onosproject.net.DeviceId deviceId)
VirtualNetworkGroupStoregetExtraneousGroups in interface VirtualNetworkGroupStorenetworkId - the virtual network IDdeviceId - the device IDpublic void deviceInitialAuditCompleted(NetworkId networkId, org.onosproject.net.DeviceId deviceId, boolean completed)
VirtualNetworkGroupStoredeviceInitialAuditCompleted in interface VirtualNetworkGroupStorenetworkId - the virtual network IDdeviceId - the device IDcompleted - initial audit statuspublic boolean deviceInitialAuditStatus(NetworkId networkId, org.onosproject.net.DeviceId deviceId)
VirtualNetworkGroupStoredeviceInitialAuditStatus in interface VirtualNetworkGroupStorenetworkId - the virtual network IDdeviceId - the device IDpublic void groupOperationFailed(NetworkId networkId, org.onosproject.net.DeviceId deviceId, org.onosproject.net.group.GroupOperation operation)
VirtualNetworkGroupStoregroupOperationFailed in interface VirtualNetworkGroupStorenetworkId - the virtual network IDdeviceId - the device IDoperation - the group operation failedpublic void pushGroupMetrics(NetworkId networkId, org.onosproject.net.DeviceId deviceId, java.util.Collection<org.onosproject.net.group.Group> groupEntries)
VirtualNetworkGroupStorepushGroupMetrics in interface VirtualNetworkGroupStorenetworkId - the virtual network IDdeviceId - the device IDgroupEntries - the group entries as received from southboundpublic void notifyOfFailovers(NetworkId networkId, java.util.Collection<org.onosproject.net.group.Group> failoverGroups)
VirtualNetworkGroupStorenotifyOfFailovers in interface VirtualNetworkGroupStorenetworkId - the virtual network IDfailoverGroups - groups to notify