@Override public void removeAlarm(final Long alarmId,final ConfigurationElementReport alarmReport){
  try {
    AlarmCacheObject alarm=(AlarmCacheObject)alarmCache.getCopy(alarmId);
    alarmConfigTransacted.doRemoveAlarm(alarmId,alarmReport);
    alarmCache.remove(alarmId);
    alarm.setState(AlarmCondition.TERMINATE);
    alarm.setInfo("Alarm was removed");
    alarm.setTimestamp(new Timestamp(System.currentTimeMillis()));
    alarmCache.notifyListenersOfUpdate(alarm);
  }
 catch (  CacheElementNotFoundException e) {
    alarmReport.setWarning("Alarm " + alarmId + " is not know by the system ==> Nothing to be removed from the Alarm cache.");
  }
}

@ Override public void removeAlarm ( final Long alarmId , final ConfigurationElementReport alarmReport ) { try { AlarmCacheObject alarm = ( AlarmCacheObject ) alarmCache . getCopy ( alarmId ) ; alarmConfigTransacted . doRemoveAlarm ( alarmId , alarmReport ) ; alarmCache . remove ( alarmId ) ; alarm . setState ( AlarmCondition . TERMINATE ) ; alarm . setInfo ( "Alarm was removed" ) ; alarm . setTimestamp ( new Timestamp ( System . currentTimeMillis ( ) ) ) ; alarmCache . notifyListenersOfUpdate ( alarm ) ; } catch ( CacheElementNotFoundException e ) { alarmReport . setWarning ( "Alarm " + alarmId + " is not know by the system ==> Nothing to be removed from the Alarm cache." ) ; } }
removes the alarm from the system ( including datatag reference to it ) . < p > in more detail , removes the reference to the alarm in the associated tag , removes the alarm from the db and removes the alarm form the cache , in that order .
