Skip to main content

%SYS.Task.BackupSuper

Class %SYS.Task.BackupSuper [ System = 4 ]

Super class for backup tasks.

Parameters

TaskName;

Parameter TaskName;

Properties

Device

Property Device As %String(MAXLEN = 1024) [ InitialExpression = {##class(%File).NormalizeDirectory("Backup")} ];

SaveToTape

Property SaveToTape As %Boolean [ InitialExpression = "0" ];

TapeDevice

Property TapeDevice As %String [ InitialExpression = "47" ];

Back up tape device if it is save to tape

Methods

OnTask

Method OnTask() As %Status

This method is responsible for executing the task.
At the scheduled time, the Task Manager creates an instance of this object, sets any property values using the stored "settings" for the task, and then invokes this method to execute the task.
In order to execute a real task, override this method in a subclass.

%OnValidateObject

Method %OnValidateObject() As %Status [ Private, ProcedureBlock = 1 ]

This callback method is invoked by the %ValidateObject method to provide notification that the current object is being validated.

If this method returns an error then %ValidateObject will fail.