/**
* @file IPluginOutFlowProgrammer.java
- *
+ *
* @brief Flow programmer interface to be implemented by protocol plugins
*/
public interface IPluginInFlowProgrammerService {
/**
- * Add a flow to the network node
- *
+ * Synchronously add a flow to the network node
+ *
* @param node
* @param flow
*/
Status addFlow(Node node, Flow flow);
/**
- * Modify existing flow on the switch
- *
+ * Synchronously modify existing flow on the switch
+ *
* @param node
* @param flow
*/
Status modifyFlow(Node node, Flow oldFlow, Flow newFlow);
/**
- * Remove the flow from the network node
- *
+ * Synchronously remove the flow from the network node
+ *
* @param node
* @param flow
*/
Status removeFlow(Node node, Flow flow);
+ /**
+ * Asynchronously add a flow to the network node
+ *
+ * @param node
+ * @param flow
+ * @param rid
+ */
+ Status addFlowAsync(Node node, Flow flow, long rid);
+
+ /**
+ * Asynchronously modify existing flow on the switch
+ *
+ * @param node
+ * @param flow
+ * @param rid
+ */
+ Status modifyFlowAsync(Node node, Flow oldFlow, Flow newFlow, long rid);
+
+ /**
+ * Asynchronously remove the flow from the network node
+ *
+ * @param node
+ * @param flow
+ * @param rid
+ */
+ Status removeFlowAsync(Node node, Flow flow, long rid);
+
/**
* Remove all flows present on the network node
- *
+ *
* @param node
*/
Status removeAllFlows(Node node);
+
+ /**
+ * Send Barrier message synchronously. The caller will be blocked until the
+ * Barrier reply arrives.
+ *
+ * @param node
+ */
+ Status syncSendBarrierMessage(Node node);
+
+ /**
+ * Send Barrier message asynchronously. The caller is not blocked.
+ *
+ * @param node
+ */
+ Status asyncSendBarrierMessage(Node node);
}