Class GossipIntentStore
- java.lang.Object
-
- org.onosproject.store.AbstractStore<org.onosproject.net.intent.IntentEvent,org.onosproject.net.intent.IntentStoreDelegate>
-
- org.onosproject.store.intent.impl.GossipIntentStore
-
- All Implemented Interfaces:
org.onosproject.net.intent.IntentStore,org.onosproject.store.Store<org.onosproject.net.intent.IntentEvent,org.onosproject.net.intent.IntentStoreDelegate>
public class GossipIntentStore extends org.onosproject.store.AbstractStore<org.onosproject.net.intent.IntentEvent,org.onosproject.net.intent.IntentStoreDelegate> implements org.onosproject.net.intent.IntentStoreManages inventory of Intents in a distributed data store that uses optimistic replication and gossip based techniques.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.onosproject.cluster.ClusterServiceclusterServiceprotected org.onosproject.cfg.ComponentConfigServiceconfigServiceprotected org.onosproject.net.intent.WorkPartitionServicepartitionServiceprotected org.onosproject.store.service.StorageServicestorageService
-
Constructor Summary
Constructors Constructor Description GossipIntentStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate(org.osgi.service.component.ComponentContext context)voidaddPending(org.onosproject.net.intent.IntentData data)voidbatchWrite(java.lang.Iterable<org.onosproject.net.intent.IntentData> updates)voiddeactivate()java.util.List<org.onosproject.net.intent.Intent>getInstallableIntents(org.onosproject.net.intent.Key intentKey)org.onosproject.net.intent.IntentgetIntent(org.onosproject.net.intent.Key key)longgetIntentCount()java.lang.Iterable<org.onosproject.net.intent.IntentData>getIntentData(boolean localOnly, long olderThan)org.onosproject.net.intent.IntentDatagetIntentData(org.onosproject.net.intent.Key key)java.lang.Iterable<org.onosproject.net.intent.Intent>getIntents()org.onosproject.net.intent.IntentStategetIntentState(org.onosproject.net.intent.Key intentKey)java.lang.Iterable<org.onosproject.net.intent.Intent>getPending()java.lang.Iterable<org.onosproject.net.intent.IntentData>getPendingData()java.lang.Iterable<org.onosproject.net.intent.IntentData>getPendingData(boolean localOnly, long olderThan)org.onosproject.net.intent.IntentDatagetPendingData(org.onosproject.net.intent.Key intentKey)booleanisMaster(org.onosproject.net.intent.Key intentKey)voidmodified(org.osgi.service.component.ComponentContext context)voidwrite(org.onosproject.net.intent.IntentData newData)-
Methods inherited from class org.onosproject.store.AbstractStore
hasDelegate, notifyDelegate, notifyDelegate, setDelegate, unsetDelegate
-
-
-
-
Field Detail
-
configService
protected org.onosproject.cfg.ComponentConfigService configService
-
clusterService
protected org.onosproject.cluster.ClusterService clusterService
-
storageService
protected org.onosproject.store.service.StorageService storageService
-
partitionService
protected org.onosproject.net.intent.WorkPartitionService partitionService
-
-
Method Detail
-
activate
public void activate(org.osgi.service.component.ComponentContext context)
-
deactivate
public void deactivate()
-
modified
public void modified(org.osgi.service.component.ComponentContext context)
-
getIntentCount
public long getIntentCount()
- Specified by:
getIntentCountin interfaceorg.onosproject.net.intent.IntentStore
-
getIntents
public java.lang.Iterable<org.onosproject.net.intent.Intent> getIntents()
- Specified by:
getIntentsin interfaceorg.onosproject.net.intent.IntentStore
-
getIntentData
public java.lang.Iterable<org.onosproject.net.intent.IntentData> getIntentData(boolean localOnly, long olderThan)- Specified by:
getIntentDatain interfaceorg.onosproject.net.intent.IntentStore
-
getIntentState
public org.onosproject.net.intent.IntentState getIntentState(org.onosproject.net.intent.Key intentKey)
- Specified by:
getIntentStatein interfaceorg.onosproject.net.intent.IntentStore
-
getInstallableIntents
public java.util.List<org.onosproject.net.intent.Intent> getInstallableIntents(org.onosproject.net.intent.Key intentKey)
- Specified by:
getInstallableIntentsin interfaceorg.onosproject.net.intent.IntentStore
-
write
public void write(org.onosproject.net.intent.IntentData newData)
- Specified by:
writein interfaceorg.onosproject.net.intent.IntentStore
-
batchWrite
public void batchWrite(java.lang.Iterable<org.onosproject.net.intent.IntentData> updates)
- Specified by:
batchWritein interfaceorg.onosproject.net.intent.IntentStore
-
getIntent
public org.onosproject.net.intent.Intent getIntent(org.onosproject.net.intent.Key key)
- Specified by:
getIntentin interfaceorg.onosproject.net.intent.IntentStore
-
getIntentData
public org.onosproject.net.intent.IntentData getIntentData(org.onosproject.net.intent.Key key)
- Specified by:
getIntentDatain interfaceorg.onosproject.net.intent.IntentStore
-
addPending
public void addPending(org.onosproject.net.intent.IntentData data)
- Specified by:
addPendingin interfaceorg.onosproject.net.intent.IntentStore
-
isMaster
public boolean isMaster(org.onosproject.net.intent.Key intentKey)
- Specified by:
isMasterin interfaceorg.onosproject.net.intent.IntentStore
-
getPending
public java.lang.Iterable<org.onosproject.net.intent.Intent> getPending()
- Specified by:
getPendingin interfaceorg.onosproject.net.intent.IntentStore
-
getPendingData
public java.lang.Iterable<org.onosproject.net.intent.IntentData> getPendingData()
- Specified by:
getPendingDatain interfaceorg.onosproject.net.intent.IntentStore
-
getPendingData
public org.onosproject.net.intent.IntentData getPendingData(org.onosproject.net.intent.Key intentKey)
- Specified by:
getPendingDatain interfaceorg.onosproject.net.intent.IntentStore
-
getPendingData
public java.lang.Iterable<org.onosproject.net.intent.IntentData> getPendingData(boolean localOnly, long olderThan)- Specified by:
getPendingDatain interfaceorg.onosproject.net.intent.IntentStore
-
-