@Service public class DefaultFlowRuleExtRouter extends Object implements org.onosproject.net.flowext.FlowRuleExtRouter
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.store.cluster.messaging.ClusterCommunicationService |
clusterCommunicator |
protected org.onosproject.cluster.ClusterService |
clusterService |
protected org.onosproject.net.device.DeviceService |
deviceService |
protected ReplicaInfoService |
replicaInfoManager |
protected Set<org.onosproject.net.flowext.FlowRuleExtRouterListener> |
routerListener |
protected static org.onosproject.store.serializers.StoreSerializer |
SERIALIZER |
| Constructor and Description |
|---|
DefaultFlowRuleExtRouter() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
addListener(org.onosproject.net.flowext.FlowRuleExtRouterListener listener)
Register the listener to monitor Router,
The Router find master to send downStream.
|
Future<org.onosproject.net.flowext.FlowExtCompletedOperation> |
applySubBatch(org.onosproject.net.flow.FlowRuleBatchRequest batchOperation)
apply the sub batch of flow extension rules.
|
void |
batchOperationComplete(org.onosproject.net.flow.FlowRuleBatchEvent event)
Invoked on the completion of a storeBatch operation.
|
void |
deactivate() |
void |
notify(org.onosproject.net.flow.FlowRuleBatchRequest request)
Notify the listener of Router to do some reaction.
|
void |
removeListener(org.onosproject.net.flowext.FlowRuleExtRouterListener listener)
Remove the listener of Router.
|
@Reference(cardinality=MANDATORY_UNARY) protected ReplicaInfoService replicaInfoManager
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.store.cluster.messaging.ClusterCommunicationService clusterCommunicator
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.cluster.ClusterService clusterService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.device.DeviceService deviceService
protected Set<org.onosproject.net.flowext.FlowRuleExtRouterListener> routerListener
protected static final org.onosproject.store.serializers.StoreSerializer SERIALIZER
@Activate public void activate()
@Deactivate public void deactivate()
public Future<org.onosproject.net.flowext.FlowExtCompletedOperation> applySubBatch(org.onosproject.net.flow.FlowRuleBatchRequest batchOperation)
applySubBatch in interface org.onosproject.net.flowext.FlowRuleExtRouterbatchOperation - batch of flow rules.
A batch can contain flow rules for a single device only.public void notify(org.onosproject.net.flow.FlowRuleBatchRequest request)
request - the requested operation to dopublic void batchOperationComplete(org.onosproject.net.flow.FlowRuleBatchEvent event)
batchOperationComplete in interface org.onosproject.net.flowext.FlowRuleExtRouterevent - flow rule batch eventpublic void addListener(org.onosproject.net.flowext.FlowRuleExtRouterListener listener)
addListener in interface org.onosproject.net.flowext.FlowRuleExtRouterlistener - the listener to registerpublic void removeListener(org.onosproject.net.flowext.FlowRuleExtRouterListener listener)
removeListener in interface org.onosproject.net.flowext.FlowRuleExtRouterlistener - the listener to removeCopyright © 2015. All rights reserved.