Package org.opends.server.backends
Class ConfigurationBackend.ConfigurationBackendCfg
- java.lang.Object
-
- org.opends.server.backends.ConfigurationBackend.ConfigurationBackendCfg
-
- All Implemented Interfaces:
Configuration
,BackendCfg
,LocalBackendCfg
- Enclosing class:
- ConfigurationBackend
public final class ConfigurationBackend.ConfigurationBackendCfg extends Object implements LocalBackendCfg
DummyBackendCfg
implementation for theConfigurationBackend
. No config is needed for this specific backend, but this class is required to behave like other backends during initialization.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChangeListener(ConfigurationChangeListener<BackendCfg> listener)
Register to be notified when this Backend is changed.void
addLocalChangeListener(ConfigurationChangeListener<LocalBackendCfg> listener)
Register to be notified when this Local Backend is changed.Class<? extends LocalBackendCfg>
configurationClass()
Gets the configuration class associated with this Local Backend.Dn
dn()
Gets the DN of the LDAP entry associated with this configuration.String
getBackendId()
Gets the "backend-id" property.String
getJavaClass()
Gets the "java-class" property.LocalBackendCfgDefn.WritabilityMode
getWritabilityMode()
Gets the "writability-mode" property.boolean
isEnabled()
Gets the "enabled" property.void
removeChangeListener(ConfigurationChangeListener<BackendCfg> listener)
Deregister an existing Backend configuration change listener.void
removeLocalChangeListener(ConfigurationChangeListener<LocalBackendCfg> listener)
Deregister an existing Local Backend configuration change listener.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.forgerock.opendj.config.Configuration
name
-
-
-
-
Method Detail
-
dn
public Dn dn()
Description copied from interface:Configuration
Gets the DN of the LDAP entry associated with this configuration.- Specified by:
dn
in interfaceConfiguration
- Returns:
- The DN of the LDAP entry associated with this configuration.
-
configurationClass
public Class<? extends LocalBackendCfg> configurationClass()
Description copied from interface:LocalBackendCfg
Gets the configuration class associated with this Local Backend.- Specified by:
configurationClass
in interfaceBackendCfg
- Specified by:
configurationClass
in interfaceConfiguration
- Specified by:
configurationClass
in interfaceLocalBackendCfg
- Returns:
- Returns the configuration class associated with this Local Backend.
-
getBackendId
public String getBackendId()
Description copied from interface:BackendCfg
Gets the "backend-id" property.Specifies a name to identify the associated backend.
The name must be unique among all backends in the server. The backend ID may not be altered after the backend is created in the server.
- Specified by:
getBackendId
in interfaceBackendCfg
- Returns:
- Returns the value of the "backend-id" property.
-
isEnabled
public boolean isEnabled()
Description copied from interface:BackendCfg
Gets the "enabled" property.Indicates whether the backend is enabled in the server.
If a backend is not enabled, then its contents are not accessible when processing operations.
- Specified by:
isEnabled
in interfaceBackendCfg
- Returns:
- Returns the value of the "enabled" property.
-
getJavaClass
public String getJavaClass()
Description copied from interface:BackendCfg
Gets the "java-class" property.Specifies the fully-qualified name of the Java class that provides the backend implementation.
- Specified by:
getJavaClass
in interfaceBackendCfg
- Returns:
- Returns the value of the "java-class" property.
-
getWritabilityMode
public LocalBackendCfgDefn.WritabilityMode getWritabilityMode()
Description copied from interface:LocalBackendCfg
Gets the "writability-mode" property.Specifies the behavior that the backend should use when processing write operations.
- Specified by:
getWritabilityMode
in interfaceLocalBackendCfg
- Returns:
- Returns the value of the "writability-mode" property.
-
addChangeListener
public void addChangeListener(ConfigurationChangeListener<BackendCfg> listener)
Description copied from interface:BackendCfg
Register to be notified when this Backend is changed.- Specified by:
addChangeListener
in interfaceBackendCfg
- Parameters:
listener
- The Backend configuration change listener.
-
removeChangeListener
public void removeChangeListener(ConfigurationChangeListener<BackendCfg> listener)
Description copied from interface:BackendCfg
Deregister an existing Backend configuration change listener.- Specified by:
removeChangeListener
in interfaceBackendCfg
- Parameters:
listener
- The Backend configuration change listener.
-
addLocalChangeListener
public void addLocalChangeListener(ConfigurationChangeListener<LocalBackendCfg> listener)
Description copied from interface:LocalBackendCfg
Register to be notified when this Local Backend is changed.- Specified by:
addLocalChangeListener
in interfaceLocalBackendCfg
- Parameters:
listener
- The Local Backend configuration change listener.
-
removeLocalChangeListener
public void removeLocalChangeListener(ConfigurationChangeListener<LocalBackendCfg> listener)
Description copied from interface:LocalBackendCfg
Deregister an existing Local Backend configuration change listener.- Specified by:
removeLocalChangeListener
in interfaceLocalBackendCfg
- Parameters:
listener
- The Local Backend configuration change listener.
-
-