java.lang.Object
org.opendaylight.openflowjava.protocol.impl.clients.CallableClient
All Implemented Interfaces:
Runnable, Callable<Boolean>, OFClient

public class CallableClient extends Object implements Callable<Boolean>, OFClient
Callable client class, inspired by SimpleClient class. Simulating device/switch connected to controller.
Author:
Jozef Bacigal
  • Constructor Details

    • CallableClient

      public CallableClient(int port, boolean securedClient, InetAddress ipAddress, String name, ScenarioHandler scenarioHandler, io.netty.bootstrap.Bootstrap bootstrap, io.netty.channel.EventLoopGroup eventExecutors)
  • Method Details

    • getIsOnlineFuture

      public com.google.common.util.concurrent.SettableFuture<Boolean> getIsOnlineFuture()
      Description copied from interface: OFClient
      Returns the isOnlineFuture which is set when client is started.
      Specified by:
      getIsOnlineFuture in interface OFClient
    • getScenarioDone

      public com.google.common.util.concurrent.SettableFuture<Boolean> getScenarioDone()
      Description copied from interface: OFClient
      Returns the scenarioDone when scenario is successfully finished.
      Specified by:
      getScenarioDone in interface OFClient
    • setScenarioHandler

      public void setScenarioHandler(ScenarioHandler scenario)
      Description copied from interface: OFClient
      Sets the ScenarioHandler.
      Specified by:
      setScenarioHandler in interface OFClient
      Parameters:
      scenario - list of desired actions
    • setSecuredClient

      public void setSecuredClient(boolean securedClient)
      Description copied from interface: OFClient
      Sets wether client should use encrypted communication.
      Specified by:
      setSecuredClient in interface OFClient
      Parameters:
      securedClient - true is client should use encrypted communication, false otherwise
    • call

      public Boolean call() throws Exception
      Specified by:
      call in interface Callable<Boolean>
      Throws:
      Exception
    • run

      public void run()
      Specified by:
      run in interface Runnable