Package org.jboss.as.controller.audit
Class AbstractFileAuditLogHandler
java.lang.Object
org.jboss.as.controller.audit.AbstractFileAuditLogHandler
- Direct Known Subclasses:
FileAuditLogHandler,PeriodicRotatingFileAuditLogHandler,SizeRotatingFileAuditLogHandler
All methods on this class should be called with
ManagedAuditLoggerImpl's lock taken.- Author:
- Kabir Khan, Ivo Studensky
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractFileAuditLogHandler(String name, String formatterName, int maxFailureCount, PathManagerService pathManager, String path, String relativeTo) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidcreateNewFile(File file) This creates a new audit log file with default permissions.protected abstract voidinitializeAtStartup(File file) protected voidprotected abstract voidrotateLogFile(File file) voidsetFormatterName(String formatterName) voidsetMaxFailureCount(int count)
-
Field Details
-
LINE_TERMINATOR
protected static final byte[] LINE_TERMINATOR -
name
-
-
Constructor Details
-
AbstractFileAuditLogHandler
public AbstractFileAuditLogHandler(String name, String formatterName, int maxFailureCount, PathManagerService pathManager, String path, String relativeTo)
-
-
Method Details
-
initializeAtStartup
-
rotateLogFile
-
copyFile
- Throws:
IOException
-
rename
- Throws:
IOException
-
createNewFile
This creates a new audit log file with default permissions.- Parameters:
file- File to create
-
setMaxFailureCount
public void setMaxFailureCount(int count) -
setFormatterName
-