BUG-4118: Li:backward compatibility - rpcs - initial proposal
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / rpc / RpcManager.java
1 /*
2  * Copyright (c) 2015 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.openflowplugin.api.openflow.rpc;
10
11 import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceContextClosedHandler;
12 import org.opendaylight.controller.md.sal.binding.api.NotificationPublishService;
13 import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceInitializationPhaseHandler;
14 import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceInitializator;
15
16 /**
17  * The RPC Manager will maintain an RPC Context for each online switch. RPC context for device is created when
18  * {@link org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceInitializationPhaseHandler#onDeviceContextLevelUp(org.opendaylight.openflowplugin.api.openflow.device.DeviceContext)}
19  * is called.
20  * <p>
21  * Created by Martin Bobak &lt;mbobak@cisco.com&gt; on 25.2.2015.
22  */
23 public interface RpcManager extends DeviceInitializator, DeviceInitializationPhaseHandler, AutoCloseable, DeviceContextClosedHandler {
24
25     void setStatisticsRpcEnabled(boolean isStatisticsRpcEnabled);
26
27     void setNotificationPublishService(NotificationPublishService notificationPublishService);
28 }