Package com.nt.udc.ndk.util
Class OICompressor
java.lang.Object
java.lang.Thread
com.nt.udc.ndk.util.OICompressor
- All Implemented Interfaces:
Runnable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected intprotected Stringprotected Vectorprotected Vectorstatic final intprotected booleanprotected LoggerIfcprotected Stringstatic final intstatic final intprotected intprotected StringFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidrun()voidAdd each file in the given list to the list of files to be compressed.voidsetFtpPusher(AbstractOIFtpPusher pusher) voidshutdown()protected voidMethods 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, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
-
Field Details
-
compressionRunning
protected boolean compressionRunning -
delay
protected int delay -
filesToCompress
-
GZIP_FORMAT
public static final int GZIP_FORMAT- See Also:
-
ZIP_FORMAT
public static final int ZIP_FORMAT- See Also:
-
UNKNOWN_FORMAT
public static final int UNKNOWN_FORMAT- See Also:
-
zipFormat
protected int zipFormat -
errMesg
-
logger
-
ZIPPED_EXT
-
outputDir
-
healthy
protected boolean healthy -
filesToTransfer
-
-
Constructor Details
-
OICompressor
- Throws:
Exception
-
-
Method Details
-
getCompressDirName
-
getCompressDir
-
getZipExtension
-
setFiles
Add each file in the given list to the list of files to be compressed.- Parameters:
fileNames- Vector of filenames which are to be compressed.
-
setFtpPusher
-
shutdown
public void shutdown() -
run
public void run() -
zipFile
- Throws:
Exception
-
isHealthy
public boolean isHealthy()
-