@Service public class ObjectiveTracker extends Object implements org.onosproject.net.intent.ObjectiveTrackerService
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.net.device.DeviceService |
deviceService |
protected org.onosproject.net.host.HostService |
hostService |
protected org.onosproject.net.intent.IntentService |
intentService |
protected org.onosproject.net.intent.WorkPartitionService |
partitionService |
protected org.onosproject.net.resource.ResourceService |
resourceService |
protected org.onosproject.net.topology.TopologyService |
topologyService |
protected AtomicBoolean |
updateScheduled |
| Constructor and Description |
|---|
ObjectiveTracker() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
addTrackedResources(org.onosproject.net.intent.Key intentKey,
Collection<org.onosproject.net.NetworkResource> resources) |
protected void |
bindIntentService(org.onosproject.net.intent.IntentService service) |
void |
deactivate() |
void |
removeTrackedResources(org.onosproject.net.intent.Key intentKey,
Collection<org.onosproject.net.NetworkResource> resources) |
void |
setDelegate(org.onosproject.net.intent.TopologyChangeDelegate delegate) |
void |
trackIntent(org.onosproject.net.intent.IntentData intentData) |
protected void |
unbindIntentService(org.onosproject.net.intent.IntentService service) |
void |
unsetDelegate(org.onosproject.net.intent.TopologyChangeDelegate delegate) |
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.topology.TopologyService topologyService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.resource.ResourceService resourceService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.device.DeviceService deviceService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.host.HostService hostService
@Reference(cardinality=OPTIONAL_UNARY,
policy=DYNAMIC)
protected org.onosproject.net.intent.IntentService intentService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.intent.WorkPartitionService partitionService
protected final AtomicBoolean updateScheduled
@Activate public void activate()
@Deactivate public void deactivate()
protected void bindIntentService(org.onosproject.net.intent.IntentService service)
protected void unbindIntentService(org.onosproject.net.intent.IntentService service)
public void setDelegate(org.onosproject.net.intent.TopologyChangeDelegate delegate)
setDelegate in interface org.onosproject.net.intent.ObjectiveTrackerServicepublic void unsetDelegate(org.onosproject.net.intent.TopologyChangeDelegate delegate)
unsetDelegate in interface org.onosproject.net.intent.ObjectiveTrackerServicepublic void addTrackedResources(org.onosproject.net.intent.Key intentKey,
Collection<org.onosproject.net.NetworkResource> resources)
addTrackedResources in interface org.onosproject.net.intent.ObjectiveTrackerServicepublic void removeTrackedResources(org.onosproject.net.intent.Key intentKey,
Collection<org.onosproject.net.NetworkResource> resources)
removeTrackedResources in interface org.onosproject.net.intent.ObjectiveTrackerServicepublic void trackIntent(org.onosproject.net.intent.IntentData intentData)
trackIntent in interface org.onosproject.net.intent.ObjectiveTrackerService