Enum Class JeroMQControlResponseCode
java.lang.Object
java.lang.Enum<JeroMQControlResponseCode>
dev.getelements.elements.rt.remote.jeromq.JeroMQControlResponseCode
- All Implemented Interfaces:
Serializable
,Comparable<JeroMQControlResponseCode>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe system was unable to process the request due to load or other issues.Indicates a binding already exists.There was an exception processing the request.The system experienced an internal error.Indicates there was no such route for the givenInstanceId
Indicates there is no binding for the suppliedNodeId
.Indicates there was no such route for the givenNodeId
Indicates that the response was okay.Indicates that there was a protocol error.Indicates a socket error occurred, such as network timeout.Indicates that the client issued an unknown command.Indicates an unknown error. -
Method Summary
Modifier and TypeMethodDescriptionvoid
pushResponseCode
(org.zeromq.ZMsg zMsg) Pushes the code as the first frame in the specifiedZMsg
.static JeroMQControlResponseCode
readCode
(org.zeromq.ZFrame frame) Gets theJeroMQControlResponseCode
or throw anIllegalArgumentException
if the code could not be understood.static JeroMQControlResponseCode
readCode
(org.zeromq.ZMsg zMsg) Gets theJeroMQControlResponseCode
or throw anIllegalArgumentException
if the code could not be understood.static JeroMQControlResponseCode
stripCode
(org.zeromq.ZMsg zMsg) Gets theJeroMQControlResponseCode
or throw anIllegalArgumentException
if the code could not be understood.static JeroMQControlResponseCode
Returns the enum constant of this class with the specified name.static JeroMQControlResponseCode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OK
Indicates that the response was okay. -
UNKNOWN_COMMAND
Indicates that the client issued an unknown command. -
NO_SUCH_NODE_ROUTE
Indicates there was no such route for the givenNodeId
-
NO_SUCH_INSTANCE
Indicates there was no such route for the givenInstanceId
-
NO_SUCH_NODE_BINDING
Indicates there is no binding for the suppliedNodeId
. -
DUPLICATE_NODE_BINDING
Indicates a binding already exists. -
SOCKET_ERROR
Indicates a socket error occurred, such as network timeout. -
EXCEPTION
There was an exception processing the request. -
PROTOCOL_ERROR
Indicates that there was a protocol error. For example, the server sent malformed data that the client cannot understand. -
INTERNAL_ERROR
The system experienced an internal error. Likely caused by a bug or misconfiguration of the system. -
BUSY_ERROR
The system was unable to process the request due to load or other issues. -
UNKNOWN_ERROR
Indicates an unknown error.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
pushResponseCode
public void pushResponseCode(org.zeromq.ZMsg zMsg) Pushes the code as the first frame in the specifiedZMsg
.- Parameters:
zMsg
- theZMsg
to receive the command
-
stripCode
Gets theJeroMQControlResponseCode
or throw anIllegalArgumentException
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
Gets theJeroMQControlResponseCode
or throw anIllegalArgumentException
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
Gets theJeroMQControlResponseCode
or throw anIllegalArgumentException
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
-