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.openflow.md.core;
10 import org.opendaylight.openflowplugin.api.openflow.md.core.ErrorHandler;
11 import org.opendaylight.openflowplugin.api.openflow.md.core.HandshakeListener;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.GetFeaturesOutput;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.HelloMessage;
19 public interface HandshakeManager {
22 * @return negotiated version
27 * @return obtained connection features
29 GetFeaturesOutput getFeatures();
32 * @param receivedHello from switch
34 void setReceivedHello(HelloMessage receivedHello);
37 * @param errorHandler the errorHandler to set
39 void setErrorHandler(ErrorHandler errorHandler);
42 * @param handshakeListener the handshakeListener to set
44 void setHandshakeListener(HandshakeListener handshakeListener);
47 * @param isBitmapNegotiationEnable
49 void setUseVersionBitmap(boolean isBitmapNegotiationEnable);
52 * process current handshake step