2 * Copyright (c) 2019 Ericsson India Global Services Pvt Ltd. 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
9 package org.opendaylight.openflowplugin.applications.frm;
11 import com.google.common.util.concurrent.ListenableFuture;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.FlowCapableNode;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.onf.bundle.service.rev170124.AddBundleMessagesOutput;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.onf.rev170124.BundleId;
15 import org.opendaylight.yangtools.yang.binding.DataObject;
16 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
17 import org.opendaylight.yangtools.yang.common.RpcResult;
19 public interface BundleMessagesCommiter<D extends DataObject> {
22 * Method removes DataObject which is identified by InstanceIdentifier from
26 * - the whole path to DataObject
28 * - DataObject for removing
30 * Node InstanceIdentifier
32 void remove(InstanceIdentifier<D> identifier, D del, InstanceIdentifier<FlowCapableNode> nodeIdent,
36 * Method updates the original DataObject to the update DataObject in device.ForwardingRulesManager.java.
37 * Both are identified by same InstanceIdentifier.
40 * - the whole path to DataObject
42 * - original DataObject (for update)
44 * - changed DataObject (contain updates)
46 * Node InstanceIdentifier
48 void update(InstanceIdentifier<D> identifier, D original, D update,
49 InstanceIdentifier<FlowCapableNode> nodeIdent, BundleId bundleId);
52 * Method adds the DataObject which is identified by InstanceIdentifier to
56 * - the whole path to new DataObject
60 * Node InstanceIdentifier
61 * @return A future associated with RPC task. {@code null} is set to the future
62 * if this method does not invoke RPC.
64 ListenableFuture<RpcResult<AddBundleMessagesOutput>> add(InstanceIdentifier<D> identifier, D add,
65 InstanceIdentifier<FlowCapableNode> nodeIdent, BundleId bundleId);