Class XZCompressionFilter
java.lang.Object
kieker.monitoring.writer.compression.XZCompressionFilter
- All Implemented Interfaces:
ICompressionFilter
public class XZCompressionFilter extends java.lang.Object implements ICompressionFilter
XZ compression filter for the writer pool.
- Since:
- 1.14
- Author:
- Reiner Jung, Henning Schnoor
-
Constructor Summary
Constructors Constructor Description XZCompressionFilter(Configuration configuration)
Initialize XZCompression with parameter to adhere Kieker configuration system. -
Method Summary
Modifier and Type Method Description java.io.OutputStream
chainOutputStream(java.io.OutputStream outputStream, java.nio.file.Path fileName)
Create an output stream with compression support and use the normal output stream as source.java.lang.String
getExtension()
Return the extension with leading dot.
-
Constructor Details
-
XZCompressionFilter
Initialize XZCompression with parameter to adhere Kieker configuration system.- Parameters:
configuration
- Kieker configuration object
-
-
Method Details
-
chainOutputStream
public java.io.OutputStream chainOutputStream(java.io.OutputStream outputStream, java.nio.file.Path fileName) throws java.io.IOExceptionDescription copied from interface:ICompressionFilter
Create an output stream with compression support and use the normal output stream as source.- Specified by:
chainOutputStream
in interfaceICompressionFilter
- Parameters:
outputStream
- uncompressed output streamfileName
- file name used in compression system, which also use an internal directory structure.- Returns:
- the compression output stream
- Throws:
java.io.IOException
- on file or stream errors
-
getExtension
public java.lang.String getExtension()Description copied from interface:ICompressionFilter
Return the extension with leading dot.- Specified by:
getExtension
in interfaceICompressionFilter
- Returns:
- return the extension
-