public void updateAlertDefinition(StatAlertDefinition alertDefinition){
  if (logger.isDebugEnabled()) {
    logger.debug("Entered AdminDistributedSystemJmxImpl.updateAlertDefinition(StatAlertDefinition) *****");
  }
synchronized (ALERT_DEFINITIONS) {
    ALERT_DEFINITIONS.put(Integer.valueOf(alertDefinition.getId()),alertDefinition);
    if (logger.isDebugEnabled()) {
      logger.debug("AdminDistributedSystemJmxImpl.updateAlertDefinition : alertDefinition :: id={} :: {}",alertDefinition.getId(),alertDefinition.getStringRepresentation());
    }
    notifyMembersForAlertDefinitionChange(alertDefinition);
  }
  if (logger.isDebugEnabled()) {
    logger.debug("Exiting AdminDistributedSystemJmxImpl.updateAlertDefinition(StatAlertDefinition) *****");
  }
}

public void updateAlertDefinition ( StatAlertDefinition alertDefinition ) { if ( logger . isDebugEnabled ( ) ) { logger . debug ( "Entered AdminDistributedSystemJmxImpl.updateAlertDefinition(StatAlertDefinition) *****" ) ; } synchronized ( ALERT_DEFINITIONS ) { ALERT_DEFINITIONS . put ( Integer . valueOf ( alertDefinition . getId ( ) ) , alertDefinition ) ; if ( logger . isDebugEnabled ( ) ) { logger . debug ( "AdminDistributedSystemJmxImpl.updateAlertDefinition : alertDefinition :: id={} :: {}" , alertDefinition . getId ( ) , alertDefinition . getStringRepresentation ( ) ) ; } notifyMembersForAlertDefinitionChange ( alertDefinition ) ; } if ( logger . isDebugEnabled ( ) ) { logger . debug ( "Exiting AdminDistributedSystemJmxImpl.updateAlertDefinition(StatAlertDefinition) *****" ) ; } }
this method can be used to update alert definition for the stat mentioned . this method should update the collection maintained at the aggregator and should notify members for the newly added alert definitions . a new alert definition will be created if matching one not found .
