2 * Copyright (c) 2013 Cisco Systems, 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.controller.sal.core.api.mount;
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;
18 import com.google.common.util.concurrent.ListenableFuture;
21 * Interface representing a single mount instance and represents a way for
22 * clients to access underlying data, RPCs and notifications.
24 public interface MountInstance extends //
25 NotificationService, //
29 * Invoke an RPC on the system underlying the mount instance.
31 * @param type RPC type
32 * @param input RPC input arguments
33 * @return Future representing execution of the RPC.
35 ListenableFuture<RpcResult<CompositeNode>> rpc(QName type, CompositeNode input);
38 * Get {@link SchemaContext} of the system underlying the mount instance.
40 * @return A schema context.
42 SchemaContext getSchemaContext();