@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.
|
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.
|
java.util.List<java.lang.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.
|
java.util.List<java.lang.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.
|
java.util.List<java.lang.String> |
getPendingNexts()
Deprecated.
|
void |
initPolicy(java.lang.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(java.lang.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 objectivejava.util.List<java.lang.String> getNextMappings()
java.util.List<java.lang.String> getPendingFlowObjectives()
@Deprecated java.util.List<java.lang.String> getPendingNexts()