Package org.onosproject.vpls.store
Class DistributedVplsStore
- java.lang.Object
-
- org.onosproject.store.AbstractStore<VplsStoreEvent,org.onosproject.store.StoreDelegate<VplsStoreEvent>>
-
- org.onosproject.vpls.store.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.CoreServicecoreServiceprotected org.onosproject.net.config.NetworkConfigServicenetworkConfigServiceprotected org.onosproject.store.service.StorageServicestorageService
-
Constructor Summary
Constructors Constructor Description DistributedVplsStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidactive()voidaddVpls(VplsData vplsData)Adds a VPLS to the configuration.protected voiddeactive()java.util.Collection<VplsData>getAllVpls()Gets all the VPLSs.VplsDatagetVpls(java.lang.String vplsName)Gets a VPLS by name.voidremoveVpls(VplsData vplsData)Removes a VPLS from the configuration.voidupdateVpls(VplsData vplsData)Updates a VPLS.voidwriteVplsToNetConfig(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
-
-
-
-
Method Detail
-
active
protected void active()
-
deactive
protected void deactive()
-
addVpls
public void addVpls(VplsData vplsData)
Description copied from interface:VplsStoreAdds a VPLS to the configuration.
-
removeVpls
public void removeVpls(VplsData vplsData)
Description copied from interface:VplsStoreRemoves a VPLS from the configuration.- Specified by:
removeVplsin interfaceVplsStore- Parameters:
vplsData- the VPLS to remove
-
updateVpls
public void updateVpls(VplsData vplsData)
Description copied from interface:VplsStoreUpdates a VPLS.- Specified by:
updateVplsin interfaceVplsStore- Parameters:
vplsData- the VPLS to update
-
getVpls
public VplsData getVpls(java.lang.String vplsName)
Description copied from interface:VplsStoreGets a VPLS by name.
-
getAllVpls
public java.util.Collection<VplsData> getAllVpls()
Description copied from interface:VplsStoreGets all the VPLSs.- Specified by:
getAllVplsin interfaceVplsStore- 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
-
-