|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opends.server.loggers.ZIPAction
public class ZIPAction
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 |
|---|
public ZIPAction(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 PostRotationActiontrue if the compression was successful, or
false if it was not.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||