org.opends.server.loggers
Class ZIPAction

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

public class ZIPAction
extends java.lang.Object
implements PostRotationAction

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


Constructor Summary
ZIPAction(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

ZIPAction

public ZIPAction(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 was successful, or false if it was not.