Class UdpSimpleClient
- java.lang.Object
-
- org.opendaylight.openflowjava.protocol.impl.clients.UdpSimpleClient
-
-
Constructor Summary
Constructors Constructor Description UdpSimpleClient(String host, int port)
Constructor of class.
-
Method Summary
All 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 void
main(String[] args)
Sets upUdpSimpleClient
and fires run().void
run()
Starting class ofUdpSimpleClient
.void
setScenarioHandler(ScenarioHandler scenario)
Sets the ScenarioHandler.void
setSecuredClient(boolean securedClient)
Sets wether client should use encrypted communication.
-
-
-
Constructor Detail
-
UdpSimpleClient
public UdpSimpleClient(String host, int port)
Constructor of class.- Parameters:
host
- address of hostport
- host listening port
-
-
Method Detail
-
run
public void run()
Starting class ofUdpSimpleClient
.
-
disconnect
public io.netty.util.concurrent.Future<?> disconnect()
Disconnect.- Returns:
- close future
-
main
public static void main(String[] args) throws Exception
Sets upUdpSimpleClient
and fires run().- Throws:
Exception
-
getIsOnlineFuture
public com.google.common.util.concurrent.SettableFuture<Boolean> getIsOnlineFuture()
Description copied from interface:OFClient
Returns the isOnlineFuture which is set when client is started.- Specified by:
getIsOnlineFuture
in interfaceOFClient
-
getScenarioDone
public com.google.common.util.concurrent.SettableFuture<Boolean> getScenarioDone()
Description copied from interface:OFClient
Returns the scenarioDone when scenario is successfully finished.- Specified by:
getScenarioDone
in interfaceOFClient
-
setScenarioHandler
public void setScenarioHandler(ScenarioHandler scenario)
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
-
-