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

java.lang.Object
  extended by org.opends.server.backends.jeb.importLDIF.Importer
All Implemented Interfaces:
java.lang.Thread.UncaughtExceptionHandler

public class Importer
extends java.lang.Object
implements java.lang.Thread.UncaughtExceptionHandler

Performs a LDIF import.


Constructor Summary
Importer(LDIFImportConfig ldifImportConfig)
          Create a new import job with the specified ldif import config.
 
Method Summary
 java.lang.String getDBCacheSize()
          Return the string representation of the DB cache size.
 LDIFImportResult processImport(RootContainer rootContainer)
          Import a ldif using the specified root container.
 void uncaughtException(java.lang.Thread t, java.lang.Throwable e)
          Uncaught exception handler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Importer

public Importer(LDIFImportConfig ldifImportConfig)
Create a new import job with the specified ldif import config.

Parameters:
ldifImportConfig - The LDIF import config.
Method Detail

processImport

public LDIFImportResult processImport(RootContainer rootContainer)
                               throws com.sleepycat.je.DatabaseException,
                                      java.io.IOException,
                                      JebException,
                                      DirectoryException,
                                      ConfigException
Import a ldif using the specified root container.

Parameters:
rootContainer - The root container.
Returns:
A LDIF result.
Throws:
com.sleepycat.je.DatabaseException - If a DB error occurs.
java.io.IOException - If a IO error occurs.
JebException - If a JEB error occurs.
DirectoryException - If a directory error occurs.
ConfigException - If a configuration has an error.

uncaughtException

public void uncaughtException(java.lang.Thread t,
                              java.lang.Throwable e)
Uncaught exception handler.

Specified by:
uncaughtException in interface java.lang.Thread.UncaughtExceptionHandler
Parameters:
t - The thread working when the exception was thrown.
e - The exception.

getDBCacheSize

public java.lang.String getDBCacheSize()
Return the string representation of the DB cache size.

Returns:
DB cache size string.