@Service
public class GossipIntentStore
extends org.onosproject.store.AbstractStore<org.onosproject.net.intent.IntentEvent,org.onosproject.net.intent.IntentStoreDelegate>
implements org.onosproject.net.intent.IntentStore
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.cluster.ClusterService |
clusterService |
protected org.onosproject.cfg.ComponentConfigService |
configService |
protected org.onosproject.net.intent.WorkPartitionService |
partitionService |
protected org.onosproject.store.service.StorageService |
storageService |
| Constructor and Description |
|---|
GossipIntentStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(org.osgi.service.component.ComponentContext context) |
void |
addPending(org.onosproject.net.intent.IntentData data) |
void |
batchWrite(Iterable<org.onosproject.net.intent.IntentData> updates) |
void |
deactivate() |
List<org.onosproject.net.intent.Intent> |
getInstallableIntents(org.onosproject.net.intent.Key intentKey) |
org.onosproject.net.intent.Intent |
getIntent(org.onosproject.net.intent.Key key) |
long |
getIntentCount() |
Iterable<org.onosproject.net.intent.IntentData> |
getIntentData(boolean localOnly,
long olderThan) |
org.onosproject.net.intent.IntentData |
getIntentData(org.onosproject.net.intent.Key key) |
Iterable<org.onosproject.net.intent.Intent> |
getIntents() |
org.onosproject.net.intent.IntentState |
getIntentState(org.onosproject.net.intent.Key intentKey) |
Iterable<org.onosproject.net.intent.Intent> |
getPending() |
Iterable<org.onosproject.net.intent.IntentData> |
getPendingData() |
Iterable<org.onosproject.net.intent.IntentData> |
getPendingData(boolean localOnly,
long olderThan) |
org.onosproject.net.intent.IntentData |
getPendingData(org.onosproject.net.intent.Key intentKey) |
boolean |
isMaster(org.onosproject.net.intent.Key intentKey) |
void |
modified(org.osgi.service.component.ComponentContext context) |
void |
write(org.onosproject.net.intent.IntentData newData) |
hasDelegate, notifyDelegate, notifyDelegate, setDelegate, unsetDelegate@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.cfg.ComponentConfigService configService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.cluster.ClusterService clusterService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.store.service.StorageService storageService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.intent.WorkPartitionService partitionService
@Activate public void activate(org.osgi.service.component.ComponentContext context)
@Deactivate public void deactivate()
@Modified public void modified(org.osgi.service.component.ComponentContext context)
public long getIntentCount()
getIntentCount in interface org.onosproject.net.intent.IntentStorepublic Iterable<org.onosproject.net.intent.Intent> getIntents()
getIntents in interface org.onosproject.net.intent.IntentStorepublic Iterable<org.onosproject.net.intent.IntentData> getIntentData(boolean localOnly, long olderThan)
getIntentData in interface org.onosproject.net.intent.IntentStorepublic org.onosproject.net.intent.IntentState getIntentState(org.onosproject.net.intent.Key intentKey)
getIntentState in interface org.onosproject.net.intent.IntentStorepublic List<org.onosproject.net.intent.Intent> getInstallableIntents(org.onosproject.net.intent.Key intentKey)
getInstallableIntents in interface org.onosproject.net.intent.IntentStorepublic void write(org.onosproject.net.intent.IntentData newData)
write in interface org.onosproject.net.intent.IntentStorepublic void batchWrite(Iterable<org.onosproject.net.intent.IntentData> updates)
batchWrite in interface org.onosproject.net.intent.IntentStorepublic org.onosproject.net.intent.Intent getIntent(org.onosproject.net.intent.Key key)
getIntent in interface org.onosproject.net.intent.IntentStorepublic org.onosproject.net.intent.IntentData getIntentData(org.onosproject.net.intent.Key key)
getIntentData in interface org.onosproject.net.intent.IntentStorepublic void addPending(org.onosproject.net.intent.IntentData data)
addPending in interface org.onosproject.net.intent.IntentStorepublic boolean isMaster(org.onosproject.net.intent.Key intentKey)
isMaster in interface org.onosproject.net.intent.IntentStorepublic Iterable<org.onosproject.net.intent.Intent> getPending()
getPending in interface org.onosproject.net.intent.IntentStorepublic Iterable<org.onosproject.net.intent.IntentData> getPendingData()
getPendingData in interface org.onosproject.net.intent.IntentStorepublic org.onosproject.net.intent.IntentData getPendingData(org.onosproject.net.intent.Key intentKey)
getPendingData in interface org.onosproject.net.intent.IntentStorepublic Iterable<org.onosproject.net.intent.IntentData> getPendingData(boolean localOnly, long olderThan)
getPendingData in interface org.onosproject.net.intent.IntentStore