Class CallableClient
java.lang.Object
org.opendaylight.openflowjava.protocol.impl.clients.CallableClient
Callable client class, inspired by SimpleClient class.
Simulating device/switch connected to controller.
- Author:
- Jozef Bacigal
-
Constructor Summary
ConstructorDescriptionCallableClient
(int port, boolean securedClient, InetAddress ipAddress, String name, ScenarioHandler scenarioHandler, io.netty.bootstrap.Bootstrap bootstrap, io.netty.channel.EventLoopGroup eventExecutors) -
Method Summary
Modifier and TypeMethodDescriptioncall()
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.void
run()
void
setScenarioHandler
(ScenarioHandler scenario) Sets the ScenarioHandler.void
setSecuredClient
(boolean securedClient) Sets wether client should use encrypted communication.
-
Constructor Details
-
CallableClient
public CallableClient(int port, boolean securedClient, InetAddress ipAddress, String name, ScenarioHandler scenarioHandler, io.netty.bootstrap.Bootstrap bootstrap, io.netty.channel.EventLoopGroup eventExecutors)
-
-
Method Details
-
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
-
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
-
call
-
run
public void run()
-