Fix checkstyle warnings
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / md / core / HandshakeManager.java
1 /**
2  * Copyright (c) 2013 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 package org.opendaylight.openflowplugin.api.openflow.md.core;
9
10 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.HelloMessage;
11
12 public interface HandshakeManager {
13
14     /**
15      * return negotiated version.
16      */
17     Short getVersion();
18
19     /**
20      * Setter.
21      * @param errorHandler the errorHandler to set
22      */
23     void setErrorHandler(ErrorHandler errorHandler);
24
25     /**
26      * Setter.
27      * @param handshakeListener the handshakeListener to set
28      */
29     void setHandshakeListener(HandshakeListener handshakeListener);
30
31     /**
32      * should use negotiation bit map.
33      * @param isBitmapNegotiationEnable yes/no
34      */
35     void setUseVersionBitmap(boolean isBitmapNegotiationEnable);
36
37     /**
38      * process current handshake step.
39      * @param receivedHello message from device we need to act upon
40      */
41     void shake(HelloMessage receivedHello);
42 }