Package com.sun.corba.se.pept.transport
Interface ContactInfo
- All Known Subinterfaces:
CorbaContactInfo
- All Known Implementing Classes:
CorbaContactInfoBase,SharedCDRContactInfoImpl,SocketFactoryContactInfoImpl,SocketOrChannelContactInfoImpl
public interface ContactInfo
The primary PEPt client-side plug-in point and enabler for altenate encodings, protocols and transports.
ContactInfo is a factory for client-side
artifacts used
to construct and send a message (and possibly receive and process a
response).
- Author:
- Harold Carr
-
Method Summary
Modifier and TypeMethodDescriptionUsed to get aConnectionto send and receive messages on the specific transport represented by thisContactInfo.createInputObject(Broker broker, MessageMediator messageMediator) Used to get aInputObjectfor the specific encoding represented by thisContactInfo.createMessageMediator(Broker broker, Connection connection) Used to get aMessageMediatorto hold internal data for a message received using the specific encoding, protocol, transport combination represented by thisContactInfo.createMessageMediator(Broker broker, ContactInfo contactInfo, Connection connection, String methodName, boolean isOneWay) Used to get aMessageMediatorto hold internal data for a message to be sent using the specific encoding, protocol, transport combination represented by thisContactInfo.createOutputObject(MessageMediator messageMediator) Used to get aOutputObjectfor the specific encoding represented by thisContactInfo.finishCreatingMessageMediator(Broker broker, Connection connection, MessageMediator messageMediator) Used to finish creating aMessageMediatorwith internal data for a message received using the specific encoding, protocol, transport combination represented by thisContactInfo.TheBrokerassociated with an invocation.Used to get aClientRequestDispatcherused to handle the specific protocol represented by thisContactInfo.Get theOutboundConnectionCacheused by thisContactInfoPEPt uses separate caches for each type ofContactInfoas given bygetConnectionCacheType().PEPt uses separate caches for each type ofContactInfoas given bygetConnectionCacheType.The parentContactInfoListfor thisContactInfo.inthashCode()Used to lookup artifacts associated with thisContactInfo.booleanUsed to determine if aConnectionwill be present in an invocation.voidsetConnectionCache(OutboundConnectionCache connectionCache) Set theOutboundConnectionCacheto be used by thisContactInfo.booleanUsed to determine if theConnectionused for a request should be cached.
-
Method Details
-
getBroker
Broker getBroker()TheBrokerassociated with an invocation.- Returns:
Broker
-
getContactInfoList
ContactInfoList getContactInfoList()The parentContactInfoListfor thisContactInfo.- Returns:
ContactInfoList
-
getClientRequestDispatcher
ClientRequestDispatcher getClientRequestDispatcher()Used to get aClientRequestDispatcherused to handle the specific protocol represented by thisContactInfo.- Returns:
ClientRequestDispatcher
-
isConnectionBased
boolean isConnectionBased()Used to determine if aConnectionwill be present in an invocation. For example, it may befalsein the case of shared-memoryInput/OutputObjects.- Returns:
trueif aConnectionwill be used for an invocation.
-
shouldCacheConnection
boolean shouldCacheConnection()Used 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.- Returns:
trueifConnections created by thisContactInfoshould be cached.
-
getConnectionCacheType
String getConnectionCacheType()PEPt uses separate caches for each type ofContactInfoas given bygetConnectionCacheType.- Returns:
String
-
setConnectionCache
Set theOutboundConnectionCacheto be used by thisContactInfo. PEPt uses separate caches for each type ofContactInfoas given bygetConnectionCacheType().setConnectionCache(com.sun.corba.se.pept.transport.OutboundConnectionCache)andgetConnectionCache()support an optimzation to avoid hashing to find that cache.- Parameters:
connectionCache- .
-
getConnectionCache
OutboundConnectionCache getConnectionCache()Get theOutboundConnectionCacheused by thisContactInfoPEPt uses separate caches for each type ofContactInfoas given bygetConnectionCacheType().setConnectionCache(com.sun.corba.se.pept.transport.OutboundConnectionCache)andgetConnectionCache()support an optimzation to avoid hashing to find that cache.- Returns:
ConnectionCache
-
createConnection
Connection createConnection()Used to get aConnectionto send and receive messages on the specific transport represented by thisContactInfo.- Returns:
Connection
-
createMessageMediator
MessageMediator createMessageMediator(Broker broker, ContactInfo contactInfo, Connection connection, String methodName, boolean isOneWay) Used to get aMessageMediatorto hold internal data for a message to be sent using the specific encoding, protocol, transport combination represented by thisContactInfo.- Returns:
MessageMediator
-
createMessageMediator
Used to get aMessageMediatorto hold internal data for a message received using the specific encoding, protocol, transport combination represented by thisContactInfo.- Returns:
MessageMediator
-
finishCreatingMessageMediator
MessageMediator finishCreatingMessageMediator(Broker broker, Connection connection, MessageMediator messageMediator) Used to finish creating aMessageMediatorwith internal data for a message received using the specific encoding, protocol, transport combination represented by thisContactInfo.- Returns:
MessageMediator
-
createInputObject
Used to get aInputObjectfor the specific encoding represented by thisContactInfo.- Returns:
InputObject
-
createOutputObject
Used to get aOutputObjectfor the specific encoding represented by thisContactInfo.- Returns:
OutputObject
-
hashCode
int hashCode()Used to lookup artifacts associated with thisContactInfo.
-