Package com.sun.corba.ee.impl.transport
Class ContactInfoImpl
- java.lang.Object
-
- com.sun.corba.ee.impl.transport.ContactInfoBase
-
- com.sun.corba.ee.impl.transport.ContactInfoImpl
-
- All Implemented Interfaces:
ContactInfo
,SocketInfo
- Direct Known Subclasses:
NoConnectionCacheImpl.NCCContactInfoImpl
,SocketFactoryContactInfoImpl
public class ContactInfoImpl extends ContactInfoBase implements SocketInfo
-
-
Field Summary
Fields Modifier and Type Field Description protected int
cachedHashCode
protected java.lang.String
hostname
protected boolean
isHashCodeCached
protected int
port
protected java.lang.String
socketType
-
Fields inherited from class com.sun.corba.ee.impl.transport.ContactInfoBase
addressingDisposition, connectionCache, contactInfoList, effectiveTargetIOR, orb
-
Fields inherited from interface com.sun.corba.ee.spi.transport.SocketInfo
IIOP_CLEAR_TEXT, SSL_PREFIX
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ContactInfoImpl()
protected
ContactInfoImpl(ORB orb, ContactInfoList contactInfoList)
ContactInfoImpl(ORB orb, ContactInfoList contactInfoList, IOR effectiveTargetIOR, short addressingDisposition, java.lang.String socketType, java.lang.String hostname, int port)
ContactInfoImpl(ORB orb, ContactInfoList contactInfoList, java.lang.String socketType, java.lang.String hostname, int port)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Connection
createConnection()
protected void
dprint(java.lang.String msg)
boolean
equals(java.lang.Object obj)
java.lang.String
getConnectionCacheType()
java.lang.String
getHost()
java.lang.String
getMonitoringName()
int
getPort()
java.lang.String
getType()
int
hashCode()
Used to lookup artifacts associated with thisContactInfo
.boolean
isConnectionBased()
Used to determine if a CorbaConnection will be present in an invocation.boolean
shouldCacheConnection()
Used to determine if the CorbaConnection used for a request should be cached.java.lang.String
toString()
-
Methods inherited from class com.sun.corba.ee.impl.transport.ContactInfoBase
createMessageMediator, createOutputObject, getAddressingDisposition, getBroker, getClientRequestDispatcher, getConnectionCache, getContactInfoList, getEffectiveProfile, getEffectiveTargetIOR, getTargetIOR, setAddressingDisposition, setConnectionCache
-
-
-
-
Constructor Detail
-
ContactInfoImpl
protected ContactInfoImpl()
-
ContactInfoImpl
protected ContactInfoImpl(ORB orb, ContactInfoList contactInfoList)
-
ContactInfoImpl
public ContactInfoImpl(ORB orb, ContactInfoList contactInfoList, java.lang.String socketType, java.lang.String hostname, int port)
-
ContactInfoImpl
public ContactInfoImpl(ORB orb, ContactInfoList contactInfoList, IOR effectiveTargetIOR, short addressingDisposition, java.lang.String socketType, java.lang.String hostname, int port)
-
-
Method Detail
-
isConnectionBased
public boolean isConnectionBased()
Description copied from interface:ContactInfo
Used to determine if a CorbaConnection will be present in an invocation. For example, it may befalse
in the case of shared-memoryInput/OutputObjects
.- Specified by:
isConnectionBased
in interfaceContactInfo
- Returns:
true
if a CorbaConnection will be used for an invocation.
-
shouldCacheConnection
public boolean shouldCacheConnection()
Description copied from interface:ContactInfo
Used to determine if the CorbaConnection used for a request should be cached. Iftrue
then the ORB will attempt to reuse an existing CorbaConnection. If one is not found it will create a new one and cache it for future use.- Specified by:
shouldCacheConnection
in interfaceContactInfo
- Returns:
true
if a CorbaConnection created by thisContactInfo
should be cached.
-
getConnectionCacheType
public java.lang.String getConnectionCacheType()
- Specified by:
getConnectionCacheType
in interfaceContactInfo
-
createConnection
public Connection createConnection()
- Specified by:
createConnection
in interfaceContactInfo
-
getMonitoringName
public java.lang.String getMonitoringName()
- Specified by:
getMonitoringName
in interfaceContactInfo
-
getType
public java.lang.String getType()
- Specified by:
getType
in interfaceSocketInfo
-
getHost
public java.lang.String getHost()
- Specified by:
getHost
in interfaceSocketInfo
-
getPort
public int getPort()
- Specified by:
getPort
in interfaceSocketInfo
-
hashCode
public int hashCode()
Description copied from interface:ContactInfo
Used to lookup artifacts associated with thisContactInfo
.- Specified by:
hashCode
in interfaceContactInfo
- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- the hash value.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classContactInfoBase
-
dprint
protected void dprint(java.lang.String msg)
-
-