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 intcachedHashCodeprotected java.lang.Stringhostnameprotected booleanisHashCodeCachedprotected intportprotected java.lang.StringsocketType-
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 protectedContactInfoImpl()protectedContactInfoImpl(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 ConnectioncreateConnection()protected voiddprint(java.lang.String msg)booleanequals(java.lang.Object obj)java.lang.StringgetConnectionCacheType()java.lang.StringgetHost()java.lang.StringgetMonitoringName()intgetPort()java.lang.StringgetType()inthashCode()Used to lookup artifacts associated with thisContactInfo.booleanisConnectionBased()Used to determine if a CorbaConnection will be present in an invocation.booleanshouldCacheConnection()Used to determine if the CorbaConnection used for a request should be cached.java.lang.StringtoString()-
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: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
public java.lang.String getConnectionCacheType()
- Specified by:
getConnectionCacheTypein interfaceContactInfo
-
createConnection
public Connection createConnection()
- Specified by:
createConnectionin interfaceContactInfo
-
getMonitoringName
public java.lang.String getMonitoringName()
- Specified by:
getMonitoringNamein interfaceContactInfo
-
getType
public java.lang.String getType()
- Specified by:
getTypein interfaceSocketInfo
-
getHost
public java.lang.String getHost()
- Specified by:
getHostin interfaceSocketInfo
-
getPort
public int getPort()
- Specified by:
getPortin interfaceSocketInfo
-
hashCode
public int hashCode()
Description copied from interface:ContactInfoUsed to lookup artifacts associated with thisContactInfo.- Specified by:
hashCodein interfaceContactInfo- Overrides:
hashCodein classjava.lang.Object- Returns:
- the hash value.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classContactInfoBase
-
dprint
protected void dprint(java.lang.String msg)
-
-