Package com.sun.corba.ee.impl.transport
Class SharedCDRContactInfoImpl
- java.lang.Object
-
- com.sun.corba.ee.impl.transport.ContactInfoBase
-
- com.sun.corba.ee.impl.transport.SharedCDRContactInfoImpl
-
- All Implemented Interfaces:
ContactInfo,SocketInfo
public class SharedCDRContactInfoImpl extends ContactInfoBase
-
-
Field Summary
Fields Modifier and Type Field Description private inthashCodeprivate static intrequestIdprivate static ORBUtilSystemExceptionwrapper-
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 Constructor Description SharedCDRContactInfoImpl(ORB orb, ContactInfoList contactInfoList, IOR effectiveTargetIOR, short addressingDisposition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectioncreateConnection()MessageMediatorcreateMessageMediator(ORB broker, ContactInfo contactInfo, Connection connection, java.lang.String methodName, boolean isOneWay)CDROutputObjectcreateOutputObject(MessageMediator messageMediator)booleanequals(java.lang.Object obj)ClientRequestDispatchergetClientRequestDispatcher()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
getAddressingDisposition, getBroker, getConnectionCache, getContactInfoList, getEffectiveProfile, getEffectiveTargetIOR, getTargetIOR, setAddressingDisposition, setConnectionCache
-
-
-
-
Field Detail
-
requestId
private static int requestId
-
wrapper
private static final ORBUtilSystemException wrapper
-
hashCode
private int hashCode
-
-
Constructor Detail
-
SharedCDRContactInfoImpl
public SharedCDRContactInfoImpl(ORB orb, ContactInfoList contactInfoList, IOR effectiveTargetIOR, short addressingDisposition)
-
-
Method Detail
-
getType
public java.lang.String getType()
-
getHost
public java.lang.String getHost()
-
getPort
public int getPort()
-
getClientRequestDispatcher
public ClientRequestDispatcher getClientRequestDispatcher()
- Specified by:
getClientRequestDispatcherin interfaceContactInfo- Overrides:
getClientRequestDispatcherin classContactInfoBase
-
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.- 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.- Returns:
trueif a CorbaConnection created by thisContactInfoshould be cached.
-
getConnectionCacheType
public java.lang.String getConnectionCacheType()
-
createConnection
public Connection createConnection()
-
createMessageMediator
public MessageMediator createMessageMediator(ORB broker, ContactInfo contactInfo, Connection connection, java.lang.String methodName, boolean isOneWay)
- Specified by:
createMessageMediatorin interfaceContactInfo- Overrides:
createMessageMediatorin classContactInfoBase
-
createOutputObject
public CDROutputObject createOutputObject(MessageMediator messageMediator)
- Specified by:
createOutputObjectin interfaceContactInfo- Overrides:
createOutputObjectin classContactInfoBase
-
getMonitoringName
public java.lang.String getMonitoringName()
-
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
-
-