Package com.apama.net.interfaces
Class PingableClientFactory
- java.lang.Object
-
- com.apama.net.interfaces.PingableClientFactory
-
- All Implemented Interfaces:
ConnectionConstants
public class PingableClientFactory extends java.lang.Object implements ConnectionConstants
-
-
Field Summary
-
Fields inherited from interface com.apama.net.ConnectionConstants
DEFAULT_ADAPTER_PORT, DEFAULT_ENGINE_PORT, DEFAULT_HOST, DEFAULT_PORT, DEFAULT_PROCESS_NAME
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PingableClient
connectToServer(java.lang.String host, int port)
This static method attempts to establish a connection to a Server using TCP/HTTP.
-
-
-
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.
-
-