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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
protected String
protected boolean
protected int
protected String
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
ConstructorsModifierConstructorDescriptionprotected
protected
ContactInfoImpl
(ORB orb, ContactInfoList contactInfoList) ContactInfoImpl
(ORB orb, ContactInfoList contactInfoList, IOR effectiveTargetIOR, short addressingDisposition, String socketType, String hostname, int port) ContactInfoImpl
(ORB orb, ContactInfoList contactInfoList, String socketType, String hostname, int port) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
boolean
getHost()
int
getPort()
getType()
int
hashCode()
Used to lookup artifacts associated with thisContactInfo
.boolean
Used to determine if a CorbaConnection will be present in an invocation.boolean
Used to determine if the CorbaConnection used for a request should be cached.toString()
Methods inherited from class com.sun.corba.ee.impl.transport.ContactInfoBase
createMessageMediator, createOutputObject, getAddressingDisposition, getBroker, getClientRequestDispatcher, getConnectionCache, getContactInfoList, getEffectiveProfile, getEffectiveTargetIOR, getTargetIOR, setAddressingDisposition, setConnectionCache
-
Field Details
-
isHashCodeCached
protected boolean isHashCodeCached -
cachedHashCode
protected int cachedHashCode -
socketType
-
hostname
-
port
protected int port
-
-
Constructor Details
-
ContactInfoImpl
protected ContactInfoImpl() -
ContactInfoImpl
-
ContactInfoImpl
public ContactInfoImpl(ORB orb, ContactInfoList contactInfoList, String socketType, String hostname, int port) -
ContactInfoImpl
public ContactInfoImpl(ORB orb, ContactInfoList contactInfoList, IOR effectiveTargetIOR, short addressingDisposition, String socketType, String hostname, int port)
-
-
Method Details
-
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
- Specified by:
getConnectionCacheType
in interfaceContactInfo
-
createConnection
- Specified by:
createConnection
in interfaceContactInfo
-
getMonitoringName
- Specified by:
getMonitoringName
in interfaceContactInfo
-
getType
- Specified by:
getType
in interfaceSocketInfo
-
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 classObject
- Returns:
- the hash value.
-
equals
-
toString
- Overrides:
toString
in classContactInfoBase
-
dprint
-