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 boolean
protected int
protected String
protected Vector
protected Vector
static final int
protected boolean
protected LoggerIfc
protected String
static final int
static final int
protected int
protected String
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
run()
void
Add each file in the given list to the list of files to be compressed.void
setFtpPusher
(AbstractOIFtpPusher pusher) void
shutdown()
protected void
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, 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()
-