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 Details

    • isHashCodeCached

      protected boolean isHashCodeCached
    • cachedHashCode

      protected int cachedHashCode
    • socketType

      protected String socketType
    • hostname

      protected String hostname
    • port

      protected int port
  • Constructor Details

    • ContactInfoImpl

      protected ContactInfoImpl()
    • ContactInfoImpl

      protected ContactInfoImpl(ORB orb, ContactInfoList contactInfoList)
    • ContactInfoImpl

      public ContactInfoImpl(ORB orb, ContactInfoList contactInfoList, String socketType, String hostname, int port)
    • ContactInfoImpl

      public ContactInfoImpl(ORB orb, ContactInfoList contactInfoList, IOR effectiveTargetIOR, short addressingDisposition, String socketType, String hostname, int port)
  • Method Details

    • 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 be false in the case of shared-memory Input/OutputObjects.
      Specified by:
      isConnectionBased in interface ContactInfo
      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. If true 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.
      Specified by:
      shouldCacheConnection in interface ContactInfo
      Returns:
      true if a CorbaConnection created by this ContactInfo should be cached.
    • getConnectionCacheType

      public String getConnectionCacheType()
      Specified by:
      getConnectionCacheType in interface ContactInfo
    • createConnection

      public Connection createConnection()
      Specified by:
      createConnection in interface ContactInfo
    • getMonitoringName

      public String getMonitoringName()
      Specified by:
      getMonitoringName in interface ContactInfo
    • getType

      public String getType()
      Specified by:
      getType in interface SocketInfo
    • getHost

      public String getHost()
      Specified by:
      getHost in interface SocketInfo
    • getPort

      public int getPort()
      Specified by:
      getPort in interface SocketInfo
    • hashCode

      public int hashCode()
      Description copied from interface: ContactInfo
      Used to lookup artifacts associated with this ContactInfo.
      Specified by:
      hashCode in interface ContactInfo
      Overrides:
      hashCode in class Object
      Returns:
      the hash value.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class ContactInfoBase
    • dprint

      protected void dprint(String msg)