org.opends.server.backends.jeb.importLDIF
Class BufferManager

java.lang.Object
  extended by org.opends.server.backends.jeb.importLDIF.BufferManager

public class BufferManager
extends java.lang.Object

Manages a shared cache among worker threads that caches substring key/value pairs to avoid DB cache access. Once the cache is above it's memory usage limit, it will start slowly flushing keys (similar to the JEB eviction process) until it is under the limit.


Constructor Summary
BufferManager(long memoryLimit, int importThreadCount)
          Create buffer manager instance.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BufferManager

public BufferManager(long memoryLimit,
                     int importThreadCount)
Create buffer manager instance.

Parameters:
memoryLimit - The memory limit.
importThreadCount - The count of import worker threads.