|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.common.comm.platform.socket.client.SocketServerConnectionFactory
public class SocketServerConnectionFactory
Responsible for creating socket based connections The comm approach is object based and layered. Connections manage failover and identity. ServerInstances represent the service layer to a particular cluster member. ObjectChannels abstract the underlying IO.
Constructor Summary | |
---|---|
SocketServerConnectionFactory()
|
Method Summary | |
---|---|
SocketServerConnection |
createConnection(java.util.Properties connectionProperties)
Establish a connection to the server. |
static SocketServerConnectionFactory |
getInstance()
|
int |
getMaxCachedInstances()
|
SocketServerInstance |
getServerInstance(HostInfo info,
boolean ssl)
|
long |
getSynchronousTtl()
|
void |
initialize(java.util.Properties info)
|
boolean |
isAlive()
Is the connection factory alive |
void |
setMaxCachedInstances(int maxCachedInstances)
|
void |
setSynchronousTtl(long synchronousTTL)
|
void |
shutdown(boolean restart)
Shutdown the connection factory, including the DQP and all its existing connections |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SocketServerConnectionFactory()
Method Detail |
---|
public static SocketServerConnectionFactory getInstance()
public void initialize(java.util.Properties info)
initialize
in interface ServerConnectionFactory
public SocketServerInstance getServerInstance(HostInfo info, boolean ssl) throws CommunicationException, java.io.IOException
getServerInstance
in interface SocketServerInstanceFactory
CommunicationException
java.io.IOException
public SocketServerConnection createConnection(java.util.Properties connectionProperties) throws CommunicationException, ConnectionException
ServerConnectionFactory
createConnection
in interface ServerConnectionFactory
connectionProperties
- will be updated with additional information before logon
CommunicationException
- If an error occurs in connecting, typically due to
problems with the connection properties (bad user name, bad password, bad host name, etc)
ConnectionException
- If an error occurs communicating between client and serverpublic long getSynchronousTtl()
public void setSynchronousTtl(long synchronousTTL)
public int getMaxCachedInstances()
public void setMaxCachedInstances(int maxCachedInstances)
public void shutdown(boolean restart)
ServerConnectionFactory
shutdown
in interface ServerConnectionFactory
public boolean isAlive()
ServerConnectionFactory
isAlive
in interface ServerConnectionFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |