AbstractAlarm.java

  1. /*
  2.  * GovWay - A customizable API Gateway
  3.  * https://govway.org
  4.  *
  5.  * Copyright (c) 2005-2025 Link.it srl (https://link.it).
  6.  *
  7.  * This program is free software: you can redistribute it and/or modify
  8.  * it under the terms of the GNU General Public License version 3, as published by
  9.  * the Free Software Foundation.
  10.  *
  11.  * This program is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  * GNU General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU General Public License
  17.  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  18.  *
  19.  */

  20. package org.openspcoop2.monitor.sdk.plugins;

  21. import java.util.ArrayList;
  22. import java.util.List;

  23. import org.openspcoop2.monitor.sdk.condition.Context;
  24. import org.openspcoop2.monitor.sdk.exceptions.ParameterException;
  25. import org.openspcoop2.monitor.sdk.exceptions.SearchException;
  26. import org.openspcoop2.monitor.sdk.exceptions.ValidationException;
  27. import org.openspcoop2.monitor.sdk.parameters.Parameter;

  28. /**
  29.  * AbstractAlarm
  30.  *
  31.  * @author Poli Andrea (apoli@link.it)
  32.  * @author $Author$
  33.  * @version $Rev$, $Date$
  34.  */
  35. public abstract class AbstractAlarm implements IAlarmProcessing {

  36.     // Serve per la generazione automatica del nome dell'allarme
  37.     @Override
  38.     public String getAutomaticPrefixName(Context context){
  39.         return null;
  40.     }
  41.     @Override
  42.     public String getAutomaticSuffixName(Context context){
  43.         return null;
  44.     }
  45.    
  46.    
  47.     @Override
  48.     public List<Parameter<?>> getParameters(Context context) throws SearchException, ParameterException{
  49.         return new ArrayList<Parameter<?>>();
  50.     }
  51.    
  52.     @Override
  53.     public void updateRendering(Parameter<?> parameter,Context context) throws SearchException, ParameterException{
  54.        
  55.     }
  56.    
  57.     @Override
  58.     public void onChangeValue(Parameter<?> parameter, Context context) throws SearchException, ParameterException{
  59.        
  60.     }

  61.     @Override
  62.     public void validate(Context context) throws ValidationException,
  63.             SearchException, ParameterException {
  64.        
  65.     }
  66.        
  67.    
  68. }