Class OICompressor

java.lang.Object
java.lang.Thread
com.nt.udc.ndk.util.OICompressor
All Implemented Interfaces:
Runnable

public class OICompressor extends Thread
  • Field Details

    • compressionRunning

      protected boolean compressionRunning
    • delay

      protected int delay
    • filesToCompress

      protected Vector 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

      protected String errMesg
    • logger

      protected LoggerIfc logger
    • ZIPPED_EXT

      protected String ZIPPED_EXT
    • outputDir

      protected String outputDir
    • healthy

      protected boolean healthy
    • filesToTransfer

      protected Vector filesToTransfer
  • Constructor Details

  • Method Details

    • getCompressDirName

      public String getCompressDirName()
    • getCompressDir

      public File getCompressDir()
    • getZipExtension

      public String getZipExtension()
    • setFiles

      public void setFiles(Vector fileNames)
      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

      public void setFtpPusher(AbstractOIFtpPusher pusher)
    • shutdown

      public void shutdown()
    • run

      public void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • zipFile

      protected void zipFile(File in, File out) throws Exception
      Throws:
      Exception
    • isHealthy

      public boolean isHealthy()