public class BatchExecuter extends Thread
Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
log
The log.
|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
BatchExecuter(FileBatchJob job,
String pattern,
Replica replica)
The constructor.
|
Modifier and Type | Method and 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).
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
protected final org.slf4j.Logger log
public BatchExecuter(FileBatchJob job, String pattern, Replica replica) throws ArgumentNotValid
job
- The batchjob to execute.pattern
- The regular expression pattern.replica
- The replica where the batchjob should be executed.ArgumentNotValid
- If any of the arguments are null.public void run() throws IOFailure
public static Set<Map.Entry<String,String>> getRunningBatchjobs()
Copyright © 2005–2015 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.