Package org.opends.server.tools
Class BackendCreationHelper
- java.lang.Object
-
- org.opends.server.tools.BackendCreationHelper
-
public class BackendCreationHelper extends Object
Utility class which can be used by tools to create a new backend with default indexes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBackendCreationHelper.CreateIndexDescribes an attribute index which should be created during installation.
-
Field Summary
Fields Modifier and Type Field Description static BackendCreationHelper.CreateIndex[]DEFAULT_INDEXESDefault indexes to add in a new backend.
-
Constructor Summary
Constructors Constructor Description BackendCreationHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcreateBackendOffline(String backendName, Collection<DN> baseDNs, ManagedObjectDefinition<? extends BackendCfgClient,? extends BackendCfg> backendType)Add a new backend with the provided name in the config.ldif file.static voidcreateBackendOnline(String backendName, Collection<DN> baseDNs, ManagedObjectDefinition<? extends BackendCfgClient,? extends BackendCfg> backendType, ConnectionWrapper conn)Add a new backend with the provided name in the config.ldif file.
-
-
-
Field Detail
-
DEFAULT_INDEXES
public static final BackendCreationHelper.CreateIndex[] DEFAULT_INDEXES
Default indexes to add in a new backend.
-
-
Method Detail
-
createBackendOffline
public static void createBackendOffline(String backendName, Collection<DN> baseDNs, ManagedObjectDefinition<? extends BackendCfgClient,? extends BackendCfg> backendType) throws Exception
Add a new backend with the provided name in the config.ldif file.- Parameters:
backendName- The new backend namebaseDNs- The base dns to add in the new backend.backendType- The backend type- Throws:
Exception- If any problems occurred
-
createBackendOnline
public static void createBackendOnline(String backendName, Collection<DN> baseDNs, ManagedObjectDefinition<? extends BackendCfgClient,? extends BackendCfg> backendType, ConnectionWrapper conn) throws Exception
Add a new backend with the provided name in the config.ldif file.- Parameters:
backendName- The new backend namebaseDNs- The base dns to add in the new backend.backendType- The backend typeconn- The connection to the server- Throws:
Exception- If any problems occurred
-
-