Class SimpleClient
java.lang.Object
org.opendaylight.openflowjava.protocol.impl.clients.SimpleClient
Simple client for testing purposes.
- Author:
- michal.polkorab
-
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.com.google.common.util.concurrent.SettableFuture
<Boolean> Returns the scenarioDone when scenario is successfully finished.static void
Sets upSimpleClient
and fires run().void
run()
Starting class ofSimpleClient
.void
setScenarioHandler
(ScenarioHandler scenario) Sets the ScenarioHandler.void
setSecuredClient
(boolean securedClient) Sets wether client should use encrypted communication.
-
Constructor Details
-
SimpleClient
Constructor of class.- Parameters:
host
- address of hostport
- host listening port
-
-
Method Details
-
run
public void run()Starting class ofSimpleClient
. -
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
-
main
Sets upSimpleClient
and fires run().- Throws:
Exception
-
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
-