Class ProcessManager


  • public class ProcessManager
    extends Object
    • Constructor Detail

      • ProcessManager

        public ProcessManager()
    • Method Detail

      • shutdown

        public void shutdown()
      • queueProcess

        public void queueProcess​(Process process)
      • hasPending

        public boolean hasPending()
        Is there any process in the queue (potentially running)?
      • onDoneProcess

        public void onDoneProcess​(Process p)
      • cancelAll

        public void cancelAll()
      • getProcess

        public Process getProcess​(int processId)
        Gets the process with the given process id.
        Throws:
        IllegalArgumentException - if the process cannot be found
      • getProcess

        public Process getProcess​(ChangeDataId changeDataId)
        Gets any process that is fetching the supplied change data.
        Returns:
        null if no such process can be found
      • update

        public void update()
      • getExecutorService

        protected com.google.common.util.concurrent.ListeningExecutorService getExecutorService()