ilog.server.mvtcp
Class TcpConnection
java.lang.Object
|
+--ilog.server.mvtcp.TcpConnection
- public class TcpConnection
- extends java.lang.Object
This class represents a connection to specific process. More than one
MvConnect can use the same physical connection
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getName
public java.lang.String getName()
getTcpId
public int getTcpId()
getPeerHost
public java.lang.String getPeerHost()
getPeerPort
public int getPeerPort()
hasFailed
public boolean hasFailed()
isClosing
public boolean isClosing()
getOutputSocket
public MvSocket getOutputSocket()
registerInputSocket
public void registerInputSocket(MvSocket s)
close
public void close()
disconnect
public void disconnect()
disconnectConnectors
public void disconnectConnectors()
addConnector
public int addConnector(MvConnect c)
removeConnector
public void removeConnector(MvConnect c)
getConnector
public MvConnect getConnector(int id)
getConnectorCount
public int getConnectorCount()
GetConnection
public static TcpConnection GetConnection(java.lang.String peerHost,
int peerPort,
boolean create)
- This method create a connection to a process running on peerHost on port
peerPort. If a connection already exists with this process, this method
returns the existing connection
GetConnection
public static TcpConnection GetConnection(java.lang.String peerHost,
int peerPort)
GetOrCreateConnection
public static TcpConnection GetOrCreateConnection(java.lang.String peerHost,
int peerPort)
MakeName
public static java.lang.String MakeName(java.lang.String host,
int port)