@Beta
public interface FlowObjectiveService
Modifier and Type | Method and Description |
---|---|
int |
allocateNextId()
Obtains a globally unique next objective.
|
default void |
apply(DeviceId deviceId,
Objective objective)
Installs the objective onto the specified device.
|
default void |
clearQueue() |
void |
filter(DeviceId deviceId,
FilteringObjective filteringObjective)
Installs the filtering rules onto the specified device.
|
void |
forward(DeviceId deviceId,
ForwardingObjective forwardingObjective)
Installs the forwarding rules onto the specified device.
|
default com.google.common.collect.ListMultimap<FilteringObjQueueKey,Objective> |
getFilteringObjQueue()
Returns all filtering objective that are waiting for the completion of previous objective
with the same FilteringObjQueueKey.
|
default Map<FilteringObjQueueKey,Objective> |
getFilteringObjQueueHead() |
default com.google.common.collect.ListMultimap<ForwardingObjQueueKey,Objective> |
getForwardingObjQueue()
Returns all forwarding objective that are waiting for the completion of previous objective
with the same ForwardingObjQueueKey.
|
default Map<ForwardingObjQueueKey,Objective> |
getForwardingObjQueueHead() |
List<String> |
getNextMappings()
Retrieve all nextObjective to group mappings known to this onos instance,
in a format meant for display on the CLI, to help with debugging.
|
default com.google.common.collect.ListMultimap<NextObjQueueKey,Objective> |
getNextObjQueue()
Returns all next objective that are waiting for the completion of previous objective
with the same NextObjQueueKey.
|
default Map<NextObjQueueKey,Objective> |
getNextObjQueueHead() |
List<String> |
getPendingFlowObjectives()
Retrieve all nextObjectives that are waiting to hear back from device
drivers, and the forwarding-objectives or next-objectives that are waiting
on the successful completion of the original next-objectives.
|
void |
initPolicy(String policy)
Provides a composition policy expression.
|
void |
next(DeviceId deviceId,
NextObjective nextObjective)
Installs the next hop elements into the specified device.
|
void filter(DeviceId deviceId, FilteringObjective filteringObjective)
deviceId
- device identifierfilteringObjective
- the filtering objectivevoid forward(DeviceId deviceId, ForwardingObjective forwardingObjective)
deviceId
- device identifierforwardingObjective
- the forwarding objectivevoid next(DeviceId deviceId, NextObjective nextObjective)
deviceId
- device identifiernextObjective
- a next objectiveint allocateNextId()
void initPolicy(String policy)
WARNING: This method is a no-op in the default implementation.
policy
- policy expressiondefault void apply(DeviceId deviceId, Objective objective)
deviceId
- device identifierobjective
- the objectiveList<String> getNextMappings()
List<String> getPendingFlowObjectives()
default com.google.common.collect.ListMultimap<FilteringObjQueueKey,Objective> getFilteringObjQueue()
default com.google.common.collect.ListMultimap<ForwardingObjQueueKey,Objective> getForwardingObjQueue()
default com.google.common.collect.ListMultimap<NextObjQueueKey,Objective> getNextObjQueue()
default Map<FilteringObjQueueKey,Objective> getFilteringObjQueueHead()
default Map<ForwardingObjQueueKey,Objective> getForwardingObjQueueHead()
default Map<NextObjQueueKey,Objective> getNextObjQueueHead()
default void clearQueue()