Package com.sun.corba.ee.impl.protocol
Class RequestDispatcherRegistryImpl
java.lang.Object
com.sun.corba.ee.impl.protocol.RequestDispatcherRegistryImpl
- All Implemented Interfaces:
RequestDispatcherRegistry
This is a registry of all subcontract ID dependent objects. This includes:
LocalClientRequestDispatcherFactory, ClientRequestDispatcher, ServerSubcontract, and
ObjectAdapterFactory.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.glassfish.pfl.basic.contain.DenseIntMapImpl
<ClientRequestDispatcher> protected int
private org.glassfish.pfl.basic.contain.DenseIntMapImpl
<LocalClientRequestDispatcherFactory> private org.glassfish.pfl.basic.contain.DenseIntMapImpl
<ObjectAdapterFactory> private Set
<ObjectAdapterFactory> private Set
<ObjectAdapterFactory> private org.glassfish.pfl.basic.contain.DenseIntMapImpl
<ServerRequestDispatcher> private Map
<String, ServerRequestDispatcher> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetClientRequestDispatcher
(int scid) Get the ClientRequestDispatcher for subcontract ID scid.getLocalClientRequestDispatcherFactory
(int scid) Get the LocalClientRequestDispatcher for subcontract ID scid.Return the set of all ObjectAdapterFactory instances that are registered.getObjectAdapterFactory
(int scid) Get the ObjectAdapterFactory for a particular subcontract ID scid.getServerRequestDispatcher
(int scid) Get the CorbaServerRequestDispatcher for subcontract ID scid.Get the CorbaServerRequestDispatcher for a particular object key.void
registerClientRequestDispatcher
(ClientRequestDispatcher csc, int scid) Register a ClientRequestDispatcher for a particular subcontract ID.void
Register a LocalClientRequestDispatcher for a particular subcontract ID.void
registerObjectAdapterFactory
(ObjectAdapterFactory oaf, int scid) Register an ObjectAdapterFactory for a particular subcontract ID.void
registerServerRequestDispatcher
(ServerRequestDispatcher ssc, int scid) Register a CorbaServerRequestDispatcher for a particular subcontract ID.void
Register a CorbaServerRequestDispatcher for handling an explicit object key name.
-
Field Details
-
defaultId
protected int defaultId -
SDRegistry
-
CSRegistry
-
OAFRegistry
-
LCSFRegistry
private org.glassfish.pfl.basic.contain.DenseIntMapImpl<LocalClientRequestDispatcherFactory> LCSFRegistry -
objectAdapterFactories
-
objectAdapterFactoriesView
-
stringToServerSubcontract
-
-
Constructor Details
-
RequestDispatcherRegistryImpl
public RequestDispatcherRegistryImpl(int defaultId)
-
-
Method Details
-
registerClientRequestDispatcher
Description copied from interface:RequestDispatcherRegistry
Register a ClientRequestDispatcher for a particular subcontract ID. The subcontract ID appears in the ObjectKey of an object reference, and is used to control how a remote method invocation is processed by the ORB for a particular kind of object reference.- Specified by:
registerClientRequestDispatcher
in interfaceRequestDispatcherRegistry
- Parameters:
csc
- Dispatcher to registerscid
- ID to register with
-
registerLocalClientRequestDispatcherFactory
public void registerLocalClientRequestDispatcherFactory(LocalClientRequestDispatcherFactory csc, int scid) Description copied from interface:RequestDispatcherRegistry
Register a LocalClientRequestDispatcher for a particular subcontract ID. The subcontract ID appears in the ObjectKey of an object reference, and is used to control how a particular kind of colocated request is processed.- Specified by:
registerLocalClientRequestDispatcherFactory
in interfaceRequestDispatcherRegistry
- Parameters:
csc
- DispatcherFactory to registerscid
- ID of factory
-
registerServerRequestDispatcher
Description copied from interface:RequestDispatcherRegistry
Register a CorbaServerRequestDispatcher for a particular subcontract ID. The subcontract ID appears in the ObjectKey of an object reference, and is used to control how a particular kind of request is processed when received by the ORB.- Specified by:
registerServerRequestDispatcher
in interfaceRequestDispatcherRegistry
- Parameters:
ssc
- Dispatcher to registerscid
- id to register with
-
registerServerRequestDispatcher
Description copied from interface:RequestDispatcherRegistry
Register a CorbaServerRequestDispatcher for handling an explicit object key name. This is used for non-standard invocations such as INS and the bootstrap name service.- Specified by:
registerServerRequestDispatcher
in interfaceRequestDispatcherRegistry
- Parameters:
scc
- Dispatcher to registername
- Name to register with
-
registerObjectAdapterFactory
Description copied from interface:RequestDispatcherRegistry
Register an ObjectAdapterFactory for a particular subcontract ID. This controls how Object references are created and managed.- Specified by:
registerObjectAdapterFactory
in interfaceRequestDispatcherRegistry
- Parameters:
oaf
- factory to registerscid
- id of factory
-
getServerRequestDispatcher
Description copied from interface:RequestDispatcherRegistry
Get the CorbaServerRequestDispatcher for subcontract ID scid.- Specified by:
getServerRequestDispatcher
in interfaceRequestDispatcherRegistry
- Parameters:
scid
- ID to use to look up- Returns:
- Found Dispatcher
-
getServerRequestDispatcher
Description copied from interface:RequestDispatcherRegistry
Get the CorbaServerRequestDispatcher for a particular object key.- Specified by:
getServerRequestDispatcher
in interfaceRequestDispatcherRegistry
- Parameters:
name
- Name of dispatcher- Returns:
- The retrieved Dispatcher
-
getLocalClientRequestDispatcherFactory
Description copied from interface:RequestDispatcherRegistry
Get the LocalClientRequestDispatcher for subcontract ID scid.- Specified by:
getLocalClientRequestDispatcherFactory
in interfaceRequestDispatcherRegistry
- Parameters:
scid
- ID to tuse to look up- Returns:
- found Dispatcher
-
getClientRequestDispatcher
Description copied from interface:RequestDispatcherRegistry
Get the ClientRequestDispatcher for subcontract ID scid.- Specified by:
getClientRequestDispatcher
in interfaceRequestDispatcherRegistry
- Parameters:
scid
- ID of the relevant Dispatcher- Returns:
- found Dispatcher
-
getObjectAdapterFactory
Description copied from interface:RequestDispatcherRegistry
Get the ObjectAdapterFactory for a particular subcontract ID scid.- Specified by:
getObjectAdapterFactory
in interfaceRequestDispatcherRegistry
- Parameters:
scid
- id of of factory- Returns:
- relevant factory
-
getObjectAdapterFactories
Description copied from interface:RequestDispatcherRegistry
Return the set of all ObjectAdapterFactory instances that are registered.- Specified by:
getObjectAdapterFactories
in interfaceRequestDispatcherRegistry
- Returns:
- All registered factories
-