Package org.onosproject.store.key.impl
Class DistributedDeviceKeyStore
- java.lang.Object
-
- org.onosproject.store.AbstractStore<org.onosproject.net.key.DeviceKeyEvent,org.onosproject.net.key.DeviceKeyStoreDelegate>
-
- org.onosproject.store.key.impl.DistributedDeviceKeyStore
-
- All Implemented Interfaces:
org.onosproject.net.key.DeviceKeyStore,org.onosproject.store.Store<org.onosproject.net.key.DeviceKeyEvent,org.onosproject.net.key.DeviceKeyStoreDelegate>
public class DistributedDeviceKeyStore extends org.onosproject.store.AbstractStore<org.onosproject.net.key.DeviceKeyEvent,org.onosproject.net.key.DeviceKeyStoreDelegate> implements org.onosproject.net.key.DeviceKeyStoreA distributed device key store implementation, device keys are stored consistently across the cluster.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.onosproject.store.service.StorageServicestorageService
-
Constructor Summary
Constructors Constructor Description DistributedDeviceKeyStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate()Activate the distributed device key store.voidcreateOrUpdateDeviceKey(org.onosproject.net.key.DeviceKey deviceKey)voiddeactivate()Deactivate the distributed device key store.voiddeleteDeviceKey(org.onosproject.net.key.DeviceKeyId deviceKeyId)org.onosproject.net.key.DeviceKeygetDeviceKey(org.onosproject.net.key.DeviceKeyId deviceKeyId)java.util.Collection<org.onosproject.net.key.DeviceKey>getDeviceKeys()-
Methods inherited from class org.onosproject.store.AbstractStore
hasDelegate, notifyDelegate, notifyDelegate, setDelegate, unsetDelegate
-
-
-
-
Method Detail
-
activate
public void activate()
Activate the distributed device key store.
-
deactivate
public void deactivate()
Deactivate the distributed device key store.
-
createOrUpdateDeviceKey
public void createOrUpdateDeviceKey(org.onosproject.net.key.DeviceKey deviceKey)
- Specified by:
createOrUpdateDeviceKeyin interfaceorg.onosproject.net.key.DeviceKeyStore
-
deleteDeviceKey
public void deleteDeviceKey(org.onosproject.net.key.DeviceKeyId deviceKeyId)
- Specified by:
deleteDeviceKeyin interfaceorg.onosproject.net.key.DeviceKeyStore
-
getDeviceKeys
public java.util.Collection<org.onosproject.net.key.DeviceKey> getDeviceKeys()
- Specified by:
getDeviceKeysin interfaceorg.onosproject.net.key.DeviceKeyStore
-
getDeviceKey
public org.onosproject.net.key.DeviceKey getDeviceKey(org.onosproject.net.key.DeviceKeyId deviceKeyId)
- Specified by:
getDeviceKeyin interfaceorg.onosproject.net.key.DeviceKeyStore
-
-