java.lang.Object
org.opendaylight.openflowjava.protocol.impl.clients.UdpSimpleClient
All Implemented Interfaces:
Runnable, OFClient

public class UdpSimpleClient extends Object implements OFClient
Simple client for testing purposes.
Author:
michal.polkorab
  • Constructor Details

    • UdpSimpleClient

      public UdpSimpleClient(String host, int port)
      Constructor of class.
      Parameters:
      host - address of host
      port - host listening port
  • Method Details

    • run

      public void run()
      Starting class of UdpSimpleClient.
      Specified by:
      run in interface Runnable
    • disconnect

      public io.netty.util.concurrent.Future<?> disconnect()
      Disconnect.
      Returns:
      close future
    • main

      public static void main(String[] args) throws Exception
      Sets up UdpSimpleClient and fires run().
      Throws:
      Exception
    • 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