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 intprotected Stringprotected booleanprotected intprotected StringFields inherited from class ContactInfoBase
addressingDisposition, connectionCache, contactInfoList, effectiveTargetIOR, orbFields inherited from interface SocketInfo
IIOP_CLEAR_TEXT, SSL_PREFIX -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedContactInfoImpl(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/////////////////////////////////////////////////booleangetHost()/////////////////////////////////////////////////intgetPort()getType()inthashCode()/////////////////////////////////////////////////booleanUsed to determine if a CorbaConnection will be present in an invocation.booleanUsed to determine if the CorbaConnection used for a request should be cached.toString()/////////////////////////////////////////////////
-
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:ContactInfoUsed to determine if a CorbaConnection will be present in an invocation. For example, it may befalsein the case of shared-memoryInput/OutputObjects.- Specified by:
isConnectionBasedin interfaceContactInfo- Returns:
trueif a CorbaConnection will be used for an invocation.
-
shouldCacheConnection
public boolean shouldCacheConnection()Description copied from interface:ContactInfoUsed to determine if the CorbaConnection used for a request should be cached. Iftruethen 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:
shouldCacheConnectionin interfaceContactInfo- Returns:
trueif a CorbaConnection created by thisContactInfoshould be cached.
-
getConnectionCacheType
- Specified by:
getConnectionCacheTypein interfaceContactInfo
-
createConnection
- Specified by:
createConnectionin interfaceContactInfo
-
getMonitoringName
/////////////////////////////////////////////////- Specified by:
getMonitoringNamein interfaceContactInfo
-
getType
- Specified by:
getTypein interfaceSocketInfo
-
getHost
- Specified by:
getHostin interfaceSocketInfo
-
getPort
public int getPort()- Specified by:
getPortin interfaceSocketInfo
-
hashCode
public int hashCode()/////////////////////////////////////////////////- Specified by:
hashCodein interfaceContactInfo- Overrides:
hashCodein classObject- Returns:
- the hash value.
-
equals
-
toString
Description copied from class:ContactInfoBase/////////////////////////////////////////////////- Overrides:
toStringin classContactInfoBase
-
dprint
/////////////////////////////////////////////////
-