| Constructor and Description |
|---|
UdpSimpleClient(String host,
int port)
Constructor of class.
|
| Modifier and Type | Method and 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 up
UdpSimpleClient and fires run(). |
void |
run()
Starting class of
UdpSimpleClient. |
void |
setScenarioHandler(ScenarioHandler scenario)
Sets the ScenarioHandler.
|
void |
setSecuredClient(boolean securedClient)
Sets wether client should use encrypted communication.
|
public UdpSimpleClient(String host, int port)
host - address of hostport - host listening portpublic void run()
UdpSimpleClient.public io.netty.util.concurrent.Future<?> disconnect()
public static void main(String[] args) throws Exception
UdpSimpleClient and fires run().Exceptionpublic com.google.common.util.concurrent.SettableFuture<Boolean> getIsOnlineFuture()
OFClientgetIsOnlineFuture in interface OFClientpublic com.google.common.util.concurrent.SettableFuture<Boolean> getScenarioDone()
OFClientgetScenarioDone in interface OFClientpublic void setScenarioHandler(ScenarioHandler scenario)
OFClientsetScenarioHandler in interface OFClientscenario - list of desired actionspublic void setSecuredClient(boolean securedClient)
OFClientsetSecuredClient in interface OFClientsecuredClient - true is client should use encrypted communication, false otherwiseCopyright © 2019 OpenDaylight. All rights reserved.