Interface TaskBackendCfgClient
- All Superinterfaces:
BackendCfgClient
,ConfigurationClient
,LocalBackendCfgClient
The Task Backend provides a mechanism for scheduling tasks in the OpenDJ directory server. Tasks are intended to provide access to certain types of administrative functions in the server that may not be convenient to perform remotely.
-
Method Summary
Modifier and TypeMethodDescriptionManagedObjectDefinition<? extends TaskBackendCfgClient,
? extends TaskBackendCfg> Get the configuration definition associated with this Task Backend.Gets the "java-class" property.Gets the "notification-sender-address" property.Gets the "task-backing-file" property.Gets the "task-retention-time" property.Gets the "writability-mode" property.void
setJavaClass
(ValueOrExpression<String> value) Sets the "java-class" property.void
Sets the "notification-sender-address" property.void
Sets the "task-backing-file" property.void
Sets the "task-retention-time" property.void
Sets the "writability-mode" property.Methods inherited from interface org.forgerock.opendj.server.config.client.BackendCfgClient
getBackendId, isEnabled, setBackendId, setEnabled
Methods inherited from interface org.forgerock.opendj.config.ConfigurationClient
commit, properties
-
Method Details
-
definition
ManagedObjectDefinition<? extends TaskBackendCfgClient,? extends TaskBackendCfg> definition()Get the configuration definition associated with this Task Backend.- Specified by:
definition
in interfaceBackendCfgClient
- Specified by:
definition
in interfaceConfigurationClient
- Specified by:
definition
in interfaceLocalBackendCfgClient
- Returns:
- Returns the configuration definition associated with this Task Backend.
-
getJavaClass
Gets the "java-class" property.Specifies the fully-qualified name of the Java class that provides the backend implementation.
Default value:
org.opends.server.backends.task.TaskBackend
- Specified by:
getJavaClass
in interfaceBackendCfgClient
- Returns:
- Returns the value of the "java-class" property.
-
setJavaClass
Sets the "java-class" property.Specifies the fully-qualified name of the Java class that provides the backend implementation.
- Specified by:
setJavaClass
in interfaceBackendCfgClient
- Parameters:
value
- The value of the "java-class" property.- Throws:
PropertyException
- If the new value is invalid.
-
getNotificationSenderAddress
ValueOrExpression<String> getNotificationSenderAddress()Gets the "notification-sender-address" property.Specifies the email address to use as the sender (that is, the "From:" address) address for notification mail messages generated when a task completes execution.
- Returns:
- Returns the value of the "notification-sender-address" property.
-
setNotificationSenderAddress
Sets the "notification-sender-address" property.Specifies the email address to use as the sender (that is, the "From:" address) address for notification mail messages generated when a task completes execution.
- Parameters:
value
- The value of the "notification-sender-address" property.- Throws:
PropertyException
- If the new value is invalid.
-
getTaskBackingFile
Gets the "task-backing-file" property.Specifies the path to the backing file for storing information about the tasks configured in the server.
It may be either an absolute path or a relative path to the base of the OpenDJ directory server instance.
- Returns:
- Returns the value of the "task-backing-file" property.
-
setTaskBackingFile
@MandatoryProperty void setTaskBackingFile(ValueOrExpression<String> value) throws PropertyException Sets the "task-backing-file" property.Specifies the path to the backing file for storing information about the tasks configured in the server.
It may be either an absolute path or a relative path to the base of the OpenDJ directory server instance.
- Parameters:
value
- The value of the "task-backing-file" property.- Throws:
PropertyException
- If the new value is invalid.
-
getTaskRetentionTime
ValueOrExpression<Long> getTaskRetentionTime()Gets the "task-retention-time" property.Specifies the length of time that task entries should be retained after processing on the associated task has been completed.
Default value:
24 hours
- Returns:
- Returns the value of the "task-retention-time" property.
-
setTaskRetentionTime
Sets the "task-retention-time" property.Specifies the length of time that task entries should be retained after processing on the associated task has been completed.
- Parameters:
value
- The value of the "task-retention-time" property.- Throws:
PropertyException
- If the new value is invalid.
-
getWritabilityMode
Gets the "writability-mode" property.Specifies the behavior that the backend should use when processing write operations.
Default value:
enabled
- Specified by:
getWritabilityMode
in interfaceLocalBackendCfgClient
- Returns:
- Returns the value of the "writability-mode" property.
-
setWritabilityMode
@MandatoryProperty void setWritabilityMode(ValueOrExpression<LocalBackendCfgDefn.WritabilityMode> value) throws PropertyException Sets the "writability-mode" property.Specifies the behavior that the backend should use when processing write operations.
- Specified by:
setWritabilityMode
in interfaceLocalBackendCfgClient
- Parameters:
value
- The value of the "writability-mode" property.- Throws:
PropertyException
- If the new value is invalid.
-