Enum Class JeroMQRoutingCommand

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

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

    • FORWARD

      public static final JeroMQRoutingCommand FORWARD
      Requests that the message be routed to a destination. This is a majority of messages used for invocations. The message will be routed based on subsequent routing information.
    • GET_ROUTING_STATUS

      public static final JeroMQRoutingCommand GET_ROUTING_STATUS
      Returns the routing information for the service. This includes a listing of current routes. The response contains a set of frame pairs. The first of each in the pair includes the NodeID and the second contains the string representation of the destination route.
    • GET_INSTANCE_STATUS

      public static final JeroMQRoutingCommand GET_INSTANCE_STATUS
      Gets the instance status. The instance status returns the instance ID, a listing of nodes IDs and ports currently serving on the instance.
    • OPEN_ROUTE_TO_NODE

      public static final JeroMQRoutingCommand OPEN_ROUTE_TO_NODE
      Opens a route to a node by specifying the NodeId and instance connect address. If a route is already opened then this simply returns the already established connection string.
    • CLOSE_ROUTES_VIA_INSTANCE

      public static final JeroMQRoutingCommand CLOSE_ROUTES_VIA_INSTANCE
      Closes a route to a node by specifying the NodeId. If the route does not exist the appropriate error is returned.
    • OPEN_BINDING_FOR_NODE

      public static final JeroMQRoutingCommand OPEN_BINDING_FOR_NODE
      Opens a binding for a node by specifying the NodeId.
    • CLOSE_BINDING_FOR_NODE

      public static final JeroMQRoutingCommand CLOSE_BINDING_FOR_NODE
      Closes a binding for a node by specifying the NodeId.
    • HEALTH_CHECK

      public static final JeroMQRoutingCommand HEALTH_CHECK
      Causes the instance to perform a health check.
  • Method Details

    • values

      public static JeroMQRoutingCommand[] 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 JeroMQRoutingCommand 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
    • pushCommand

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

      public static JeroMQRoutingCommand stripCommand(org.zeromq.ZMsg zMsg)
      Gets the JeroMQRoutingCommand or throw an IllegalArgumentException if the command 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 JeroMQRoutingCommand