Interface RequestDispatcherRegistry

  • All Known Implementing Classes:
    RequestDispatcherRegistryImpl

    public interface RequestDispatcherRegistry
    This is a registry of all subcontract ID dependent objects. This includes: LocalClientRequestDispatcherFactory, ClientRequestDispatcher, ServerRequestDispatcher, and ObjectAdapterFactory.
    • Method Detail

      • registerClientRequestDispatcher

        void registerClientRequestDispatcher​(ClientRequestDispatcher csc,
                                             int scid)
        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.
        Parameters:
        csc - Dispatcher to register
        scid - ID to register with
      • getClientRequestDispatcher

        ClientRequestDispatcher getClientRequestDispatcher​(int scid)
        Get the ClientRequestDispatcher for subcontract ID scid.
        Parameters:
        scid - ID of the relevant Dispatcher
        Returns:
        found Dispatcher
      • registerLocalClientRequestDispatcherFactory

        void registerLocalClientRequestDispatcherFactory​(LocalClientRequestDispatcherFactory csc,
                                                         int scid)
        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.
        Parameters:
        csc - DispatcherFactory to register
        scid - ID of factory
      • getLocalClientRequestDispatcherFactory

        LocalClientRequestDispatcherFactory getLocalClientRequestDispatcherFactory​(int scid)
        Get the LocalClientRequestDispatcher for subcontract ID scid.
        Parameters:
        scid - ID to tuse to look up
        Returns:
        found Dispatcher
      • registerServerRequestDispatcher

        void registerServerRequestDispatcher​(ServerRequestDispatcher ssc,
                                             int scid)
        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.
        Parameters:
        ssc - Dispatcher to register
        scid - id to register with
      • getServerRequestDispatcher

        ServerRequestDispatcher getServerRequestDispatcher​(int scid)
        Get the CorbaServerRequestDispatcher for subcontract ID scid.
        Parameters:
        scid - ID to use to look up
        Returns:
        Found Dispatcher
      • registerServerRequestDispatcher

        void registerServerRequestDispatcher​(ServerRequestDispatcher ssc,
                                             java.lang.String name)
        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.
        Parameters:
        ssc - Dispatcher to register
        name - Name to register with
      • getServerRequestDispatcher

        ServerRequestDispatcher getServerRequestDispatcher​(java.lang.String name)
        Get the CorbaServerRequestDispatcher for a particular object key.
        Parameters:
        name - Name of dispatcher
        Returns:
        The retrieved Dispatcher
      • registerObjectAdapterFactory

        void registerObjectAdapterFactory​(ObjectAdapterFactory oaf,
                                          int scid)
        Register an ObjectAdapterFactory for a particular subcontract ID. This controls how Object references are created and managed.
        Parameters:
        oaf - factory to register
        scid - id of factory
      • getObjectAdapterFactory

        ObjectAdapterFactory getObjectAdapterFactory​(int scid)
        Get the ObjectAdapterFactory for a particular subcontract ID scid.
        Parameters:
        scid - id of of factory
        Returns:
        relevant factory
      • getObjectAdapterFactories

        java.util.Set<ObjectAdapterFactory> getObjectAdapterFactories()
        Return the set of all ObjectAdapterFactory instances that are registered.
        Returns:
        All registered factories