public class IntentCleanup extends Object implements Runnable, org.onosproject.net.intent.IntentListener
It periodically polls (based on configured period) for pending and CORRUPT intents from the store and retries. It also listens for CORRUPT event notifications, which signify errors in processing, and retries.
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.cfg.ComponentConfigService |
cfgService |
protected int |
period |
protected int |
retryThreshold |
protected org.onosproject.net.intent.IntentService |
service |
protected org.onosproject.net.intent.IntentStore |
store |
| Constructor and Description |
|---|
IntentCleanup() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
protected void |
adjustRate() |
void |
deactivate() |
void |
event(org.onosproject.net.intent.IntentEvent event) |
void |
modified(org.osgi.service.component.ComponentContext context) |
void |
run() |
@Property(name="period",
intValue=5,
label="Frequency in ms between cleanup runs")
protected int period
@Property(name="retryThreshold",
intValue=5,
label="Number of times to retry CORRUPT intent without delay")
protected int retryThreshold
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.intent.IntentService service
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.intent.IntentStore store
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.cfg.ComponentConfigService cfgService
@Activate public void activate()
@Deactivate public void deactivate()
@Modified public void modified(org.osgi.service.component.ComponentContext context)
protected void adjustRate()
public void event(org.onosproject.net.intent.IntentEvent event)
event in interface org.onosproject.event.EventListener<org.onosproject.net.intent.IntentEvent>