Interface POAPolicyMediator

    • Method Detail

      • getPolicies

        @ManagedAttribute
        @Description("The policies of this POA")
        Policies getPolicies()
        Return the policies object that was used to create this POAPolicyMediator.
        Returns:
        The policies of this POA
      • getScid

        @ManagedAttribute
        @Description("This POA\'s subcontract ID")
        int getScid()
        Return the subcontract ID to use in the IIOP profile in IORs created by this POAPolicyMediator's POA. This is initialized according to the policies and the POA used to construct this POAPolicyMediator in the POAPolicyMediatorFactory.
        Returns:
        This POA's subcontract ID.
      • getServerId

        @ManagedAttribute
        @Description("This POA\'s server ID")
        int getServerId()
        Return the server ID to use in the IIOP profile in IORs created by this POAPolicyMediator's POA. This is initialized according to the policies and the POA used to construct this POAPolicyMediator in the POAPolicyMediatorFactory.
        Returns:
        This POA's server ID.
      • getInvocationServant

        java.lang.Object getInvocationServant​(byte[] id,
                                              java.lang.String operation)
                                       throws ForwardRequest
        Get the servant to use for an invocation with the given id and operation.
        Parameters:
        id - the object ID for which we are requesting a servant
        operation - the name of the operation to be performed on the servant
        Returns:
        the resulting Servant.
        Throws:
        ForwardRequest - if the current ORB must forward the result.
      • returnServant

        void returnServant()
        Release a servant that was obtained from getInvocationServant.
      • etherealizeAll

        void etherealizeAll()
        Etherealize all servants associated with this POAPolicyMediator. Does nothing if the retention policy is non-retain.
      • clearAOM

        void clearAOM()
        Delete everything in the active object map.
      • getServantManager

        ServantManager getServantManager()
                                  throws WrongPolicy
        Return the servant manager. Will throw WrongPolicy if the request processing policy is not USE_SERVANT_MANAGER.
        Returns:
        The current ServantManager
        Throws:
        WrongPolicy - If the request processing policy is not USE_SERVANT_MANAGER
      • setServantManager

        void setServantManager​(ServantManager servantManager)
                        throws WrongPolicy
        Set the servant manager. Will throw WrongPolicy if the request processing policy is not USE_SERVANT_MANAGER.
        Parameters:
        servantManager - The ServantManager
        Throws:
        WrongPolicy - if the request processing policy is not USE_SERVANT_MANAGER.
      • getDefaultServant

        Servant getDefaultServant()
                           throws NoServant,
                                  WrongPolicy
        Return the default servant. Will throw WrongPolicy if the request processing policy is not USE_DEFAULT_SERVANT.
        Returns:
        the default Servant
        Throws:
        NoServant - if no Servant has been set
        WrongPolicy - if the policy is not USE_DEFAULT_SERVANT
      • setDefaultServant

        void setDefaultServant​(Servant servant)
                        throws WrongPolicy
        Set the default servant. Will throw WrongPolicy if the request processing policy is not USE_DEFAULT_SERVANT.
        Parameters:
        servant - The default Servant
        Throws:
        WrongPolicy - if the request processing policy is not USE_DEFAULT_SERVANT.
      • deactivateObject

        Servant deactivateObject​(byte[] id)
                          throws ObjectNotActive,
                                 WrongPolicy
        Deactivate the object that is associated with the given id. Returns the servant for id.
        Parameters:
        id - ID of the object to deactivate
        Returns:
        Servant for the ID
        Throws:
        ObjectNotActive - if the object was not active
        WrongPolicy - if not supported by the current policy
      • newSystemId

        byte[] newSystemId()
                    throws WrongPolicy
        Allocate a new, unique system ID. Requires the ID assignment policy to be SYSTEM.
        Returns:
        the new system ID
        Throws:
        WrongPolicy - if the ID assignment policy is not SYSTEM