Class Reference
IRIS for UNIX 2024.1.2
InterSystems: The power behind what matters   
Documentation  Search
  [USER] >  [Ens] >  [Util] >  [Tasks] >  [PurgeMessageBank]
Private  Storage   

class Ens.Util.Tasks.PurgeMessageBank extends %SYS.Task.Definition

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
1 4 2


Summary

Properties
%RunDate %RunTime BodiesToo KeepIntegrity
NumberOfDaysToKeep TypesToPurge

Methods
%AddToSaveSet %ClassIsLatestVersion %ClassName %ConstructClone
%DispatchClassMethod %DispatchGetModified %DispatchGetProperty %DispatchMethod
%DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty %Extends
%GetParameter %IsA %IsModified %New
%NormalizeObject %ObjectModified %OriginalNamespace %PackageName
%RemoveFromSaveSet %SerializeObject %SetModified %ValidateObject
CheckPermission GetCollectionType GetPropertyName GetSettings
GetTaskName OnSubmit OnTask PurgeAll
SetSettings


Parameters

• parameter RESOURCE = "%Ens_PurgeSchedule:USE";
This specifies a security resource and optional permission. Access to the resource will be required to create, modify or run a task of this type. The format is ":". If is ommited, "USE" is implied. Note that this parameter cannot be overridden using the COSEXPRESSION parameter type.

Properties

• property BodiesToo as %Boolean [ InitialExpression = 0 ];
Delete message bodies whenever their message header is deleted. This is off by default because some Productions may use message objects that are part of a larger environment and not transitory.
• property KeepIntegrity as %Boolean [ InitialExpression = 1 ];
Preserve messages not yet completely processed
• property NumberOfDaysToKeep as %Integer(MINVAL=0) [ InitialExpression = 7 ];
How many days of messages should not be purged
• property TypesToPurge as %String(DISPLAYLIST=",All Types,Events,Messages,Business Processes,Rule Logs,I/O Logs,Host Monitor Data,Message Bank Events,Message Bank Messages",VALUELIST=",all,events,messages,processes,rulelogs,iologs,hostcounters,message bank events,message bank messages") [ InitialExpression = "events",Required ];
The type of thing to purge

Methods

• method OnTask() as %Status
The OnTask() method is called to execute the task
• classmethod PurgeAll(pTypesToPurge As %String = "all", pNumberOfDaysToKeep As %Integer = 0, pBodiesToo As %Boolean = 1) as %Status
Purge the message store, and event log


Copyright (c) 2025 by InterSystems Corporation. Cambridge, Massachusetts, U.S.A. All rights reserved. Confidential property of InterSystems Corporation.