org.opends.server.backends.jeb
Class EnvManager

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

public class EnvManager
extends java.lang.Object

A singleton class to manage the life-cycle of a JE database environment.


Constructor Summary
EnvManager()
           
 
Method Summary
static void createHomeDir(java.lang.String homeDir)
          Creates the environment home directory, deleting any existing data files if the directory already exists.
static void removeFiles(java.lang.String homeDir)
          Deletes all the data files associated with the environment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnvManager

public EnvManager()
Method Detail

createHomeDir

public static void createHomeDir(java.lang.String homeDir)
                          throws JebException
Creates the environment home directory, deleting any existing data files if the directory already exists. The environment must not be open.

Parameters:
homeDir - The backend home directory.
Throws:
JebException - If an error occurs in the JE backend.

removeFiles

public static void removeFiles(java.lang.String homeDir)
                        throws JebException
Deletes all the data files associated with the environment. The environment must not be open.

Parameters:
homeDir - The backend home directory
Throws:
JebException - If an error occurs in the JE backend or if the specified home directory does not exist.