com.apama.net.interfaces
Class PingableClientFactory

java.lang.Object
  extended by 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, DEFAULT_SENTINEL_PORT
 
Method Summary
static PingableClient connectToServer(java.lang.String host, int port)
          This static method attempts to establish a connection to a Server using TCP/HTTP.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.


Submit a bug or feature
Copyright (c) 2013 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors. Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG