Class DefaultTicketPoolManager

    • Field Detail

    • Constructor Detail

      • DefaultTicketPoolManager

        public DefaultTicketPoolManager()
    • Method Detail

      • exists

        public boolean exists​(java.lang.String id)
        Description copied from interface: TicketPoolManager
        Checks if the ticket pool with the corresponding id exists.
        Specified by:
        exists in interface TicketPoolManager
        Parameters:
        id - ticket pool id
        Returns:
        true is the ticket pool with the corresponding id exists.
      • getTicketPool

        public TicketPool getTicketPool​(java.lang.String id)
        Description copied from interface: TicketPoolManager
        Returns the ticket pool with the corresponding ticket pool id.
        Specified by:
        getTicketPool in interface TicketPoolManager
        Parameters:
        id - ticket pool id
        Returns:
        the ticket pool or null if non-existent
      • obtainAndReturnTicketPoolId

        public java.lang.String obtainAndReturnTicketPoolId​(Workflow<?> wf)
        For testing..
        Parameters:
        wf - For this workflow, the corresponding ticketPool is searched and then a ticket is obtained from this pool.
        Returns:
        id of the ticket pool.
      • addMapping

        public void addMapping​(java.lang.String workflowClass,
                               java.lang.String ticketPoolId)
        Specified by:
        addMapping in interface TicketPoolManager
      • setMapping

        public void setMapping​(java.util.Map<java.lang.String,​java.lang.String> mapping)
        Specified by:
        setMapping in interface TicketPoolManager
      • obtain

        public void obtain​(java.lang.String workflowClass)
        Specified by:
        obtain in interface TicketPoolManager
      • release

        public void release​(java.lang.String workflowClass)
        Specified by:
        release in interface TicketPoolManager