Class BitpreservationUpdateThread
- java.lang.Object
-
- java.lang.Thread
-
- dk.netarkivet.archive.webinterface.BitpreservationUpdateThread
-
- All Implemented Interfaces:
java.lang.Runnable
public class BitpreservationUpdateThread extends java.lang.Thread
Class for threading a bitpreservation update into a thread.
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Logger
log
The log.
-
Constructor Summary
Constructors Constructor Description BitpreservationUpdateThread(Replica replica, BitpreservationUpdateType updateType)
Constructor for the BitpreservationUpdateThread.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
Starts the updatethread thread.-
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
-
-
-
-
Field Detail
-
log
protected static final org.slf4j.Logger log
The log.
-
-
Constructor Detail
-
BitpreservationUpdateThread
public BitpreservationUpdateThread(Replica replica, BitpreservationUpdateType updateType) throws ArgumentNotValid
Constructor for the BitpreservationUpdateThread.- Parameters:
replica
- The given replica to work on.updateType
- The type of update requested.- Throws:
ArgumentNotValid
- If either the Replica or the BitpreservationUpdateType is null.
-
-
Method Detail
-
run
public void run()
Starts the updatethread thread.- Specified by:
run
in interfacejava.lang.Runnable
- Overrides:
run
in classjava.lang.Thread
-
-