This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRIS, see the InterSystems IRIS Adoption Guide and the InterSystems IRIS In-Place Conversion Guide, both available on the WRC Distributions page (login required).

Home > Class Reference > %SYS namespace > %SYS.Task.BackupSuper


class %SYS.Task.BackupSuper

Super class for backup tasks.

Property Inventory (Including Private)

Method Inventory (Including Private)


parameter TaskName;

Properties (Including Private)

property Device as %String (MAXLEN = 1024) [ InitialExpression = ##class(%File).NormalizeDirectory("Backup") ];
Property methods: DeviceDisplayToLogical(), DeviceGet(), DeviceIsValid(), DeviceLogicalToDisplay(), DeviceLogicalToOdbc(), DeviceNormalize(), DeviceSet()
property SaveToTape as %Boolean [ InitialExpression = "0" ];
Property methods: SaveToTapeDisplayToLogical(), SaveToTapeGet(), SaveToTapeIsValid(), SaveToTapeLogicalToDisplay(), SaveToTapeNormalize(), SaveToTapeSet()
property TapeDevice as %String [ InitialExpression = "47" ];
Back up tape device if it is save to tape
Property methods: TapeDeviceDisplayToLogical(), TapeDeviceGet(), TapeDeviceIsValid(), TapeDeviceLogicalToDisplay(), TapeDeviceLogicalToOdbc(), TapeDeviceNormalize(), TapeDeviceSet()

Methods (Including Private)

private method %OnValidateObject() as %Status
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.

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.