public class OICompressor
extends java.lang.Thread
Modifier and Type | Field and Description |
---|---|
protected boolean |
compressionRunning |
protected int |
delay |
protected java.lang.String |
errMesg |
protected java.util.Vector |
filesToCompress |
protected java.util.Vector |
filesToTransfer |
static int |
GZIP_FORMAT |
protected boolean |
healthy |
protected LoggerIfc |
logger |
protected java.lang.String |
outputDir |
static int |
UNKNOWN_FORMAT |
static int |
ZIP_FORMAT |
protected int |
zipFormat |
protected java.lang.String |
ZIPPED_EXT |
Constructor and Description |
---|
OICompressor(LoggerIfc lgr,
int zipformat,
java.lang.String outputDir) |
Modifier and Type | Method and Description |
---|---|
java.io.File |
getCompressDir() |
java.lang.String |
getCompressDirName() |
java.lang.String |
getZipExtension() |
boolean |
isHealthy() |
void |
run() |
void |
setFiles(java.util.Vector fileNames)
Add each file in the given list to the list of files to be compressed.
|
void |
setFtpPusher(AbstractOIFtpPusher pusher) |
void |
shutdown() |
protected void |
zipFile(java.io.File in,
java.io.File out) |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
protected boolean compressionRunning
protected int delay
protected java.util.Vector filesToCompress
public static final int GZIP_FORMAT
public static final int ZIP_FORMAT
public static final int UNKNOWN_FORMAT
protected int zipFormat
protected java.lang.String errMesg
protected LoggerIfc logger
protected java.lang.String ZIPPED_EXT
protected java.lang.String outputDir
protected boolean healthy
protected java.util.Vector filesToTransfer
public OICompressor(LoggerIfc lgr, int zipformat, java.lang.String outputDir) throws java.lang.Exception
java.lang.Exception
public java.lang.String getCompressDirName()
public java.io.File getCompressDir()
public java.lang.String getZipExtension()
public void setFiles(java.util.Vector fileNames)
fileNames
- Vector of filenames which are to be compressed.public void setFtpPusher(AbstractOIFtpPusher pusher)
public void shutdown()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
protected void zipFile(java.io.File in, java.io.File out) throws java.lang.Exception
java.lang.Exception
public boolean isHealthy()