X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fsal%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fflowprogrammer%2FIFlowProgrammerService.java;h=0b38dda8cb6c4e8f02ee97494fd8bd201a4efeb4;hb=0fe04fdf4271be914d43d35231c1706ec34b05f6;hp=dbd7eafa36b8f71c1a50c71459f799a64fd45b33;hpb=c94e54cc1f58a5c313e424e9c5cde5af6c821185;p=controller.git diff --git a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/flowprogrammer/IFlowProgrammerService.java b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/flowprogrammer/IFlowProgrammerService.java index dbd7eafa36..0b38dda8cb 100644 --- a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/flowprogrammer/IFlowProgrammerService.java +++ b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/flowprogrammer/IFlowProgrammerService.java @@ -18,7 +18,7 @@ import org.opendaylight.controller.sal.utils.Status; public interface IFlowProgrammerService { /** * Synchronously add a flow to the network node - * + * * @param node * The target network node * @param flow @@ -29,7 +29,7 @@ public interface IFlowProgrammerService { /** * Synchronously modify existing flow on the switch - * + * * @param node * The target network node * @param oldFlow @@ -42,7 +42,7 @@ public interface IFlowProgrammerService { /** * Synchronously remove the flow from the network node - * + * * @param node * The target network node * @param flow @@ -53,7 +53,7 @@ public interface IFlowProgrammerService { /** * Asynchronously add a flow to the network node - * + * * @param node * The target network node * @param flow @@ -64,7 +64,7 @@ public interface IFlowProgrammerService { /** * Asynchronously modify existing flow on the switch - * + * * @param node * The target network node * @param oldFlow @@ -77,7 +77,7 @@ public interface IFlowProgrammerService { /** * Asynchronously remove the flow from the network node - * + * * @param node * The target network node * @param flow @@ -88,7 +88,7 @@ public interface IFlowProgrammerService { /** * Remove all flows present on the network node - * + * * @param node * The target network node * @return The status of this request containing the unique request id @@ -96,17 +96,33 @@ public interface IFlowProgrammerService { Status removeAllFlows(Node node); /** - * Send synchronous Barrier message - * + * Send Barrier message synchronously. The caller will be blocked until the + * solicitation response arrives. + * * Solicit the network node to report whether all the requests sent so far * are completed. When this call is done, caller knows that all past flow * operations requested to the node in asynchronous fashion were satisfied * by the network node and that in case of any failure, a message was sent * to the controller. - * + * * @param node * The network node to solicit * @return The status of this request containing the unique request id */ - Status sendBarrierMessage(Node node); + Status syncSendBarrierMessage(Node node); + + /** + * Send Barrier message asynchronously. The caller is not blocked. + * + * Solicit the network node to report whether all the requests sent so far + * are completed. When this call is done, caller knows that all past flow + * operations requested to the node in asynchronous fashion were satisfied + * by the network node and that in case of any failure, a message was sent + * to the controller. + * + * @param node + * The network node to solicit + * @return The status of this request containing the unique request id + */ + Status asyncSendBarrierMessage(Node node); }