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
8 package org.opendaylight.openflowplugin.api.openflow.md.core;
10 import org.opendaylight.openflowplugin.api.openflow.connection.HandshakeContext;
11 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.GetFeaturesOutput;
13 public interface HandshakeListener {
16 * Handshake successfull.
17 * @param featureOutput obtained
18 * @param version negotiated
20 void onHandshakeSuccessful(GetFeaturesOutput featureOutput, Short version);
23 * This method is called when handshake fails for some reason. It allows
24 * all necessary cleanup operations.
26 void onHandshakeFailure();
30 * @param handshakeContext context
32 void setHandshakeContext(HandshakeContext handshakeContext);