Bug 6692: remove InstanceIdentifierCodec instance from SBU
[ovsdb.git] / southbound / southbound-impl / src / main / java / org / opendaylight / ovsdb / southbound / ovsdb / transact / TransactInvoker.java
index 5009ece165618eebb715afc20890c27bd2ac8e56..10059edc62242bc1a28c8ade4e484ce38f417f1a 100644 (file)
@@ -11,6 +11,7 @@ import java.util.Collection;
 
 import org.opendaylight.controller.md.sal.binding.api.DataTreeModification;
 import org.opendaylight.controller.md.sal.common.api.data.AsyncDataChangeEvent;
+import org.opendaylight.ovsdb.southbound.InstanceIdentifierCodec;
 import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node;
 import org.opendaylight.yangtools.yang.binding.DataObject;
 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
@@ -25,9 +26,11 @@ public interface TransactInvoker {
      * @param command The transactional command.
      * @param state The bridge state.
      * @param events The events to be processed.
+     * @param instanceIdentifierCodec The instance identifier codec to use.
      */
     void invoke(TransactCommand command, BridgeOperationalState state,
-                AsyncDataChangeEvent<InstanceIdentifier<?>, DataObject> events);
+            AsyncDataChangeEvent<InstanceIdentifier<?>, DataObject> events,
+            InstanceIdentifierCodec instanceIdentifierCodec);
 
     /**
      * Invoke the given transactional command, with the given bridge state, on the given modifications.
@@ -35,7 +38,8 @@ public interface TransactInvoker {
      * @param command The transactional command.
      * @param state The bridge state.
      * @param modifications The modifications to be processed.
+     * @param instanceIdentifierCodec The instance identifier codec to use.
      */
     void invoke(TransactCommand command, BridgeOperationalState state,
-                Collection<DataTreeModification<Node>> modifications);
+            Collection<DataTreeModification<Node>> modifications, InstanceIdentifierCodec instanceIdentifierCodec);
 }