Bug 6692: remove InstanceIdentifierCodec instance from SBU
[ovsdb.git] / southbound / southbound-impl / src / main / java / org / opendaylight / ovsdb / southbound / ovsdb / transact / TransactInvoker.java
index ea88ff76b68fedb3394861b3e18b92807844da34..10059edc62242bc1a28c8ade4e484ce38f417f1a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014, 2016 Cisco Systems, Inc. and others.  All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
@@ -7,6 +7,39 @@
  */
 package org.opendaylight.ovsdb.southbound.ovsdb.transact;
 
+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;
+
+/**
+ * Contract for a transactional invoker.
+ */
 public interface TransactInvoker {
-    public void invoke(TransactCommand command);
+    /**
+     * Invoke the given transactional command, with the given bridge state, on the given events.
+     *
+     * @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,
+            InstanceIdentifierCodec instanceIdentifierCodec);
+
+    /**
+     * Invoke the given transactional command, with the given bridge state, on the given modifications.
+     *
+     * @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, InstanceIdentifierCodec instanceIdentifierCodec);
 }