Class ParameterServerSubscriber

    • Field Detail

      • CUSTOM_UPDATE_TYPE

        public static final String CUSTOM_UPDATE_TYPE
        Specify a custom class as a jvm arg. Note that this class must be a fully qualified classname
        See Also:
        Constant Field Values
    • Constructor Detail

      • ParameterServerSubscriber

        public ParameterServerSubscriber​(io.aeron.driver.MediaDriver mediaDriver)
        Allow passing in a media driver that already exists
        Parameters:
        mediaDriver -
    • Method Detail

      • slaveConnectionInfo

        public SlaveConnectionInfo slaveConnectionInfo()
        When this is a slave node it returns the connection url for this node and the associated master connection urls in the form of: host:port:streamId
        Returns:
        the slave connection info
      • masterConnectionInfo

        public MasterConnectionInfo masterConnectionInfo()
        When this is a master node, it returns the connection url for this node, it's slaves (if any exist) and the responder connection url in the form of: host:port:streamId
        Returns:
        the master connection info
      • run

        public void run​(String[] args)
        Parameters:
        args -
      • getContext

        public io.aeron.Aeron.Context getContext()
      • getMasterArray

        public org.nd4j.linalg.api.ndarray.INDArray getMasterArray()
        Get the master ndarray from the internal NDArrayHolder
        Returns:
        the master ndarray
      • subscriberLaunched

        public boolean subscriberLaunched()
        Returns true if the subscriber is launched
        Returns:
      • main

        public static void main​(String[] args)