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
9 package org.opendaylight.openflowplugin.api.openflow.connection;
11 import org.opendaylight.openflowjava.protocol.api.connection.SwitchConnectionHandler;
12 import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceConnectedHandler;
13 import org.opendaylight.openflowplugin.api.openflow.device.handlers.MessageHandler;
16 * Connection manager manages connections with devices.
17 * It instantiates and registers {@link ConnectionContext}
18 * used for handling all communication with device when onSwitchConnected notification is processed.
20 * Created by Martin Bobak <mbobak@cisco.com> on 25.2.2015.
22 public interface ConnectionManager extends SwitchConnectionHandler {
25 * Method registers handler responsible handling operations related to connected device after
26 * device is connected.
28 * @param deviceConnectedHandler
30 void setDeviceConnectedHandler(DeviceConnectedHandler deviceConnectedHandler);
33 * Method registers handler responsible for operations related to connected device after
34 * message from device is received.
36 void setMessageHandler(MessageHandler messageHandler);