org.opends.server.loggers
Class GZIPAction

java.lang.Object
  extended by org.opends.server.loggers.GZIPAction
All Implemented Interfaces:
PostRotationAction

public class GZIPAction
extends java.lang.Object
implements PostRotationAction

This class implements a post rotation action that compresses the file using GZIP compression.


Constructor Summary
GZIPAction(java.lang.String origFile, java.lang.String newFile, boolean deleteOrig)
          Create the action based on the original file, the new file after compression and whether the original file should be deleted.
 
Method Summary
 boolean execute()
          The compression action that is executed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GZIPAction

public GZIPAction(java.lang.String origFile,
                  java.lang.String newFile,
                  boolean deleteOrig)
Create the action based on the original file, the new file after compression and whether the original file should be deleted.

Parameters:
origFile - The source file name to compress.
newFile - The compressed file name.
deleteOrig - Whether the source file should be deleted after compression or not.
Method Detail

execute

public boolean execute()
The compression action that is executed. Returns true if the compression succeeded and false otherwise.

Specified by:
execute in interface PostRotationAction
Returns:
true if the compression succeeded, or false if it did not.