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 int
hashCode
private static int
requestId
private static ORBUtilSystemException
wrapper
-
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 Connection
createConnection()
MessageMediator
createMessageMediator(ORB broker, ContactInfo contactInfo, Connection connection, java.lang.String methodName, boolean isOneWay)
CDROutputObject
createOutputObject(MessageMediator messageMediator)
boolean
equals(java.lang.Object obj)
ClientRequestDispatcher
getClientRequestDispatcher()
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
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:
getClientRequestDispatcher
in interfaceContactInfo
- Overrides:
getClientRequestDispatcher
in classContactInfoBase
-
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
.- 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.- Returns:
true
if a CorbaConnection created by thisContactInfo
should 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:
createMessageMediator
in interfaceContactInfo
- Overrides:
createMessageMediator
in classContactInfoBase
-
createOutputObject
public CDROutputObject createOutputObject(MessageMediator messageMediator)
- Specified by:
createOutputObject
in interfaceContactInfo
- Overrides:
createOutputObject
in classContactInfoBase
-
getMonitoringName
public java.lang.String getMonitoringName()
-
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
-
-