Class CompressedFileManager
- java.lang.Object
-
- org.apache.logging.log4j.core.appender.AbstractManager
-
- org.apache.logging.log4j.core.appender.OutputStreamManager
-
- org.apache.logging.log4j.core.appender.FileManager
-
- org.infinispan.commons.logging.log4j.CompressedFileManager
-
- All Implemented Interfaces:
AutoCloseable,org.apache.logging.log4j.core.layout.ByteBufferDestination
public class CompressedFileManager extends org.apache.logging.log4j.core.appender.FileManagerManages actual File I/O for the CompressedFileAppender.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCompressedFileManager(String fileName, OutputStream os, boolean append, boolean locking, String advertiseURI, org.apache.logging.log4j.core.Layout<? extends Serializable> layout, int bufferSize, boolean writerHeader)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CompressedFileManagergetFileManager(String fileName, boolean append, boolean locking, boolean bufferedIo, String advertiseUri, org.apache.logging.log4j.core.Layout<? extends Serializable> layout, int bufferSize, int compressionLevel)Returns the FileManager.-
Methods inherited from class org.apache.logging.log4j.core.appender.FileManager
createOutputStream, createParentDir, defineAttributeView, getBufferSize, getContentFormat, getFileGroup, getFileManager, getFileName, getFileOwner, getFilePermissions, isAppend, isAttributeViewEnabled, isCreateOnDemand, isLocking, write, writeToDestination
-
Methods inherited from class org.apache.logging.log4j.core.appender.OutputStreamManager
closeOutputStream, drain, flush, flushBuffer, flushDestination, getByteBuffer, getManager, getOutputStream, hasOutputStream, isOpen, releaseSub, setOutputStream, skipFooter, write, write, write, writeBytes, writeBytes, writeFooter, writeHeader
-
-
-
-
Constructor Detail
-
CompressedFileManager
protected CompressedFileManager(String fileName, OutputStream os, boolean append, boolean locking, String advertiseURI, org.apache.logging.log4j.core.Layout<? extends Serializable> layout, int bufferSize, boolean writerHeader)
-
-
Method Detail
-
getFileManager
public static CompressedFileManager getFileManager(String fileName, boolean append, boolean locking, boolean bufferedIo, String advertiseUri, org.apache.logging.log4j.core.Layout<? extends Serializable> layout, int bufferSize, int compressionLevel)
Returns the FileManager.- Parameters:
fileName- The name of the file to manage.append- true if the file should be appended to, false if it should be overwritten.locking- true if the file should be locked while writing, false otherwise.bufferedIo- true if the contents should be buffered as they are written.advertiseUri- the URI to use when advertising the filelayout- The layoutbufferSize- buffer size for buffered IOcompressionLevel- gzip compression level- Returns:
- A FileManager for the File.
-
-