Split listeners from data processors
[netvirt.git] / openstack / net-virt-sfc / impl / src / main / java / org / opendaylight / ovsdb / openstack / netvirt / sfc / INetvirtSfcDataProcessor.java
1 /*
2  * Copyright (c) 2013, 2016 Dell, Inc. and others. All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.ovsdb.openstack.netvirt.sfc;
10
11 import org.opendaylight.yangtools.yang.binding.DataObject;
12 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
13
14 /**
15  * netvirt-sfc-dcl processor
16  * org.opendaylight.ovsdb.openstack.netvirt.sfc
17  */
18 public interface INetvirtSfcDataProcessor<D extends DataObject> {
19
20     /**
21      * Method removes DataObject which is identified by InstanceIdentifier.
22      *
23      * @param identifier - the whole path to DataObject
24      * @param del - DataObject for removing
25      */
26     void remove(InstanceIdentifier<D> identifier, D del);
27
28     /**
29      * Method updates the original DataObject to the update DataObject.
30      * Both are identified by same InstanceIdentifier.
31      *
32      * @param identifier - the whole path to DataObject
33      * @param original - original DataObject (for update)
34      * @param update - changed DataObject (contain updates)
35      */
36     void update(InstanceIdentifier<D> identifier, D original, D update);
37
38     /**
39      * Method adds the DataObject which is identified by InstanceIdentifier
40      * to device.
41      *
42      * @param identifier - the whole path to new DataObject
43      * @param add - new DataObject
44      */
45     void add(InstanceIdentifier<D> identifier, D add);
46
47 }