View Javadoc

1   package fr.in2p3.jsaga.impl.monitoring;
2   
3   import org.ogf.saga.error.*;
4   import org.ogf.saga.monitoring.Metric;
5   import org.ogf.saga.monitoring.MonitoringFactory;
6   
7   /* ***************************************************
8   * *** Centre de Calcul de l'IN2P3 - Lyon (France) ***
9   * ***             http://cc.in2p3.fr/             ***
10  * ***************************************************
11  * File:   MonitoringFactoryImpl
12  * Author: Sylvain Reynaud (sreynaud@in2p3.fr)
13  * Date:   17 sept. 2007
14  * ***************************************************
15  * Description:                                      */
16  /**
17   *
18   */
19  public class MonitoringFactoryImpl extends MonitoringFactory {
20      protected Metric doCreateMetric(String name, String desc, String mode, String unit, String type, String value) throws NotImplementedException, BadParameterException, TimeoutException, NoSuccessException {
21          return new MetricImpl(null, name, desc, MetricMode.valueOf(mode), unit, MetricType.valueOf(type), value);
22      }
23  }