%SYS.Task.IntegrityCheck
Class %SYS.Task.IntegrityCheck Extends %SYS.Task.Definition [ System = 4 ]
Perform an Integrity Check for all databases. The task will create an output log file, parse the log for errors and report failures in messages.log (which will send email if it's configured).
Parameters
TaskName
Parameter TaskName = "IntegrityCheck";
Properties
Directory
Property Directory As %String [ InitialExpression = {$zu(12)} ];
The directory where the Integrity Check logs will be kept. Note that the logs here can be automatically purged using the KeepDays property
Filename
Property Filename As %String;
The file name to be used for the log. Leaving this blank will cause the file name to be automatically generated in the the format INTEGRIT-YYYYMMDD_sec.LOG. Files which are generated in this format can be automatically purged using the KeepDays property.
KeepDays
Property KeepDays As %Integer [ InitialExpression = 0 ];
Number of days to keep files before puring - 0 means never purge
Methods
DirectoryIsValid
ClassMethod DirectoryIsValid(Directory As %String) As %Status [ Internal ]
OnTask
Method OnTask() As %Status
Execute $$CheckList^Integrity() for all databases. Create an output log file, check for errors and report failure in messages.log. Purge old INTEGRIT-*.LOG files if KeepDays is set.