com.h3c.of.sw

## Class CmdEchoRequest

- java.lang.Object
- - com.h3c.of.sw.ScenarioCommand
  - - com.h3c.of.sw.CmdEchoRequest

-     public class CmdEchoRequest
      extends ScenarioCommand

  Concrete class for Echo-Request command.

- - ### Field Summary

    - ### Fields inherited from class com.h3c.of.sw.ScenarioCommand

      `E_INV_PARAMS, error, params, type`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `CmdEchoRequest(CommandType type, String params)` Constructs an echo-request scenario command.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `byte[]` | `getPayload()` Returns the payload of the echo request.
    `String` | `getSwid()` Returns the switch ID.

    - ### Methods inherited from class com.h3c.of.sw.ScenarioCommand

      `create, getType, toString, validate`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### CmdEchoRequest

          public CmdEchoRequest(CommandType type,
                        String params)

      Constructs an echo-request scenario command.
      Parameters:
        `type` - the command type
        `params` - the command parameters

  - ### Method Detail

    - #### getSwid

          public String getSwid()

      Returns the switch ID.
      Returns:
        the switch ID

    - #### getPayload

          public byte[] getPayload()

      Returns the payload of the echo request.
      Returns:
        the payload

Copyright © 2014. All Rights Reserved.