2 * Copyright (c) 2015 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
8 package org.opendaylight.openflowplugin.api.openflow.rpc;
10 import org.opendaylight.openflowplugin.api.openflow.OFPContext;
11 import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
12 import org.opendaylight.yangtools.yang.binding.RpcService;
15 * This context is registered with MD-SAL as a routed RPC provider for the inventory node backed by this switch and
16 * tracks the state of any user requests and how they map onto protocol requests. It uses
17 * {@link org.opendaylight.openflowplugin.api.openflow.device.RequestContext} to perform requests.
20 public interface RpcContext extends RequestContextStack, AutoCloseable, OFPContext {
21 <S extends RpcService> void registerRpcServiceImplementation(Class<S> serviceClass, S serviceInstance);
23 <S extends RpcService> S lookupRpcService(Class<S> serviceClass);
24 <S extends RpcService> void unregisterRpcServiceImplementation(Class<S> serviceClass);
29 void setStatisticsRpcEnabled(boolean isStatisticsRpcEnabled);
31 boolean isStatisticsRpcEnabled();