Class DataSpaceMonthlySnapshotScheduledTask
java.lang.Object
com.orchestranetworks.scheduler.ScheduledTask
com.apgar.common.lib.scheduledtask.DataSpaceMonthlySnapshotScheduledTask
public class DataSpaceMonthlySnapshotScheduledTask
extends com.orchestranetworks.scheduler.ScheduledTask
This task generates a snapshot of the specified dataspace. The snapshot will be named according to the format: dataSpaceName-yyyyMMdd,
reflecting the date of creation.
To utilize this functionality, create a task in the Tasks table of the Task Scheduler under the Administration tab with the following specifications:
- Module: The module that contains this JAR file.
- Class Name: com.apgar.common.lib.scheduledtask.DataSpaceMonthlySnapshotScheduledTask
- Parameters:
- dataspace: indicates the ID of the dataspace for which the snapshot will be created.
If the dataspace parameter is not provided or the specified dataspace does not exist, no snapshot will be created. In this case, the execution report will issue a warning to highlight the issue.
- Author:
- APGAR Consulting
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(com.orchestranetworks.scheduler.ScheduledExecutionContext context) Creates a snapshot of the specified dataspace.Returns the dataspace name.voidsetDataspace(String dataspace) Sets the dataspace ID.Methods inherited from class com.orchestranetworks.scheduler.ScheduledTask
handleBeforeInterrupting, handleBeforePausing, handleBeforeResuming, isInterruptable, isPausable, validate, zza, zza, zza, zzb, zzb, zzc, zzd
-
Constructor Details
-
DataSpaceMonthlySnapshotScheduledTask
public DataSpaceMonthlySnapshotScheduledTask()
-
-
Method Details
-
execute
public void execute(com.orchestranetworks.scheduler.ScheduledExecutionContext context) throws com.orchestranetworks.service.OperationException, com.orchestranetworks.scheduler.ScheduledTaskInterruption Creates a snapshot of the specified dataspace.The snapshot will be named using the format: dataSpaceName-yyyyMMdd, representing the date of creation.
- Specified by:
executein classcom.orchestranetworks.scheduler.ScheduledTask- Parameters:
context- context of the scheduled task execution- Throws:
com.orchestranetworks.service.OperationException- if an error occurs during snapshot creationcom.orchestranetworks.scheduler.ScheduledTaskInterruption- if the scheduled task is interrupted
-
getDataspace
Returns the dataspace name.- Returns:
- the dataspace ID
-
setDataspace
Sets the dataspace ID.- Parameters:
dataspace- the dataspace ID
-