Package org.javlo.utils.backup
Class BackupThread
- java.lang.Object
-
- java.lang.Thread
-
- org.javlo.utils.backup.BackupThread
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
Fields Modifier and Type Field Description static intINSTANCE_COUNTbooleanrunstatic booleanRUN-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description BackupThread(File targetFolder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBackup(BackupBean bean)protected voidfinalize()static voidmain(String[] args)voidrun()-
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
-
BackupThread
public BackupThread(File targetFolder)
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
addBackup
public void addBackup(BackupBean bean)
-
main
public static void main(String[] args) throws InterruptedException
- Throws:
InterruptedException
-
-