Class ListeningSimpleClient
java.lang.Object
org.opendaylight.openflowjava.protocol.impl.clients.ListeningSimpleClient
Listening client for testing purposes.
- Author:
- martin.uhlir
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.netty.util.concurrent.Future<?>
Disconnect.com.google.common.util.concurrent.SettableFuture<Boolean>
Returns the isOnlineFuture which is set when client is started.int
getPort()
Returns the actual port number.com.google.common.util.concurrent.SettableFuture<Boolean>
Returns the scenarioDone when scenario is successfully finished.void
run()
Starting class ofListeningSimpleClient
.void
setScenarioHandler
(ScenarioHandler scenario) Sets the ScenarioHandler.void
setSecuredClient
(boolean securedClient) Sets wether client should use encrypted communication.
-
Constructor Details
-
ListeningSimpleClient
public ListeningSimpleClient(int port) Constructor of the class.- Parameters:
port
- host listening port
-
-
Method Details
-
run
public void run()Starting class ofListeningSimpleClient
. -
disconnect
public io.netty.util.concurrent.Future<?> disconnect()Disconnect.- Returns:
- close future
-
setSecuredClient
public void setSecuredClient(boolean securedClient) Description copied from interface:OFClient
Sets wether client should use encrypted communication.- Specified by:
setSecuredClient
in interfaceOFClient
- Parameters:
securedClient
- true is client should use encrypted communication, false otherwise
-
getIsOnlineFuture
Description copied from interface:OFClient
Returns the isOnlineFuture which is set when client is started.- Specified by:
getIsOnlineFuture
in interfaceOFClient
-
getScenarioDone
Description copied from interface:OFClient
Returns the scenarioDone when scenario is successfully finished.- Specified by:
getScenarioDone
in interfaceOFClient
-
setScenarioHandler
Description copied from interface:OFClient
Sets the ScenarioHandler.- Specified by:
setScenarioHandler
in interfaceOFClient
- Parameters:
scenario
- list of desired actions
-
getPort
public int getPort()Returns the actual port number.
-