Interface OFClient
-
- All Superinterfaces:
Runnable
- All Known Implementing Classes:
CallableClient
,ListeningSimpleClient
,SimpleClient
,UdpSimpleClient
public interface OFClient extends Runnable
Unifying interface for simple clients / switch simulators.- Author:
- michal.polkorab
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.void
setScenarioHandler(ScenarioHandler scenario)
Sets the ScenarioHandler.void
setSecuredClient(boolean securedClient)
Sets wether client should use encrypted communication.
-
-
-
Method Detail
-
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
void setScenarioHandler(ScenarioHandler scenario)
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
-
-