RemoteDeviceDataBroker proxy
[netconf.git] / opendaylight / netconf / netconf-topology / src / main / java / org / opendaylight / netconf / topology / pipeline / ProxyNetconfDeviceDataBroker.java
1 /*
2  * Copyright (c) 2015 Cisco Systems, 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.netconf.topology.pipeline;
10
11 import com.google.common.base.Optional;
12 import org.opendaylight.controller.md.sal.common.api.TransactionStatus;
13 import org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType;
14 import org.opendaylight.controller.md.sal.dom.api.DOMDataBroker;
15 import org.opendaylight.netconf.topology.util.messages.NormalizedNodeMessage;
16 import org.opendaylight.yangtools.yang.common.RpcResult;
17 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
18 import scala.concurrent.Future;
19
20 public interface ProxyNetconfDeviceDataBroker extends DOMDataBroker{
21     Future<Optional<NormalizedNodeMessage>> read(LogicalDatastoreType store, YangInstanceIdentifier path);
22
23     Future<Boolean> exists(LogicalDatastoreType store, YangInstanceIdentifier path);
24
25     void put(LogicalDatastoreType store, NormalizedNodeMessage data);
26
27     void merge(LogicalDatastoreType store, NormalizedNodeMessage data);
28
29     void delete(LogicalDatastoreType store, YangInstanceIdentifier path);
30
31     boolean cancel();
32
33     Future<Void> submit();
34
35     @Deprecated
36     Future<RpcResult<TransactionStatus>> commit();
37 }