diff --git a/EcAlarmDestination.h b/EcAlarmDestination.h index 10c77a9..0f4694f 100644 --- a/EcAlarmDestination.h +++ b/EcAlarmDestination.h @@ -57,6 +57,14 @@ */ - (oneway void) domanage: (in bycopy NSString*)managedObject; +/** Forces the clear of an alarm to be sent to any remote destination + * irrespective of whether the alarm has actually been raised or not.
+ * You should not normally use this method ... it's for cases where a + * process starts up and wishes to clear an alarm which was actually + * raised by a different (eg. earlier instrance of the) process. + */ +- (oneway void) forceClear: (in bycopy EcAlarm*)event; + /** Inform the destination of the removal of a managed object.
* This is an indicator of a graceful shutdown of that object ... meaning that * the object has been stopped intentionally and all outstanding alarms for the @@ -124,7 +132,7 @@ /** Forces the clear of an alarm to be sent to any remote destination * irrespective of whether the alarm has actually been raised or not.
- * You should not normally use this metod ... it's for cases where a + * You should not normally use this method ... it's for cases where a * process starts up and wishes to clear an alarm which was actually * raised by a different (eg. earlier instrance of the) process. */ diff --git a/EcProcess.m b/EcProcess.m index 87d9a18..f35b940 100644 --- a/EcProcess.m +++ b/EcProcess.m @@ -1550,6 +1550,11 @@ static NSString *noFiles = @"No log files to archive"; [alarmDestination domanage: managedObject]; } +- (oneway void) forceClear: (in bycopy EcAlarm*)event +{ + [alarmDestination forceClear: event]; +} + - (oneway void) unmanage: (in bycopy NSString*)managedObject { [alarmDestination unmanage: managedObject];