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
DummyBackendCfgimplementation 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 voidaddChangeListener(ConfigurationChangeListener<BackendCfg> arg0)Register to be notified when this Backend is changed.voidaddLocalChangeListener(ConfigurationChangeListener<LocalBackendCfg> arg0)Register to be notified when this Local Backend is changed.Class<? extends LocalBackendCfg>configurationClass()Gets the configuration class associated with this Local Backend.DNdn()Gets the DN of the LDAP entry associated with this configuration.StringgetBackendId()Gets the "backend-id" property.SortedSet<DN>getBaseDN()Gets the "base-dn" property.StringgetJavaClass()Gets the "java-class" property.LocalBackendCfgDefn.WritabilityModegetWritabilityMode()Gets the "writability-mode" property.booleanisEnabled()Gets the "enabled" property.Stringname()Gets the RDN value of the LDAP entry associated with this configuration.voidremoveChangeListener(ConfigurationChangeListener<BackendCfg> arg0)Deregister an existing Backend configuration change listener.voidremoveLocalChangeListener(ConfigurationChangeListener<LocalBackendCfg> arg0)Deregister an existing Local Backend configuration change listener.
-
-
-
Method Detail
-
dn
public DN dn()
Description copied from interface:ConfigurationGets the DN of the LDAP entry associated with this configuration.- Specified by:
dnin interfaceConfiguration- Returns:
- The DN of the LDAP entry associated with this configuration.
-
name
public String name()
Description copied from interface:ConfigurationGets the RDN value of the LDAP entry associated with this configuration.- Specified by:
namein interfaceConfiguration- Returns:
- The RDN value of the LDAP entry associated with this configuration.
-
configurationClass
public Class<? extends LocalBackendCfg> configurationClass()
Description copied from interface:LocalBackendCfgGets the configuration class associated with this Local Backend.- Specified by:
configurationClassin interfaceBackendCfg- Specified by:
configurationClassin interfaceConfiguration- Specified by:
configurationClassin interfaceLocalBackendCfg- Returns:
- Returns the configuration class associated with this Local Backend.
-
getBackendId
public String getBackendId()
Description copied from interface:BackendCfgGets 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:
getBackendIdin interfaceBackendCfg- Returns:
- Returns the value of the "backend-id" property.
-
getBaseDN
public SortedSet<DN> getBaseDN()
Description copied from interface:BackendCfgGets the "base-dn" property.Specifies the base DN(s) for the data that the backend handles.
A single backend may be responsible for one or more base DNs. Note that no two backends may have the same base DN although one backend may have a base DN that is below a base DN provided by another backend (similar to the use of sub-suffixes in the Sun Java System Directory Server). If any of the base DNs is subordinate to a base DN for another backend, then all base DNs for that backend must be subordinate to that same base DN.
- Specified by:
getBaseDNin interfaceBackendCfg- Returns:
- Returns an unmodifiable set containing the values of the "base-dn" property.
-
isEnabled
public boolean isEnabled()
Description copied from interface:BackendCfgGets 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:
isEnabledin interfaceBackendCfg- Returns:
- Returns the value of the "enabled" property.
-
getJavaClass
public String getJavaClass()
Description copied from interface:LocalBackendCfgGets the "java-class" property.Specifies the fully-qualified name of the Java class that provides the backend implementation.
- Specified by:
getJavaClassin interfaceBackendCfg- Specified by:
getJavaClassin interfaceLocalBackendCfg- Returns:
- Returns the value of the "java-class" property.
-
getWritabilityMode
public LocalBackendCfgDefn.WritabilityMode getWritabilityMode()
Description copied from interface:LocalBackendCfgGets the "writability-mode" property.Specifies the behavior that the backend should use when processing write operations.
- Specified by:
getWritabilityModein interfaceLocalBackendCfg- Returns:
- Returns the value of the "writability-mode" property.
-
addChangeListener
public void addChangeListener(ConfigurationChangeListener<BackendCfg> arg0)
Description copied from interface:BackendCfgRegister to be notified when this Backend is changed.- Specified by:
addChangeListenerin interfaceBackendCfg- Parameters:
arg0- The Backend configuration change listener.
-
removeChangeListener
public void removeChangeListener(ConfigurationChangeListener<BackendCfg> arg0)
Description copied from interface:BackendCfgDeregister an existing Backend configuration change listener.- Specified by:
removeChangeListenerin interfaceBackendCfg- Parameters:
arg0- The Backend configuration change listener.
-
addLocalChangeListener
public void addLocalChangeListener(ConfigurationChangeListener<LocalBackendCfg> arg0)
Description copied from interface:LocalBackendCfgRegister to be notified when this Local Backend is changed.- Specified by:
addLocalChangeListenerin interfaceLocalBackendCfg- Parameters:
arg0- The Local Backend configuration change listener.
-
removeLocalChangeListener
public void removeLocalChangeListener(ConfigurationChangeListener<LocalBackendCfg> arg0)
Description copied from interface:LocalBackendCfgDeregister an existing Local Backend configuration change listener.- Specified by:
removeLocalChangeListenerin interfaceLocalBackendCfg- Parameters:
arg0- The Local Backend configuration change listener.
-
-