Class RemoteCommandCommPopulator

    • Constructor Detail

      • RemoteCommandCommPopulator

        public RemoteCommandCommPopulator​(String connectionString)
        Parameters:
        connectionString - the connection string of the comm connection to create.
    • Method Detail

      • start

        public void start​(RemoteCommandManager commandManager)
                   throws IOException
        Creates the comm connection and adds it in the given remote command manager.
        Parameters:
        commandManager - the command manager to use to manage the created comm connection.
        Throws:
        IOException - if a I/O error occurs.
      • stop

        public void stop()
        Stops the reading of the comm connection and closes it.
      • getAvailable

        public int getAvailable()
        Description copied from interface: ConnectivityManager
        Returns the numbers of available connections.
        Specified by:
        getAvailable in interface ConnectivityManager
        Returns:
        the numbers of available connections.
      • getConnectionInfo

        public String getConnectionInfo()
        Description copied from interface: ConnectivityManager
        Returns a String representing how the service can be joined from remote clients.

        Examples of such strings are:

        • 192.168.0.1:4000 for a service listening on a TCP port on these addresses and ports.
        • for a service listening on a TCP port on these addresses and ports.
        • comm:com6;baudrate=115200 for a service listening on a COMM port with these parameters
        Specified by:
        getConnectionInfo in interface ConnectivityManager
        Returns:
        the connectivity URL, as a String.