Package com.sun.corba.ee.impl.encoding
Class CachedCodeBase
- java.lang.Object
-
- org.omg.CORBA.portable.ObjectImpl
-
- com.sun.org.omg.SendingContext._CodeBaseImplBase
-
- com.sun.corba.ee.impl.encoding.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 Summary
Fields Modifier and Type Field Description private java.util.Hashtable<java.lang.String,java.lang.String[]>
bases
private Connection
conn
private CodeBase
delegate
private java.util.Hashtable<java.lang.String,FullValueDescription>
fvds
private java.util.Hashtable<java.lang.String,java.lang.String>
implementations
private static java.util.Hashtable<IOR,CodeBase>
iorMap
private static java.lang.Object
iorMapLock
private static ORBUtilSystemException
wrapper
-
Constructor Summary
Constructors Constructor Description CachedCodeBase(Connection connection)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]
bases(java.lang.String repId)
static void
cleanCache(ORB orb)
private boolean
connectedCodeBase()
Repository
get_ir()
private Object
getObjectFromIOR()
java.lang.String
implementation(java.lang.String repId)
java.lang.String[]
implementations(java.lang.String[] repIds)
FullValueDescription
meta(java.lang.String repId)
FullValueDescription[]
metas(java.lang.String[] repIds)
-
Methods inherited from class com.sun.org.omg.SendingContext._CodeBaseImplBase
_ids, _invoke
-
Methods inherited from class org.omg.CORBA.portable.ObjectImpl
_create_request, _create_request, _duplicate, _get_delegate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_delegate, _set_policy_override, equals, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.omg.CORBA.Object
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
-
-
-
-
Field Detail
-
wrapper
private static final ORBUtilSystemException wrapper
-
implementations
private java.util.Hashtable<java.lang.String,java.lang.String> implementations
-
fvds
private java.util.Hashtable<java.lang.String,FullValueDescription> fvds
-
bases
private java.util.Hashtable<java.lang.String,java.lang.String[]> bases
-
delegate
private volatile CodeBase delegate
-
conn
private final Connection conn
-
iorMapLock
private static final java.lang.Object iorMapLock
-
-
Constructor Detail
-
CachedCodeBase
public CachedCodeBase(Connection connection)
-
-
Method Detail
-
cleanCache
public static void cleanCache(ORB orb)
-
get_ir
public Repository get_ir()
-
implementation
public java.lang.String implementation(java.lang.String repId)
-
implementations
public java.lang.String[] implementations(java.lang.String[] repIds)
-
meta
public FullValueDescription meta(java.lang.String repId)
-
metas
public FullValueDescription[] metas(java.lang.String[] repIds)
-
bases
public java.lang.String[] bases(java.lang.String repId)
-
connectedCodeBase
private boolean connectedCodeBase()
-
getObjectFromIOR
private Object getObjectFromIOR()
-
-