2 * Copyright (c) 2014, 2016 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.ovsdb.southbound.ovsdb.transact;
10 import java.util.Collection;
12 import org.opendaylight.controller.md.sal.binding.api.DataTreeModification;
13 import org.opendaylight.controller.md.sal.common.api.data.AsyncDataChangeEvent;
14 import org.opendaylight.ovsdb.southbound.InstanceIdentifierCodec;
15 import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node;
16 import org.opendaylight.yangtools.yang.binding.DataObject;
17 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
20 * Contract for a transactional invoker.
22 public interface TransactInvoker {
24 * Invoke the given transactional command, with the given bridge state, on the given events.
26 * @param command The transactional command.
27 * @param state The bridge state.
28 * @param events The events to be processed.
29 * @param instanceIdentifierCodec The instance identifier codec to use.
31 void invoke(TransactCommand command, BridgeOperationalState state,
32 AsyncDataChangeEvent<InstanceIdentifier<?>, DataObject> events,
33 InstanceIdentifierCodec instanceIdentifierCodec);
36 * Invoke the given transactional command, with the given bridge state, on the given modifications.
38 * @param command The transactional command.
39 * @param state The bridge state.
40 * @param modifications The modifications to be processed.
41 * @param instanceIdentifierCodec The instance identifier codec to use.
43 void invoke(TransactCommand command, BridgeOperationalState state,
44 Collection<DataTreeModification<Node>> modifications, InstanceIdentifierCodec instanceIdentifierCodec);