Class JeroMQControlClient

java.lang.Object
dev.getelements.elements.rt.remote.jeromq.JeroMQControlClient
All Implemented Interfaces:
ControlClient, AutoCloseable

public class JeroMQControlClient extends Object implements ControlClient
Implements the control protocol for interfacing with the JeroMQInstanceConnectionService. This client is responsible for performing control operations such as registering a node, deregistering a node, and querying available nodes. This class is designed to be used by a single thread and destroyed.
  • Field Details

    • DEFAULT_TIMEOUT

      public static final long DEFAULT_TIMEOUT
      See Also:
    • DEFAULT_TIMEOUT_UNITS

      public static final TimeUnit DEFAULT_TIMEOUT_UNITS
  • Constructor Details

    • JeroMQControlClient

      public JeroMQControlClient(org.zeromq.ZContext zContext, String instanceConnectAddress, JeroMQSecurity securityChain)
    • JeroMQControlClient

      public JeroMQControlClient(org.zeromq.ZContext zContext, String instanceConnectAddress, JeroMQSecurity jeroMQSecurity, long timeout, TimeUnit timeUnit)
      Creates a JeroMQControlClient connecting to the remote instance to perform basic discover and control operations. This uses ZContext.shadow(ZContext) to make a shadow copy of the ZContext and then closes it later.
      Parameters:
      zContext - the ZContext used to communicate
      instanceConnectAddress -
  • Method Details