Class DistributedVplsStore

  • All Implemented Interfaces:
    org.onosproject.store.Store<VplsStoreEvent,​org.onosproject.store.StoreDelegate<VplsStoreEvent>>, VplsStore

    public class DistributedVplsStore
    extends org.onosproject.store.AbstractStore<VplsStoreEvent,​org.onosproject.store.StoreDelegate<VplsStoreEvent>>
    implements VplsStore
    Implementation of VPLSConfigurationService which reads VPLS configuration from the network configuration service.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.onosproject.core.CoreService coreService  
      protected org.onosproject.net.config.NetworkConfigService networkConfigService  
      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
      protected void active()  
      void addVpls​(VplsData vplsData)
      Adds a VPLS to the configuration.
      protected void deactive()  
      java.util.Collection<VplsData> getAllVpls()
      Gets all the VPLSs.
      VplsData getVpls​(java.lang.String vplsName)
      Gets a VPLS by name.
      void removeVpls​(VplsData vplsData)
      Removes a VPLS from the configuration.
      void updateVpls​(VplsData vplsData)
      Updates a VPLS.
      void writeVplsToNetConfig​(java.util.Collection<VplsData> vplsDataCollection)
      Writes all VPLS data to the network configuration store.
      • 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

      • coreService

        protected org.onosproject.core.CoreService coreService
      • storageService

        protected org.onosproject.store.service.StorageService storageService
      • networkConfigService

        protected org.onosproject.net.config.NetworkConfigService networkConfigService
    • Constructor Detail

      • DistributedVplsStore

        public DistributedVplsStore()
    • Method Detail

      • active

        protected void active()
      • deactive

        protected void deactive()
      • addVpls

        public void addVpls​(VplsData vplsData)
        Description copied from interface: VplsStore
        Adds a VPLS to the configuration.
        Specified by:
        addVpls in interface VplsStore
        Parameters:
        vplsData - the VPLS to add
      • removeVpls

        public void removeVpls​(VplsData vplsData)
        Description copied from interface: VplsStore
        Removes a VPLS from the configuration.
        Specified by:
        removeVpls in interface VplsStore
        Parameters:
        vplsData - the VPLS to remove
      • updateVpls

        public void updateVpls​(VplsData vplsData)
        Description copied from interface: VplsStore
        Updates a VPLS.
        Specified by:
        updateVpls in interface VplsStore
        Parameters:
        vplsData - the VPLS to update
      • getVpls

        public VplsData getVpls​(java.lang.String vplsName)
        Description copied from interface: VplsStore
        Gets a VPLS by name.
        Specified by:
        getVpls in interface VplsStore
        Parameters:
        vplsName - the VPLS name
        Returns:
        the VPLS instance if it exists; null otherwise
      • getAllVpls

        public java.util.Collection<VplsData> getAllVpls()
        Description copied from interface: VplsStore
        Gets all the VPLSs.
        Specified by:
        getAllVpls in interface VplsStore
        Returns:
        all the VPLSs
      • writeVplsToNetConfig

        public void writeVplsToNetConfig​(java.util.Collection<VplsData> vplsDataCollection)
        Writes all VPLS data to the network configuration store.
        Parameters:
        vplsDataCollection - the VPLSs data