Class BatchExecuter
- java.lang.Object
-
- java.lang.Thread
-
- dk.netarkivet.archive.webinterface.BatchExecuter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
Fields Modifier and Type Field Description protected org.slf4j.Logger
log
The log.-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description BatchExecuter(FileBatchJob job, String pattern, Replica replica)
The constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Set<Map.Entry<String,String>>
getRunningBatchjobs()
Method for retrieving the data for the running batchjobs.void
run()
Execution of the batchjob in its own thread (use start() instead).-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
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).
-
-