/* * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.openflowplugin.api.openflow.rpc; import org.opendaylight.openflowplugin.api.openflow.OFPContext; import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack; import org.opendaylight.yangtools.yang.binding.RpcService; /** * This context is registered with MD-SAL as a routed RPC provider for the inventory node backed by this switch and * tracks the state of any user requests and how they map onto protocol requests. It uses * {@link org.opendaylight.openflowplugin.api.openflow.device.RequestContext} to perform requests. *

*/ public interface RpcContext extends RequestContextStack, AutoCloseable, OFPContext { void registerRpcServiceImplementation(Class serviceClass, S serviceInstance); S lookupRpcService(Class serviceClass); void unregisterRpcServiceImplementation(Class serviceClass); @Override void close(); void setStatisticsRpcEnabled(boolean isStatisticsRpcEnabled); boolean isStatisticsRpcEnabled(); }