Class BatchExecuter

  • All Implemented Interfaces:
    Runnable

    public class BatchExecuter
    extends Thread
    Class for execution of a batchjob in a separate thread.
    • Field Detail

      • log

        protected final org.slf4j.Logger log
        The log.
    • Constructor Detail

      • BatchExecuter

        public BatchExecuter​(FileBatchJob job,
                             String pattern,
                             Replica replica)
                      throws ArgumentNotValid
        The constructor.
        Parameters:
        job - The batchjob to execute.
        pattern - The regular expression pattern.
        replica - The replica where the batchjob should be executed.
        Throws:
        ArgumentNotValid - If any of the arguments are null.
    • Method Detail

      • run

        public void run()
                 throws IOFailure
        Execution of the batchjob in its own thread (use start() instead).
        Specified by:
        run in interface Runnable
        Overrides:
        run in class Thread
        Throws:
        IOFailure - If an IOException is caught while writing the results.
      • getRunningBatchjobs

        public static Set<Map.Entry<String,​String>> getRunningBatchjobs()
        Method for retrieving the data for the running batchjobs.
        Returns:
        The set of entries in the map.