@Service
public class DistributedGroupStore
extends org.onosproject.store.AbstractStore<org.onosproject.net.group.GroupEvent,org.onosproject.net.group.GroupStoreDelegate>
implements org.onosproject.net.group.GroupStore
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.store.cluster.messaging.ClusterCommunicationService |
clusterCommunicator |
protected org.onosproject.cluster.ClusterService |
clusterService |
protected org.onosproject.mastership.MastershipService |
mastershipService |
protected org.onosproject.store.service.StorageService |
storageService |
| Constructor and Description |
|---|
DistributedGroupStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
addOrUpdateExtraneousGroupEntry(org.onosproject.net.group.Group group) |
void |
addOrUpdateGroupEntry(org.onosproject.net.group.Group group)
Stores a new group entry, or updates an existing entry.
|
void |
deactivate() |
void |
deleteGroupDescription(org.onosproject.net.DeviceId deviceId,
org.onosproject.net.group.GroupKey appCookie)
Triggers deleting the existing group entry.
|
void |
deviceInitialAuditCompleted(org.onosproject.net.DeviceId deviceId,
boolean completed) |
boolean |
deviceInitialAuditStatus(org.onosproject.net.DeviceId deviceId) |
Iterable<org.onosproject.net.group.Group> |
getExtraneousGroups(org.onosproject.net.DeviceId deviceId) |
org.onosproject.net.group.Group |
getGroup(org.onosproject.net.DeviceId deviceId,
org.onosproject.core.GroupId groupId) |
org.onosproject.net.group.Group |
getGroup(org.onosproject.net.DeviceId deviceId,
org.onosproject.net.group.GroupKey appCookie)
Returns the stored group entry.
|
int |
getGroupCount(org.onosproject.net.DeviceId deviceId)
Returns the number of groups for the specified device in the store.
|
Iterable<org.onosproject.net.group.Group> |
getGroups(org.onosproject.net.DeviceId deviceId)
Returns the groups associated with a device.
|
void |
groupOperationFailed(org.onosproject.net.DeviceId deviceId,
org.onosproject.net.group.GroupOperation operation) |
void |
pushGroupMetrics(org.onosproject.net.DeviceId deviceId,
Collection<org.onosproject.net.group.Group> groupEntries) |
void |
removeExtraneousGroupEntry(org.onosproject.net.group.Group group) |
void |
removeGroupEntry(org.onosproject.net.group.Group group)
Removes the group entry from store.
|
void |
storeGroupDescription(org.onosproject.net.group.GroupDescription groupDesc)
Stores a new group entry using the information from group description.
|
void |
updateGroupDescription(org.onosproject.net.DeviceId deviceId,
org.onosproject.net.group.GroupKey oldAppCookie,
org.onosproject.net.group.GroupStore.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, unsetDelegate@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.store.cluster.messaging.ClusterCommunicationService clusterCommunicator
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.cluster.ClusterService clusterService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.store.service.StorageService storageService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.mastership.MastershipService mastershipService
@Activate public void activate()
@Deactivate public void deactivate()
public int getGroupCount(org.onosproject.net.DeviceId deviceId)
getGroupCount in interface org.onosproject.net.group.GroupStorepublic Iterable<org.onosproject.net.group.Group> getGroups(org.onosproject.net.DeviceId deviceId)
getGroups in interface org.onosproject.net.group.GroupStoredeviceId - the device IDpublic org.onosproject.net.group.Group getGroup(org.onosproject.net.DeviceId deviceId,
org.onosproject.net.group.GroupKey appCookie)
getGroup in interface org.onosproject.net.group.GroupStoredeviceId - the device IDappCookie - the group keypublic org.onosproject.net.group.Group getGroup(org.onosproject.net.DeviceId deviceId,
org.onosproject.core.GroupId groupId)
getGroup in interface org.onosproject.net.group.GroupStorepublic void storeGroupDescription(org.onosproject.net.group.GroupDescription groupDesc)
storeGroupDescription in interface org.onosproject.net.group.GroupStoregroupDesc - group description to be used to create group entrypublic void updateGroupDescription(org.onosproject.net.DeviceId deviceId,
org.onosproject.net.group.GroupKey oldAppCookie,
org.onosproject.net.group.GroupStore.UpdateType type,
org.onosproject.net.group.GroupBuckets newBuckets,
org.onosproject.net.group.GroupKey newAppCookie)
updateGroupDescription in interface org.onosproject.net.group.GroupStoredeviceId - the device IDoldAppCookie - the current group keytype - update typenewBuckets - group buckets for updatesnewAppCookie - optional new group keypublic void deleteGroupDescription(org.onosproject.net.DeviceId deviceId,
org.onosproject.net.group.GroupKey appCookie)
deleteGroupDescription in interface org.onosproject.net.group.GroupStoredeviceId - the device IDappCookie - the group keypublic void addOrUpdateGroupEntry(org.onosproject.net.group.Group group)
addOrUpdateGroupEntry in interface org.onosproject.net.group.GroupStoregroup - group entrypublic void removeGroupEntry(org.onosproject.net.group.Group group)
removeGroupEntry in interface org.onosproject.net.group.GroupStoregroup - group entrypublic void deviceInitialAuditCompleted(org.onosproject.net.DeviceId deviceId,
boolean completed)
deviceInitialAuditCompleted in interface org.onosproject.net.group.GroupStorepublic boolean deviceInitialAuditStatus(org.onosproject.net.DeviceId deviceId)
deviceInitialAuditStatus in interface org.onosproject.net.group.GroupStorepublic void groupOperationFailed(org.onosproject.net.DeviceId deviceId,
org.onosproject.net.group.GroupOperation operation)
groupOperationFailed in interface org.onosproject.net.group.GroupStorepublic void addOrUpdateExtraneousGroupEntry(org.onosproject.net.group.Group group)
addOrUpdateExtraneousGroupEntry in interface org.onosproject.net.group.GroupStorepublic void removeExtraneousGroupEntry(org.onosproject.net.group.Group group)
removeExtraneousGroupEntry in interface org.onosproject.net.group.GroupStorepublic Iterable<org.onosproject.net.group.Group> getExtraneousGroups(org.onosproject.net.DeviceId deviceId)
getExtraneousGroups in interface org.onosproject.net.group.GroupStorepublic void pushGroupMetrics(org.onosproject.net.DeviceId deviceId,
Collection<org.onosproject.net.group.Group> groupEntries)
pushGroupMetrics in interface org.onosproject.net.group.GroupStoreCopyright © 2015. All rights reserved.