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>
CSRegistry
protected int
defaultId
private org.glassfish.pfl.basic.contain.DenseIntMapImpl<LocalClientRequestDispatcherFactory>
LCSFRegistry
private org.glassfish.pfl.basic.contain.DenseIntMapImpl<ObjectAdapterFactory>
OAFRegistry
private java.util.Set<ObjectAdapterFactory>
objectAdapterFactories
private java.util.Set<ObjectAdapterFactory>
objectAdapterFactoriesView
private org.glassfish.pfl.basic.contain.DenseIntMapImpl<ServerRequestDispatcher>
SDRegistry
private 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 ClientRequestDispatcher
getClientRequestDispatcher(int scid)
Get the ClientRequestDispatcher for subcontract ID scid.LocalClientRequestDispatcherFactory
getLocalClientRequestDispatcherFactory(int scid)
Get the LocalClientRequestDispatcher for subcontract ID scid.java.util.Set<ObjectAdapterFactory>
getObjectAdapterFactories()
Return the set of all ObjectAdapterFactory instances that are registered.ObjectAdapterFactory
getObjectAdapterFactory(int scid)
Get the ObjectAdapterFactory for a particular subcontract ID scid.ServerRequestDispatcher
getServerRequestDispatcher(int scid)
Get the CorbaServerRequestDispatcher for subcontract ID scid.ServerRequestDispatcher
getServerRequestDispatcher(java.lang.String name)
Get the CorbaServerRequestDispatcher for a particular object key.void
registerClientRequestDispatcher(ClientRequestDispatcher csc, int scid)
Register a ClientRequestDispatcher for a particular subcontract ID.void
registerLocalClientRequestDispatcherFactory(LocalClientRequestDispatcherFactory csc, int scid)
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
registerServerRequestDispatcher(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: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
public void registerServerRequestDispatcher(ServerRequestDispatcher ssc, int scid)
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
public void registerServerRequestDispatcher(ServerRequestDispatcher scc, java.lang.String name)
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
public void registerObjectAdapterFactory(ObjectAdapterFactory oaf, int scid)
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
public ServerRequestDispatcher getServerRequestDispatcher(int scid)
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
public ServerRequestDispatcher getServerRequestDispatcher(java.lang.String name)
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
public LocalClientRequestDispatcherFactory getLocalClientRequestDispatcherFactory(int scid)
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
public ClientRequestDispatcher getClientRequestDispatcher(int scid)
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
public ObjectAdapterFactory getObjectAdapterFactory(int scid)
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
public java.util.Set<ObjectAdapterFactory> 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
-
-