Enum Class JeroMQControlResponseCode

java.lang.Object
java.lang.Enum<JeroMQControlResponseCode>
dev.getelements.elements.rt.remote.jeromq.JeroMQControlResponseCode
All Implemented Interfaces:
Serializable, Comparable<JeroMQControlResponseCode>, Constable

public enum JeroMQControlResponseCode extends Enum<JeroMQControlResponseCode>
  • Enum Constant Details

    • OK

      public static final JeroMQControlResponseCode OK
      Indicates that the response was okay.
    • UNKNOWN_COMMAND

      public static final JeroMQControlResponseCode UNKNOWN_COMMAND
      Indicates that the client issued an unknown command.
    • NO_SUCH_NODE_ROUTE

      public static final JeroMQControlResponseCode NO_SUCH_NODE_ROUTE
      Indicates there was no such route for the given NodeId
    • NO_SUCH_INSTANCE

      public static final JeroMQControlResponseCode NO_SUCH_INSTANCE
      Indicates there was no such route for the given InstanceId
    • NO_SUCH_NODE_BINDING

      public static final JeroMQControlResponseCode NO_SUCH_NODE_BINDING
      Indicates there is no binding for the supplied NodeId.
    • DUPLICATE_NODE_BINDING

      public static final JeroMQControlResponseCode DUPLICATE_NODE_BINDING
      Indicates a binding already exists.
    • SOCKET_ERROR

      public static final JeroMQControlResponseCode SOCKET_ERROR
      Indicates a socket error occurred, such as network timeout.
    • EXCEPTION

      public static final JeroMQControlResponseCode EXCEPTION
      There was an exception processing the request.
    • PROTOCOL_ERROR

      public static final JeroMQControlResponseCode PROTOCOL_ERROR
      Indicates that there was a protocol error. For example, the server sent malformed data that the client cannot understand.
    • INTERNAL_ERROR

      public static final JeroMQControlResponseCode INTERNAL_ERROR
      The system experienced an internal error. Likely caused by a bug or misconfiguration of the system.
    • BUSY_ERROR

      public static final JeroMQControlResponseCode BUSY_ERROR
      The system was unable to process the request due to load or other issues.
    • UNKNOWN_ERROR

      public static final JeroMQControlResponseCode UNKNOWN_ERROR
      Indicates an unknown error.
  • Method Details

    • values

      public static JeroMQControlResponseCode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static JeroMQControlResponseCode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • pushResponseCode

      public void pushResponseCode(org.zeromq.ZMsg zMsg)
      Pushes the code as the first frame in the specified ZMsg.
      Parameters:
      zMsg - the ZMsg to receive the command
    • stripCode

      public static JeroMQControlResponseCode stripCode(org.zeromq.ZMsg zMsg)
      Gets the JeroMQControlResponseCode or throw an IllegalArgumentException if the code could not be understood. This removes the first frame of the message allowing subsequent processing to take place.
      Parameters:
      zMsg - the message from which to read the command.
      Returns:
      the JeroMQControlResponseCode
    • readCode

      public static JeroMQControlResponseCode readCode(org.zeromq.ZMsg zMsg)
      Gets the JeroMQControlResponseCode or throw an IllegalArgumentException if the code could not be understood. This reads the first frame of the message allowing subsequent processing to take place.
      Parameters:
      zMsg - the message from which to read the command.
      Returns:
      the JeroMQControlResponseCode
    • readCode

      public static JeroMQControlResponseCode readCode(org.zeromq.ZFrame frame)
      Gets the JeroMQControlResponseCode or throw an IllegalArgumentException if the code could not be understood. This reads the first frame of the message allowing subsequent processing to take place.
      Parameters:
      frame - the frame containin the code
      Returns:
      the JeroMQControlResponseCode