Class SimpleClient
- java.lang.Object
- 
- org.opendaylight.openflowjava.protocol.impl.clients.SimpleClient
 
- 
- 
Constructor SummaryConstructors Constructor Description SimpleClient(String host, int port)Constructor of class.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description io.netty.util.concurrent.Future<?>disconnect()Disconnect.com.google.common.util.concurrent.SettableFuture<Boolean>getIsOnlineFuture()Returns the isOnlineFuture which is set when client is started.com.google.common.util.concurrent.SettableFuture<Boolean>getScenarioDone()Returns the scenarioDone when scenario is successfully finished.static voidmain(String[] args)Sets upSimpleClientand fires run().voidrun()Starting class ofSimpleClient.voidsetScenarioHandler(ScenarioHandler scenario)Sets the ScenarioHandler.voidsetSecuredClient(boolean securedClient)Sets wether client should use encrypted communication.
 
- 
- 
- 
Constructor Detail- 
SimpleClientpublic SimpleClient(String host, int port) Constructor of class.- Parameters:
- host- address of host
- port- host listening port
 
 
- 
 - 
Method Detail- 
runpublic void run() Starting class ofSimpleClient.
 - 
disconnectpublic io.netty.util.concurrent.Future<?> disconnect() Disconnect.- Returns:
- close future
 
 - 
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
 
 - 
mainpublic static void main(String[] args) throws Exception Sets upSimpleClientand fires run().- Throws:
- Exception
 
 - 
getIsOnlineFuturepublic com.google.common.util.concurrent.SettableFuture<Boolean> getIsOnlineFuture() Description copied from interface:OFClientReturns the isOnlineFuture which is set when client is started.- Specified by:
- getIsOnlineFuturein interface- OFClient
 
 - 
getScenarioDonepublic com.google.common.util.concurrent.SettableFuture<Boolean> getScenarioDone() Description copied from interface:OFClientReturns the scenarioDone when scenario is successfully finished.- Specified by:
- getScenarioDonein interface- OFClient
 
 - 
setScenarioHandlerpublic void setScenarioHandler(ScenarioHandler scenario) Description copied from interface:OFClientSets the ScenarioHandler.- Specified by:
- setScenarioHandlerin interface- OFClient
- Parameters:
- scenario- list of desired actions
 
 
- 
 
-