Class 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.DeviceKeyStore
    A 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.StorageService storageService  
      • Fields inherited from class org.onosproject.store.AbstractStore

        delegate
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void activate()
      Activate the distributed device key store.
      void createOrUpdateDeviceKey​(org.onosproject.net.key.DeviceKey deviceKey)  
      void deactivate()
      Deactivate the distributed device key store.
      void deleteDeviceKey​(org.onosproject.net.key.DeviceKeyId deviceKeyId)  
      org.onosproject.net.key.DeviceKey getDeviceKey​(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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.onosproject.store.Store

        hasDelegate, setDelegate, unsetDelegate
    • Field Detail

      • storageService

        protected org.onosproject.store.service.StorageService storageService
    • Constructor Detail

      • DistributedDeviceKeyStore

        public DistributedDeviceKeyStore()
    • 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:
        createOrUpdateDeviceKey in interface org.onosproject.net.key.DeviceKeyStore
      • deleteDeviceKey

        public void deleteDeviceKey​(org.onosproject.net.key.DeviceKeyId deviceKeyId)
        Specified by:
        deleteDeviceKey in interface org.onosproject.net.key.DeviceKeyStore
      • getDeviceKeys

        public java.util.Collection<org.onosproject.net.key.DeviceKey> getDeviceKeys()
        Specified by:
        getDeviceKeys in interface org.onosproject.net.key.DeviceKeyStore
      • getDeviceKey

        public org.onosproject.net.key.DeviceKey getDeviceKey​(org.onosproject.net.key.DeviceKeyId deviceKeyId)
        Specified by:
        getDeviceKey in interface org.onosproject.net.key.DeviceKeyStore