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 intprivate 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.voidregisterClientRequestDispatcher(ClientRequestDispatcher csc, int scid) Register a ClientRequestDispatcher for a particular subcontract ID.voidRegister a LocalClientRequestDispatcher for a particular subcontract ID.voidregisterObjectAdapterFactory(ObjectAdapterFactory oaf, int scid) Register an ObjectAdapterFactory for a particular subcontract ID.voidregisterServerRequestDispatcher(ServerRequestDispatcher ssc, int scid) Register a CorbaServerRequestDispatcher for a particular subcontract ID.voidRegister 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:RequestDispatcherRegistryRegister 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:
registerClientRequestDispatcherin interfaceRequestDispatcherRegistry- Parameters:
csc- Dispatcher to registerscid- ID to register with
-
registerLocalClientRequestDispatcherFactory
public void registerLocalClientRequestDispatcherFactory(LocalClientRequestDispatcherFactory csc, int scid) Description copied from interface:RequestDispatcherRegistryRegister 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:
registerLocalClientRequestDispatcherFactoryin interfaceRequestDispatcherRegistry- Parameters:
csc- DispatcherFactory to registerscid- ID of factory
-
registerServerRequestDispatcher
Description copied from interface:RequestDispatcherRegistryRegister 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:
registerServerRequestDispatcherin interfaceRequestDispatcherRegistry- Parameters:
ssc- Dispatcher to registerscid- id to register with
-
registerServerRequestDispatcher
Description copied from interface:RequestDispatcherRegistryRegister 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:
registerServerRequestDispatcherin interfaceRequestDispatcherRegistry- Parameters:
scc- Dispatcher to registername- Name to register with
-
registerObjectAdapterFactory
Description copied from interface:RequestDispatcherRegistryRegister an ObjectAdapterFactory for a particular subcontract ID. This controls how Object references are created and managed.- Specified by:
registerObjectAdapterFactoryin interfaceRequestDispatcherRegistry- Parameters:
oaf- factory to registerscid- id of factory
-
getServerRequestDispatcher
Description copied from interface:RequestDispatcherRegistryGet the CorbaServerRequestDispatcher for subcontract ID scid.- Specified by:
getServerRequestDispatcherin interfaceRequestDispatcherRegistry- Parameters:
scid- ID to use to look up- Returns:
- Found Dispatcher
-
getServerRequestDispatcher
Description copied from interface:RequestDispatcherRegistryGet the CorbaServerRequestDispatcher for a particular object key.- Specified by:
getServerRequestDispatcherin interfaceRequestDispatcherRegistry- Parameters:
name- Name of dispatcher- Returns:
- The retrieved Dispatcher
-
getLocalClientRequestDispatcherFactory
Description copied from interface:RequestDispatcherRegistryGet the LocalClientRequestDispatcher for subcontract ID scid.- Specified by:
getLocalClientRequestDispatcherFactoryin interfaceRequestDispatcherRegistry- Parameters:
scid- ID to tuse to look up- Returns:
- found Dispatcher
-
getClientRequestDispatcher
Description copied from interface:RequestDispatcherRegistryGet the ClientRequestDispatcher for subcontract ID scid.- Specified by:
getClientRequestDispatcherin interfaceRequestDispatcherRegistry- Parameters:
scid- ID of the relevant Dispatcher- Returns:
- found Dispatcher
-
getObjectAdapterFactory
Description copied from interface:RequestDispatcherRegistryGet the ObjectAdapterFactory for a particular subcontract ID scid.- Specified by:
getObjectAdapterFactoryin interfaceRequestDispatcherRegistry- Parameters:
scid- id of of factory- Returns:
- relevant factory
-
getObjectAdapterFactories
Description copied from interface:RequestDispatcherRegistryReturn the set of all ObjectAdapterFactory instances that are registered.- Specified by:
getObjectAdapterFactoriesin interfaceRequestDispatcherRegistry- Returns:
- All registered factories
-