public static final class CommitLog.Configuration
extends java.lang.Object
Constructor and Description |
---|
Configuration(ParameterizedClass compressorClass,
EncryptionContext encryptionContext) |
Modifier and Type | Method and Description |
---|---|
ICompressor |
getCompressor()
Returns the compressor used to compress the segments.
|
ParameterizedClass |
getCompressorClass()
Returns the compressor class.
|
java.lang.String |
getCompressorName()
Returns the compressor name.
|
EncryptionContext |
getEncryptionContext()
Returns the encryption context used to encrypt the segments.
|
boolean |
useCompression()
Checks if the segments must be compressed.
|
boolean |
useEncryption()
Checks if the segments must be encrypted.
|
public Configuration(ParameterizedClass compressorClass, EncryptionContext encryptionContext)
public boolean useCompression()
true
if the segments must be compressed, false
otherwise.public boolean useEncryption()
true
if the segments must be encrypted, false
otherwise.public ICompressor getCompressor()
public ParameterizedClass getCompressorClass()
public java.lang.String getCompressorName()
public EncryptionContext getEncryptionContext()
Copyright © 2009- The Apache Software Foundation