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.FileManager
Manages actual File I/O for the CompressedFileAppender.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.logging.log4j.core.appender.AbstractManager

    org.apache.logging.log4j.core.appender.AbstractManager.AbstractFactoryData
  • Field Summary

    Fields inherited from class org.apache.logging.log4j.core.appender.OutputStreamManager

    byteBuffer, layout

    Fields inherited from class org.apache.logging.log4j.core.appender.AbstractManager

    count, LOGGER
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    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 Summary

    Modifier and Type
    Method
    Description
    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.

    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

    Methods inherited from class org.apache.logging.log4j.core.appender.AbstractManager

    close, getCount, getLoggerContext, getManager, getName, getStrSubstitutor, hasManager, log, logDebug, logError, logger, logWarn, narrow, release, stop, updateData

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • 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 Details

    • 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 file
      layout - The layout
      bufferSize - buffer size for buffered IO
      compressionLevel - gzip compression level
      Returns:
      A FileManager for the File.