Package com.sun.corba.ee.impl.protocol
Class RequestDispatcherRegistryImpl
- java.lang.Object
-
- com.sun.corba.ee.impl.protocol.RequestDispatcherRegistryImpl
-
- All Implemented Interfaces:
RequestDispatcherRegistry
public class RequestDispatcherRegistryImpl extends java.lang.Object implements RequestDispatcherRegistry
This is a registry of all subcontract ID dependent objects. This includes: LocalClientRequestDispatcherFactory, ClientRequestDispatcher, ServerSubcontract, and ObjectAdapterFactory.
-
-
Field Summary
Fields Modifier and Type Field Description private org.glassfish.pfl.basic.contain.DenseIntMapImpl<ClientRequestDispatcher>CSRegistryprotected intdefaultIdprivate org.glassfish.pfl.basic.contain.DenseIntMapImpl<LocalClientRequestDispatcherFactory>LCSFRegistryprivate org.glassfish.pfl.basic.contain.DenseIntMapImpl<ObjectAdapterFactory>OAFRegistryprivate java.util.Set<ObjectAdapterFactory>objectAdapterFactoriesprivate java.util.Set<ObjectAdapterFactory>objectAdapterFactoriesViewprivate org.glassfish.pfl.basic.contain.DenseIntMapImpl<ServerRequestDispatcher>SDRegistryprivate java.util.Map<java.lang.String,ServerRequestDispatcher>stringToServerSubcontract
-
Constructor Summary
Constructors Constructor Description RequestDispatcherRegistryImpl(int defaultId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientRequestDispatchergetClientRequestDispatcher(int scid)Get the ClientRequestDispatcher for subcontract ID scid.LocalClientRequestDispatcherFactorygetLocalClientRequestDispatcherFactory(int scid)Get the LocalClientRequestDispatcher for subcontract ID scid.java.util.Set<ObjectAdapterFactory>getObjectAdapterFactories()Return the set of all ObjectAdapterFactory instances that are registered.ObjectAdapterFactorygetObjectAdapterFactory(int scid)Get the ObjectAdapterFactory for a particular subcontract ID scid.ServerRequestDispatchergetServerRequestDispatcher(int scid)Get the CorbaServerRequestDispatcher for subcontract ID scid.ServerRequestDispatchergetServerRequestDispatcher(java.lang.String name)Get the CorbaServerRequestDispatcher for a particular object key.voidregisterClientRequestDispatcher(ClientRequestDispatcher csc, int scid)Register a ClientRequestDispatcher for a particular subcontract ID.voidregisterLocalClientRequestDispatcherFactory(LocalClientRequestDispatcherFactory csc, int scid)Register 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.voidregisterServerRequestDispatcher(ServerRequestDispatcher scc, java.lang.String name)Register a CorbaServerRequestDispatcher for handling an explicit object key name.
-
-
-
Field Detail
-
defaultId
protected int defaultId
-
SDRegistry
private org.glassfish.pfl.basic.contain.DenseIntMapImpl<ServerRequestDispatcher> SDRegistry
-
CSRegistry
private org.glassfish.pfl.basic.contain.DenseIntMapImpl<ClientRequestDispatcher> CSRegistry
-
OAFRegistry
private org.glassfish.pfl.basic.contain.DenseIntMapImpl<ObjectAdapterFactory> OAFRegistry
-
LCSFRegistry
private org.glassfish.pfl.basic.contain.DenseIntMapImpl<LocalClientRequestDispatcherFactory> LCSFRegistry
-
objectAdapterFactories
private java.util.Set<ObjectAdapterFactory> objectAdapterFactories
-
objectAdapterFactoriesView
private java.util.Set<ObjectAdapterFactory> objectAdapterFactoriesView
-
stringToServerSubcontract
private java.util.Map<java.lang.String,ServerRequestDispatcher> stringToServerSubcontract
-
-
Method Detail
-
registerClientRequestDispatcher
public void registerClientRequestDispatcher(ClientRequestDispatcher csc, int scid)
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
public void registerServerRequestDispatcher(ServerRequestDispatcher ssc, int scid)
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
public void registerServerRequestDispatcher(ServerRequestDispatcher scc, java.lang.String name)
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
public void registerObjectAdapterFactory(ObjectAdapterFactory oaf, int scid)
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
public ServerRequestDispatcher getServerRequestDispatcher(int scid)
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
public ServerRequestDispatcher getServerRequestDispatcher(java.lang.String name)
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
public LocalClientRequestDispatcherFactory getLocalClientRequestDispatcherFactory(int scid)
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
public ClientRequestDispatcher getClientRequestDispatcher(int scid)
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
public ObjectAdapterFactory getObjectAdapterFactory(int scid)
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
public java.util.Set<ObjectAdapterFactory> getObjectAdapterFactories()
Description copied from interface:RequestDispatcherRegistryReturn the set of all ObjectAdapterFactory instances that are registered.- Specified by:
getObjectAdapterFactoriesin interfaceRequestDispatcherRegistry- Returns:
- All registered factories
-
-