SocketOrChannelContactInfoImplpublic class SocketOrChannelContactInfoImpl extends com.sun.corba.se.impl.transport.CorbaContactInfoBase implements com.sun.corba.se.spi.transport.SocketInfo
Fields Summary |
---|
protected boolean | isHashCodeCached | protected int | cachedHashCode | protected String | socketType | protected String | hostname | protected int | port |
Constructors Summary |
---|
protected SocketOrChannelContactInfoImpl()
// XREVISIT
// See SocketOrChannelAcceptorImpl.createMessageMediator
// See SocketFactoryContactInfoImpl.constructor()
// See SocketOrChannelContactInfoImpl.constructor()
| protected SocketOrChannelContactInfoImpl(com.sun.corba.se.spi.orb.ORB orb, com.sun.corba.se.spi.transport.CorbaContactInfoList contactInfoList)
this.orb = orb;
this.contactInfoList = contactInfoList;
| public SocketOrChannelContactInfoImpl(com.sun.corba.se.spi.orb.ORB orb, com.sun.corba.se.spi.transport.CorbaContactInfoList contactInfoList, String socketType, String hostname, int port)
this(orb, contactInfoList);
this.socketType = socketType;
this.hostname = hostname;
this.port = port;
| public SocketOrChannelContactInfoImpl(com.sun.corba.se.spi.orb.ORB orb, com.sun.corba.se.spi.transport.CorbaContactInfoList contactInfoList, com.sun.corba.se.spi.ior.IOR effectiveTargetIOR, short addressingDisposition, String socketType, String hostname, int port)
this(orb, contactInfoList, socketType, hostname, port);
this.effectiveTargetIOR = effectiveTargetIOR;
this.addressingDisposition = addressingDisposition;
|
Methods Summary |
---|
public com.sun.corba.se.pept.transport.Connection | createConnection()
Connection connection =
new SocketOrChannelConnectionImpl(orb, this,
socketType, hostname, port);
return connection;
| protected void | dprint(java.lang.String msg)
ORBUtility.dprint("SocketOrChannelContactInfoImpl", msg);
| public boolean | equals(java.lang.Object obj)
if (obj == null) {
return false;
} else if (!(obj instanceof SocketOrChannelContactInfoImpl)) {
return false;
}
SocketOrChannelContactInfoImpl other =
(SocketOrChannelContactInfoImpl) obj;
if (port != other.port) {
return false;
}
if (!hostname.equals(other.hostname)) {
return false;
}
if (socketType == null) {
if (other.socketType != null) {
return false;
}
} else if (!socketType.equals(other.socketType)) {
return false;
}
return true;
| public java.lang.String | getConnectionCacheType()
return CorbaTransportManager.SOCKET_OR_CHANNEL_CONNECTION_CACHE;
| public java.lang.String | getHost()
return hostname;
| public java.lang.String | getMonitoringName()
return "SocketConnections";
| public int | getPort()
return port;
| public java.lang.String | getType()
return socketType;
| public int | hashCode()
if (! isHashCodeCached) {
cachedHashCode = socketType.hashCode() ^ hostname.hashCode() ^ port;
isHashCodeCached = true;
}
return cachedHashCode;
| public boolean | isConnectionBased()
return true;
| public boolean | shouldCacheConnection()
return true;
| public java.lang.String | toString()
return
"SocketOrChannelContactInfoImpl["
+ socketType + " "
+ hostname + " "
+ port
+ "]";
|
|