Class CachedCodeBase

  • All Implemented Interfaces:
    CodeBase, CodeBaseOperations, java.io.Serializable, Object, IDLEntity, InvokeHandler, RunTime, RunTimeOperations

    public class CachedCodeBase
    extends _CodeBaseImplBase
    Provides the reading side with a per connection cache of info obtained via calls to the remote CodeBase. Previously, most of this was in IIOPConnection. Features: Delays cache creation unless used Postpones remote calls until necessary Handles creating obj ref from IOR Maintains caches for the following maps: CodeBase IOR to obj ref (global) RepId to implementation URL(s) RepId to remote FVD RepId to superclass type list Needs cache management.
    See Also:
    Serialized Form
    • Field Detail

      • implementations

        private java.util.Hashtable<java.lang.String,​java.lang.String> implementations
      • bases

        private java.util.Hashtable<java.lang.String,​java.lang.String[]> bases
      • delegate

        private volatile CodeBase delegate
      • iorMapLock

        private static final java.lang.Object iorMapLock
      • iorMap

        private static final java.util.Hashtable<IOR,​CodeBase> iorMap
    • Constructor Detail

      • CachedCodeBase

        public CachedCodeBase​(Connection connection)
    • Method Detail

      • cleanCache

        public static void cleanCache​(ORB orb)
      • implementation

        public java.lang.String implementation​(java.lang.String repId)
      • implementations

        public java.lang.String[] implementations​(java.lang.String[] repIds)
      • bases

        public java.lang.String[] bases​(java.lang.String repId)
      • connectedCodeBase

        private boolean connectedCodeBase()
      • getObjectFromIOR

        private Object getObjectFromIOR()