2 * Copyright (c) 2013, 2015 Dell, 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
9 package org.opendaylight.ovsdb.openstack.netvirt.sfc;
11 import org.opendaylight.controller.md.sal.binding.api.DataTreeChangeListener;
12 import org.opendaylight.yangtools.yang.binding.DataObject;
13 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
16 * netvirt-sfc-dcl processor
17 * org.opendaylight.ovsdb.openstack.netvirt.sfc
19 public interface INetvirtSfcDataProcessor<D extends DataObject> extends AutoCloseable, DataTreeChangeListener<D> {
22 * Method removes DataObject which is identified by InstanceIdentifier.
24 * @param identifier - the whole path to DataObject
25 * @param del - DataObject for removing
27 void remove(InstanceIdentifier<D> identifier, D del);
30 * Method updates the original DataObject to the update DataObject.
31 * Both are identified by same InstanceIdentifier.
33 * @param identifier - the whole path to DataObject
34 * @param original - original DataObject (for update)
35 * @param update - changed DataObject (contain updates)
37 void update(InstanceIdentifier<D> identifier, D original, D update);
40 * Method adds the DataObject which is identified by InstanceIdentifier
43 * @param identifier - the whole path to new DataObject
44 * @param add - new DataObject
46 void add(InstanceIdentifier<D> identifier, D add);