BUG 2854 : Do not add empty read write transactions to the replicable journal
[controller.git] / opendaylight / md-sal / sal-dom-api / src / main / java / org / opendaylight / controller / sal / core / api / mount / MountInstance.java
1 /*
2  * Copyright (c) 2013 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.controller.sal.core.api.mount;
10
11 import org.opendaylight.controller.sal.core.api.data.DataBrokerService;
12 import org.opendaylight.controller.sal.core.api.notify.NotificationService;
13 import org.opendaylight.yangtools.yang.common.QName;
14 import org.opendaylight.yangtools.yang.common.RpcResult;
15 import org.opendaylight.yangtools.yang.data.api.CompositeNode;
16 import org.opendaylight.yangtools.yang.model.api.SchemaContext;
17
18 import com.google.common.util.concurrent.ListenableFuture;
19
20 /**
21  * Interface representing a single mount instance and represents a way for
22  * clients to access underlying data, RPCs and notifications.
23  */
24 @Deprecated
25 public interface MountInstance extends //
26         NotificationService, //
27         DataBrokerService {
28
29     /**
30      * Invoke an RPC on the system underlying the mount instance.
31      *
32      * @param type RPC type
33      * @param input RPC input arguments
34      * @return Future representing execution of the RPC.
35      */
36     ListenableFuture<RpcResult<CompositeNode>> rpc(QName type, CompositeNode input);
37
38     /**
39      * Get {@link SchemaContext} of the system underlying the mount instance.
40      *
41      * @return A schema context.
42      */
43     SchemaContext getSchemaContext();
44 }