Package com.sun.corba.se.impl.transport
Class SocketOrChannelContactInfoImpl
java.lang.Object
com.sun.corba.se.impl.transport.CorbaContactInfoBase
com.sun.corba.se.impl.transport.SocketOrChannelContactInfoImpl
- All Implemented Interfaces:
ContactInfo,CorbaContactInfo,SocketInfo
- Direct Known Subclasses:
SocketFactoryContactInfoImpl
- Author:
- Harold Carr
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected Stringprotected booleanprotected intprotected StringFields inherited from class com.sun.corba.se.impl.transport.CorbaContactInfoBase
addressingDisposition, connectionCache, contactInfoList, effectiveTargetIOR, orbFields inherited from interface com.sun.corba.se.spi.transport.SocketInfo
IIOP_CLEAR_TEXT -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedSocketOrChannelContactInfoImpl(ORB orb, CorbaContactInfoList contactInfoList) SocketOrChannelContactInfoImpl(ORB orb, CorbaContactInfoList contactInfoList, IOR effectiveTargetIOR, short addressingDisposition, String socketType, String hostname, int port) SocketOrChannelContactInfoImpl(ORB orb, CorbaContactInfoList contactInfoList, String socketType, String hostname, int port) -
Method Summary
Modifier and TypeMethodDescriptionUsed to get aConnectionto send and receive messages on the specific transport represented by thisContactInfo.protected voidbooleanPEPt uses separate caches for each type ofContactInfoas given bygetConnectionCacheType.getHost()intgetPort()getType()inthashCode()Used to lookup artifacts associated with thisContactInfo.booleanUsed to determine if aConnectionwill be present in an invocation.booleanUsed to determine if theConnectionused for a request should be cached.toString()Methods inherited from class com.sun.corba.se.impl.transport.CorbaContactInfoBase
createInputObject, createMessageMediator, createMessageMediator, createOutputObject, finishCreatingMessageMediator, 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
-
SocketOrChannelContactInfoImpl
protected SocketOrChannelContactInfoImpl() -
SocketOrChannelContactInfoImpl
-
SocketOrChannelContactInfoImpl
public SocketOrChannelContactInfoImpl(ORB orb, CorbaContactInfoList contactInfoList, String socketType, String hostname, int port) -
SocketOrChannelContactInfoImpl
public SocketOrChannelContactInfoImpl(ORB orb, CorbaContactInfoList 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 aConnectionwill be present in an invocation. For example, it may befalsein the case of shared-memoryInput/OutputObjects.- Specified by:
isConnectionBasedin interfaceContactInfo- Returns:
trueif aConnectionwill be used for an invocation.
-
shouldCacheConnection
public boolean shouldCacheConnection()Description copied from interface:ContactInfoUsed to determine if theConnectionused for a request should be cached. Iftruethen PEPt will attempt to reuse an existingConnection. If one is not found it will create a new one and cache it for future use.- Specified by:
shouldCacheConnectionin interfaceContactInfo- Returns:
trueifConnections created by thisContactInfoshould be cached.
-
getConnectionCacheType
Description copied from interface:ContactInfoPEPt uses separate caches for each type ofContactInfoas given bygetConnectionCacheType.- Specified by:
getConnectionCacheTypein interfaceContactInfo- Returns:
String
-
createConnection
Description copied from interface:ContactInfoUsed to get aConnectionto send and receive messages on the specific transport represented by thisContactInfo.- Specified by:
createConnectionin interfaceContactInfo- Returns:
Connection
-
getMonitoringName
- Specified by:
getMonitoringNamein interfaceCorbaContactInfo
-
getType
- Specified by:
getTypein interfaceSocketInfo
-
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 classObject- Returns:
- the hash value.
-
equals
-
toString
- Overrides:
toStringin classCorbaContactInfoBase
-
dprint
- Overrides:
dprintin classCorbaContactInfoBase
-