Class CalculateDirectorySizeThread
- java.lang.Object
-
- java.lang.Thread
-
- de.ipk_gatersleben.bit.bi.edal.primary_data.EdalThread
-
- de.ipk_gatersleben.bit.bi.edal.primary_data.file.implementation.CalculateDirectorySizeThread
-
- All Implemented Interfaces:
java.lang.Runnable
public class CalculateDirectorySizeThread extends EdalThread
Thread to calculate the size of directories within aPublicReference
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.Map<java.lang.String,java.lang.String>
directoryFiles
static java.util.Map<java.lang.String,java.lang.Long>
directorySizes
static java.util.Map<java.lang.String,java.lang.String>
referenceContent
static long
totalVolumeDataStock
-
Constructor Summary
Constructors Constructor Description CalculateDirectorySizeThread()
-
Method Summary
Modifier and Type Method Description void
done()
Finish theCalculateDirectorySizeThread
an shutdown theScheduler
.org.quartz.Scheduler
getScheduler()
Getter for theScheduler
void
run()
Start theCalculateDirectorySizeThread
by starting theScheduler
and run theCalculateDirectorySizeJob
.-
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
-
directorySizes
public static java.util.Map<java.lang.String,java.lang.Long> directorySizes
-
directoryFiles
public static java.util.Map<java.lang.String,java.lang.String> directoryFiles
-
totalVolumeDataStock
public static long totalVolumeDataStock
-
referenceContent
public static java.util.Map<java.lang.String,java.lang.String> referenceContent
-
-
Method Detail
-
done
public void done()
Finish theCalculateDirectorySizeThread
an shutdown theScheduler
.
-
getScheduler
public org.quartz.Scheduler getScheduler()
Getter for theScheduler
- Returns:
- the scheduler
-
run
public void run()
Start theCalculateDirectorySizeThread
by starting theScheduler
and run theCalculateDirectorySizeJob
.- Specified by:
run
in interfacejava.lang.Runnable
- Overrides:
run
in classjava.lang.Thread
-
-