5698b969771bd4296cbcb8d85ebbd03fcbca59ae
[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 public interface MountInstance extends //
25         NotificationService, //
26         DataBrokerService {
27
28     /**
29      * Invoke an RPC on the system underlying the mount instance.
30      *
31      * @param type RPC type
32      * @param input RPC input arguments
33      * @return Future representing execution of the RPC.
34      */
35     ListenableFuture<RpcResult<CompositeNode>> rpc(QName type, CompositeNode input);
36
37     /**
38      * Get {@link SchemaContext} of the system underlying the mount instance.
39      *
40      * @return A schema context.
41      */
42     SchemaContext getSchemaContext();
43 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.