Class RunningFlowsRegistry

    • Method Detail

      • initialize

        protected void initialize()
        Initializes the members.
      • finishInit

        protected void finishInit()
        Gets called after the initialization has finished.
      • size

        public int size()
        Returns the number of flows registered.
        Returns:
        the number of flows
      • addFlow

        public void addFlow​(Flow flow)
        Adds the flow to the internal list of registered flows.
        Parameters:
        flow - the flow to add
      • getFlow

        public Flow getFlow​(int id)
        Returns the flow associated with the ID.
        Parameters:
        id - the ID of the flow to retrieve
        Returns:
        the associated flow, null if none available for that ID
      • removeFlow

        public void removeFlow​(int id)
        Removes the flow from the internal list of registered flows.
        Parameters:
        id - the if of the flow to remove
      • removeFlow

        public void removeFlow​(Flow flow)
        Removes the flow from the internal list of registered flows.
        Parameters:
        flow - the flow to remove
      • flows

        public Flow[] flows()
        Returns the currently registered flows.
        Returns:
        the current flows
      • ids

        public Integer[] ids()
        Returns the IDs of the currently registered flows.
        Returns:
        the IDs of the current flows
      • purge

        public void purge()
        Removes all stopped flows.
      • getSingleton

        public static RunningFlowsRegistry getSingleton()
        Returns the singleton.
        Returns:
        the singleon