public final class TaskUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
disableBackend(String backendID)
Disables a backend using an internal modify operation on the backend configuration entry.
|
static void |
enableBackend(String backendID)
Enables a backend using an internal modify operation on the backend configuration entry.
|
static Map<String,Entry> |
getBackendConfigEntries()
Get all the backend configuration entries defined in the server mapped by their backend ID.
|
static String |
getBackendID(Entry configEntry)
Get the backend ID of a backend configuration entry.
|
static BackendCfg |
getConfigEntry(LocalBackend<?> backend)
Get the configuration entry for a given backend.
|
public static String getBackendID(Entry configEntry)
configEntry
- A backend configuration entry.public static Map<String,Entry> getBackendConfigEntries()
public static BackendCfg getConfigEntry(LocalBackend<?> backend)
backend
- The backend whose configuration entry is wanted.public static void enableBackend(String backendID) throws LdapException
backendID
- Identifies the backend to be enabled.LdapException
- If the internal modify operation failed.public static void disableBackend(String backendID) throws LdapException
backendID
- Identifies the backend to be disabled.LdapException
- If the internal modify operation failed.Copyright 2010-2018 ForgeRock AS.