Search in sources :

Example 1 with MetricDefinition

use of org.gridlab.gat.monitoring.MetricDefinition in project compss by bsc-wdc.

the class GATJob method stop.

@Override
public void stop() throws Exception {
    logger.debug("GAT stop job " + this.jobId);
    if (GATjob != null) {
        MetricDefinition md = GATjob.getMetricDefinitionByName(JOB_STATUS);
        Metric m = md.createMetric();
        GATjob.removeMetricListener(this, m);
        GATjob.stop();
    }
}
Also used : MetricDefinition(org.gridlab.gat.monitoring.MetricDefinition) Metric(org.gridlab.gat.monitoring.Metric)

Aggregations

Metric (org.gridlab.gat.monitoring.Metric)1 MetricDefinition (org.gridlab.gat.monitoring.MetricDefinition)1