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().Exception
public com.google.common.util.concurrent.SettableFuture<Boolean> getIsOnlineFuture()
OFClient
getIsOnlineFuture
in interface OFClient
public com.google.common.util.concurrent.SettableFuture<Boolean> getScenarioDone()
OFClient
getScenarioDone
in interface OFClient
public void setScenarioHandler(ScenarioHandler scenario)
OFClient
setScenarioHandler
in interface OFClient
scenario
- list of desired actionspublic void setSecuredClient(boolean securedClient)
OFClient
setSecuredClient
in interface OFClient
securedClient
- true is client should use encrypted communication, false otherwiseCopyright © 2020 OpenDaylight. All rights reserved.