Class PingableClientFactory

    • Method Detail

      • connectToServer

        public static PingableClient connectToServer​(java.lang.String host,
                                                     int port)
                                              throws com.apama.util.CompoundException
        This static method attempts to establish a connection to a Server using TCP/HTTP. It returns a PingableClient object that can be used to access the Server.
        Parameters:
        host - The machine name where a Server can be located.
        port - The port that the Server is listening on for transport negotiations with the client.
        Returns:
        A PingableClient object if a Server is located and a connection established.
        Throws:
        com.apama.util.CompoundException - Thrown if any exceptions occur in the Client SDK.