Skip to main content

HS.Util.MirrorMonitorAgent

abstract class HS.Util.MirrorMonitorAgent

TODO: Move this class to HealthConnect.SystemConfig once service registry is refactored to its own module. Cannot be done now as service registry is in HealthConnect.Common and this code depends on REST client which depends on Service Registry and both live in HealthConnect.Common so that would cause a cyclic dependency.

Method Inventory

Methods

classmethod CleanupLocalCache(pErrorReportingMinutes As %Integer = 60)
Remove entries from LocalStatus which have been sent to the server pErrorReportingMinutes The number of minutes before duplicate errors will be reported again
classmethod StartAgent(pErrorReportingMinutes As %Integer = 60)
Start running the background job which checks for pending configuration steps to run and runs them.
@API.Method
@Input pErrorReportingMinutes The number of minutes before duplicate errors will be reported again
classmethod StopAgent(pWait As %Integer = 60) as %Boolean
Stop running the background job which checks for pending configuration steps.
Returns 1 if job stopped, 0 if it failed to stop.
@API.Method
@Argument pWait Number of seconds to wait for agent to stop.
FeedbackOpens in a new tab