Class JobPoller

    • Field Detail

      • module

        public static final java.lang.String module
    • Method Detail

      • getInstance

        public static JobPoller getInstance()
        Returns the JobPoller instance.
      • registerJobManager

        public static void registerJobManager​(JobManager jm)
        Register a JobManager with the job poller.
        jm - The JobManager to register.
        java.lang.IllegalArgumentException - if jm is null
      • getPoolState

        public java.util.Map<java.lang.String,​java.lang.Object> getPoolState()
        Returns a Map containing JobPoller statistics.
      • queueNow

        public void queueNow​(Job job)
                      throws InvalidJobException
        Adds a job to the job queue.
        InvalidJobException - if the job is in an invalid state.
        java.util.concurrent.RejectedExecutionException - if the poller is stopped.
      • stop

        public void stop()
        Stops the JobPoller. This method is called when OFBiz shuts down. The JobPoller cannot be restarted.