|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.loggers.GZIPAction
public class GZIPAction
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 |
---|
public GZIPAction(java.lang.String origFile, java.lang.String newFile, boolean deleteOrig)
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 |
---|
public boolean execute()
execute
in interface PostRotationAction
true
if the compression succeeded, or
false
if it did not.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |