org.opends.server.admin.std.meta
Class BackupBackendCfgDefn

java.lang.Object
  extended by org.opends.server.admin.AbstractManagedObjectDefinition<C,S>
      extended by org.opends.server.admin.ManagedObjectDefinition<BackupBackendCfgClient,BackupBackendCfg>
          extended by org.opends.server.admin.std.meta.BackupBackendCfgDefn

public final class BackupBackendCfgDefn
extends ManagedObjectDefinition<BackupBackendCfgClient,BackupBackendCfg>

An interface for querying the Backup Backend managed object definition meta information.

The Backup Backend provides read-only access to the set of backups that are available for the OpenDS Directory Server.


Method Summary
 BackupBackendCfgClient createClientConfiguration(ManagedObject<? extends BackupBackendCfgClient> impl)
          Creates a client configuration view of the provided managed object.
 BackupBackendCfg createServerConfiguration(ServerManagedObject<? extends BackupBackendCfg> impl)
          Creates a server configuration view of the provided server managed object.
 StringPropertyDefinition getBackendIdPropertyDefinition()
          Get the "backend-id" property definition.
 StringPropertyDefinition getBackupDirectoryPropertyDefinition()
          Get the "backup-directory" property definition.
 DNPropertyDefinition getBaseDNPropertyDefinition()
          Get the "base-dn" property definition.
 BooleanPropertyDefinition getEnabledPropertyDefinition()
          Get the "enabled" property definition.
static BackupBackendCfgDefn getInstance()
          Get the Backup Backend configuration definition singleton.
 ClassPropertyDefinition getJavaClassPropertyDefinition()
          Get the "java-class" property definition.
 java.lang.Class<BackupBackendCfg> getServerConfigurationClass()
          Gets the server configuration class instance associated with this managed object definition.
 EnumPropertyDefinition<BackendCfgDefn.WritabilityMode> getWritabilityModePropertyDefinition()
          Get the "writability-mode" property definition.
 
Methods inherited from class org.opends.server.admin.AbstractManagedObjectDefinition
getAggregationPropertyDefinition, getAggregationPropertyDefinitions, getAllAggregationPropertyDefinitions, getAllChildren, getAllConstraints, getAllPropertyDefinitions, getAllRelationDefinitions, getAllReverseAggregationPropertyDefinitions, getAllReverseRelationDefinitions, getAllTags, getChild, getChildren, getConstraints, getDescription, getDescription, getName, getParent, getPropertyDefinition, getPropertyDefinitions, getRelationDefinition, getRelationDefinitions, getReverseAggregationPropertyDefinitions, getReverseRelationDefinitions, getSynopsis, getSynopsis, getUserFriendlyName, getUserFriendlyName, getUserFriendlyPluralName, getUserFriendlyPluralName, hasChildren, hasOption, hasTag, initialize, isChildOf, isParentOf, isTop, registerConstraint, registerOption, registerPropertyDefinition, registerRelationDefinition, registerTag, resolveManagedObjectDefinition, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getInstance

public static BackupBackendCfgDefn getInstance()
Get the Backup Backend configuration definition singleton.

Returns:
Returns the Backup Backend configuration definition singleton.

createClientConfiguration

public BackupBackendCfgClient createClientConfiguration(ManagedObject<? extends BackupBackendCfgClient> impl)
Creates a client configuration view of the provided managed object. Modifications made to the underlying managed object will be reflected in the client configuration view and vice versa.

Specified by:
createClientConfiguration in class ManagedObjectDefinition<BackupBackendCfgClient,BackupBackendCfg>
Parameters:
impl - The managed object.
Returns:
Returns a client configuration view of the provided managed object.

createServerConfiguration

public BackupBackendCfg createServerConfiguration(ServerManagedObject<? extends BackupBackendCfg> impl)
Creates a server configuration view of the provided server managed object.

Specified by:
createServerConfiguration in class ManagedObjectDefinition<BackupBackendCfgClient,BackupBackendCfg>
Parameters:
impl - The server managed object.
Returns:
Returns a server configuration view of the provided server managed object.

getServerConfigurationClass

public java.lang.Class<BackupBackendCfg> getServerConfigurationClass()
Gets the server configuration class instance associated with this managed object definition.

Specified by:
getServerConfigurationClass in class ManagedObjectDefinition<BackupBackendCfgClient,BackupBackendCfg>
Returns:
Returns the server configuration class instance associated with this managed object definition.

getBackendIdPropertyDefinition

public StringPropertyDefinition getBackendIdPropertyDefinition()
Get the "backend-id" property definition.

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.

Returns:
Returns the "backend-id" property definition.

getBackupDirectoryPropertyDefinition

public StringPropertyDefinition getBackupDirectoryPropertyDefinition()
Get the "backup-directory" property definition.

Specifies the path to a backup directory containing one or more backups for a particular backend.

This is a multivalued property. Each value may specify a different backup directory if desired (one for each backend for which backups are taken). Values may be either absolute paths or paths that are relative to the base of the OpenDS Directory Server installation.

Returns:
Returns the "backup-directory" property definition.

getBaseDNPropertyDefinition

public DNPropertyDefinition getBaseDNPropertyDefinition()
Get the "base-dn" property definition.

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.

Returns:
Returns the "base-dn" property definition.

getEnabledPropertyDefinition

public BooleanPropertyDefinition getEnabledPropertyDefinition()
Get the "enabled" property definition.

Indicates whether the backend is enabled in the server.

If a backend is not enabled, then its contents are not accessible when processing operations.

Returns:
Returns the "enabled" property definition.

getJavaClassPropertyDefinition

public ClassPropertyDefinition getJavaClassPropertyDefinition()
Get the "java-class" property definition.

Specifies the fully-qualified name of the Java class that provides the backend implementation.

Returns:
Returns the "java-class" property definition.

getWritabilityModePropertyDefinition

public EnumPropertyDefinition<BackendCfgDefn.WritabilityMode> getWritabilityModePropertyDefinition()
Get the "writability-mode" property definition.

Specifies the behavior that the backend should use when processing write operations.

Returns:
Returns the "writability-mode" property definition.