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 SummaryConstructorsConstructorDescriptionCallableClient(int port, boolean securedClient, InetAddress ipAddress, String name, ScenarioHandler scenarioHandler, io.netty.bootstrap.Bootstrap bootstrap, io.netty.channel.EventLoopGroup eventExecutors) 
- 
Method SummaryModifier 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.voidrun()voidsetScenarioHandler(ScenarioHandler scenario) Sets the ScenarioHandler.voidsetSecuredClient(boolean securedClient) Sets wether client should use encrypted communication.
- 
Constructor Details- 
CallableClientpublic CallableClient(int port, boolean securedClient, InetAddress ipAddress, String name, ScenarioHandler scenarioHandler, io.netty.bootstrap.Bootstrap bootstrap, io.netty.channel.EventLoopGroup eventExecutors) 
 
- 
- 
Method Details- 
getIsOnlineFutureDescription copied from interface:OFClientReturns the isOnlineFuture which is set when client is started.- Specified by:
- getIsOnlineFuturein interface- OFClient
 
- 
getScenarioDoneDescription copied from interface:OFClientReturns the scenarioDone when scenario is successfully finished.- Specified by:
- getScenarioDonein interface- OFClient
 
- 
setScenarioHandlerDescription copied from interface:OFClientSets the ScenarioHandler.- Specified by:
- setScenarioHandlerin interface- OFClient
- Parameters:
- scenario- list of desired actions
 
- 
setSecuredClientpublic void setSecuredClient(boolean securedClient) Description copied from interface:OFClientSets wether client should use encrypted communication.- Specified by:
- setSecuredClientin interface- OFClient
- Parameters:
- securedClient- true is client should use encrypted communication, false otherwise
 
- 
call
- 
runpublic void run()
 
-