Interface OFClient
- All Superinterfaces:
Runnable
- All Known Implementing Classes:
CallableClient
,ListeningSimpleClient
,SimpleClient
,UdpSimpleClient
Unifying interface for simple clients / switch simulators.
- Author:
- michal.polkorab
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.util.concurrent.SettableFuture
<Boolean> Returns the isOnlineFuture which is set when client is started.com.google.common.util.concurrent.SettableFuture
<Boolean> Returns the scenarioDone when scenario is successfully finished.void
setScenarioHandler
(ScenarioHandler scenario) Sets the ScenarioHandler.void
setSecuredClient
(boolean securedClient) Sets wether client should use encrypted communication.
-
Method Details
-
getIsOnlineFuture
com.google.common.util.concurrent.SettableFuture<Boolean> getIsOnlineFuture()Returns the isOnlineFuture which is set when client is started. -
getScenarioDone
com.google.common.util.concurrent.SettableFuture<Boolean> getScenarioDone()Returns the scenarioDone when scenario is successfully finished. -
setScenarioHandler
Sets the ScenarioHandler.- Parameters:
scenario
- list of desired actions
-
setSecuredClient
void setSecuredClient(boolean securedClient) Sets wether client should use encrypted communication.- Parameters:
securedClient
- true is client should use encrypted communication, false otherwise
-