Added Yang code generation for Multipart messages
[openflowjava.git] / openflow-protocol-api / src / main / java / org / opendaylight / openflowjava / protocol / api / connection / ConnectionAdapter.java
1 /* Copyright (C)2013 Pantheon Technologies, s.r.o. All rights reserved. */
2
3 package org.opendaylight.openflowjava.protocol.api.connection;
4
5 import java.util.concurrent.Future;
6
7 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.OpenflowProtocolListener;
8 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.OpenflowProtocolService;
9
10 /**
11  * @author mirehak
12  * @author michal.polkorab
13  */
14 public interface ConnectionAdapter extends OpenflowProtocolService {
15
16     /**
17      * disconnect corresponding switch
18      * @return future set to true, when disconnect completed
19      */
20     public Future<Boolean> disconnect();
21     
22     /**
23      * @return true, if connection to switch is alive
24      */
25     public boolean isAlive();
26     
27     /**
28      * @param messageListener here will be pushed all messages from switch
29      */
30     public void setMessageListener(OpenflowProtocolListener messageListener);
31
32 }