| Constructor and Description |
|---|
SimpleClient(String host,
int port)
Constructor of class
|
| Modifier and Type | Method and Description |
|---|---|
io.netty.util.concurrent.Future<?> |
disconnect() |
com.google.common.util.concurrent.SettableFuture<Boolean> |
getIsOnlineFuture() |
com.google.common.util.concurrent.SettableFuture<Boolean> |
getScenarioDone() |
static void |
main(String[] args)
Sets up
SimpleClient and fires run() |
void |
run()
Starting class of
SimpleClient |
void |
setScenarioHandler(ScenarioHandler scenario) |
void |
setSecuredClient(boolean securedClient) |
public SimpleClient(String host, int port)
host - address of hostport - host listening portpublic void run()
SimpleClientpublic io.netty.util.concurrent.Future<?> disconnect()
public void setSecuredClient(boolean securedClient)
setSecuredClient in interface OCPClientsecuredClient - true is client should use encrypted communication,
false otherwisepublic static void main(String[] args) throws Exception
SimpleClient and fires run()args - Exceptionpublic com.google.common.util.concurrent.SettableFuture<Boolean> getIsOnlineFuture()
getIsOnlineFuture in interface OCPClientpublic com.google.common.util.concurrent.SettableFuture<Boolean> getScenarioDone()
getScenarioDone in interface OCPClientpublic void setScenarioHandler(ScenarioHandler scenario)
setScenarioHandler in interface OCPClientscenario - list of desired actionsCopyright © 2016 OpenDaylight. All Rights Reserved.