java.lang.Object
org.opendaylight.openflowjava.protocol.impl.clients.ScenarioFactory

public final class ScenarioFactory extends Object
Class for providing prepared handshake scenario.
Author:
michal.polkorab
  • Method Details

    • createHandshakeScenario

      public static Deque<ClientEvent> createHandshakeScenario()
      Creates stack with handshake needed messages. XID of messages:
      1. hello sent - 00000001
      2. hello waiting - 00000002
      3. features request waiting - 00000003
      4. features reply sent - 00000003
      Returns:
      stack filled with Handshake messages
    • createHandshakeScenarioWithBarrier

      public static Deque<ClientEvent> createHandshakeScenarioWithBarrier()
      Creates stack with handshake needed messages. XID of messages:
      1. hello sent - 00000001
      2. hello waiting - 00000021
      3. features request waiting - 00000002
      4. features reply sent - 00000002
      Returns:
      stack filled with Handshake messages
    • createHandshakeScenarioWithAuxiliaryId

      public static Deque<ClientEvent> createHandshakeScenarioWithAuxiliaryId(byte auxiliaryId)
      Creates stack with handshake needed messages. XID of messages:
      1. hello sent - 00000001
      2. hello waiting - 00000002
      3. features request waiting - 00000003
      4. features reply sent - 00000003
      Parameters:
      auxiliaryId - auxiliaryId wanted in featuresReply message
      Returns:
      stack filled with Handshake messages (featuresReply with auxiliaryId set)