/** * Called when the job is complete */ public void cleanUpMetrics() { // Deletes all metric data for this job (in internal table in metrics package). // This frees up RAM and possibly saves network bandwidth, since otherwise // the metrics package implementation might continue to send these job metrics // after the job has finished. jobMetrics.removeTag("group"); jobMetrics.removeTag("counter"); jobMetrics.remove(); }
/** * Called when the job is complete */ public void cleanUpMetrics() { // Deletes all metric data for this job (in internal table in metrics package). // This frees up RAM and possibly saves network bandwidth, since otherwise // the metrics package implementation might continue to send these job metrics // after the job has finished. jobMetrics.removeTag("group"); jobMetrics.removeTag("counter"); jobMetrics.remove(); }