org.opends.server.backends.jeb
Class DataConfig

java.lang.Object
  extended by org.opends.server.backends.jeb.DataConfig

public class DataConfig
extends java.lang.Object

Configuration class to indicate desired compression and cryptographic options for the data stored in the database.


Constructor Summary
DataConfig(boolean compressed, boolean compactEncoding, JECompressedSchema compressedSchema)
          Constrct a new DataConfig object with the specified settings.
 
Method Summary
 EntryEncodeConfig getEntryEncodeConfig()
          Get the EntryEncodeConfig object in use by this configuration.
 boolean isCompactEncoding()
          Determine whether entries should be encoded with the compact form before writing to the database.
 boolean isCompressed()
          Determine whether data should be compressed before writing to the database.
 void setCompactEncoding(boolean compactEncoding, JECompressedSchema compressedSchema)
          Configure whether data should be encoded with the compact form before writing to the database.
 void setCompressed(boolean compressed)
          Configure whether data should be compressed before writing to the database.
 java.lang.String toString()
          Get a string representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataConfig

public DataConfig(boolean compressed,
                  boolean compactEncoding,
                  JECompressedSchema compressedSchema)
Constrct a new DataConfig object with the specified settings.

Parameters:
compressed - true if data should be compressed, false if not.
compactEncoding - true if data should be encoded in compact form, false if not.
compressedSchema - the compressed schema manager to use. It must not be null if compactEncoding is true.
Method Detail

isCompressed

public boolean isCompressed()
Determine whether data should be compressed before writing to the database.

Returns:
true if data should be compressed, false if not.

isCompactEncoding

public boolean isCompactEncoding()
Determine whether entries should be encoded with the compact form before writing to the database.

Returns:
true if data should be encoded in the compact form.

setCompressed

public void setCompressed(boolean compressed)
Configure whether data should be compressed before writing to the database.

Parameters:
compressed - true if data should be compressed, false if not.

setCompactEncoding

public void setCompactEncoding(boolean compactEncoding,
                               JECompressedSchema compressedSchema)
Configure whether data should be encoded with the compact form before writing to the database.

Parameters:
compactEncoding - true if data should be encoded in compact form, false if not.
compressedSchema - The compressed schema manager to use. It must not be null if compactEncoding is true.

getEntryEncodeConfig

public EntryEncodeConfig getEntryEncodeConfig()
Get the EntryEncodeConfig object in use by this configuration.

Returns:
the EntryEncodeConfig object in use by this configuration.

toString

public java.lang.String toString()
Get a string representation of this object.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.