X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fsal%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fflowprogrammer%2FIFlowProgrammerService.java;h=5cdf9d83689d752a95c491d51371198c094de76f;hp=956942c09c6d6e3350fb857e16b3145881742d74;hb=e326757873804be369d20efd0b54467871094c06;hpb=42210c03b0a4c54706320ba9f55794c0abd4d201 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 956942c09c..5cdf9d8368 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 @@ -1,4 +1,3 @@ - /* * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. * @@ -13,38 +12,69 @@ import org.opendaylight.controller.sal.core.Node; import org.opendaylight.controller.sal.utils.Status; /** - * Interface for installing/removing flows on a network node - * - * - * + * Interface that defines the methods available to the functional modules above + * SAL for installing/modifying/removing flows on a network node */ public interface IFlowProgrammerService { /** - * 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); + 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 + */ + Status addFlowAsync(Node node, Flow flow); + + /** + * Asynchronously modify existing flow on the switch + * + * @param node + * @param flow + */ + Status modifyFlowAsync(Node node, Flow oldFlow, Flow newFlow); + + /** + * Asynchronously remove the flow from the network node + * + * @param node + * @param flow + */ + Status removeFlowAsync(Node node, Flow flow); + /** * Remove all flows present on the network node + * * @param node */ Status removeAllFlows(Node node); + + /** + * Send synchronous Barrier message + * + * @param node + */ + Status sendBarrierMessage(Node node); }