Constructor and Description |
---|
SimpleClient(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
SimpleClient and fires run(). |
void |
run()
Starting class of
SimpleClient . |
void |
setScenarioHandler(ScenarioHandler scenario)
Sets the ScenarioHandler.
|
void |
setSecuredClient(boolean securedClient)
Sets wether client should use encrypted communication.
|
public SimpleClient(String host, int port)
host
- address of hostport
- host listening portpublic void run()
SimpleClient
.public io.netty.util.concurrent.Future<?> disconnect()
public void setSecuredClient(boolean securedClient)
OFClient
setSecuredClient
in interface OFClient
securedClient
- true is client should use encrypted communication, false otherwisepublic static void main(String[] args) throws Exception
SimpleClient
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 actionsCopyright © 2020 OpenDaylight. All rights reserved.