public class AuditLogArchiver
extends java.lang.Object
Constructor and Description |
---|
AuditLogArchiver(AuditLog log) |
Modifier and Type | Method and Description |
---|---|
void |
compressLogs(java.io.File dir,
boolean assumeNoneRunning)
Compresses all logs that are compressable with the given directory.
|
java.io.InputStream |
getAuditLogEntry(java.io.File txnDir,
java.lang.String entryPart,
int dirDepth)
Returns an InputStream with the contents of the given file, whether
archived or not.
|
static void |
removeAllFiles(java.io.File dirToRemove) |
public AuditLogArchiver(AuditLog log)
public void compressLogs(java.io.File dir, boolean assumeNoneRunning) throws java.lang.Exception
java.lang.Exception
public java.io.InputStream getAuditLogEntry(java.io.File txnDir, java.lang.String entryPart, int dirDepth)
txnDir
- The directory containing the record, if not archivedentryPart
- the part of the audit log entry to be returneddirDepth
- the depth of the archive directories/zip filespublic static final void removeAllFiles(java.io.File dirToRemove) throws java.io.IOException
java.io.IOException