All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.orientechnologies.agent.services.metrics.OrientDBMetricSupport Maven / Gradle / Ivy

There is a newer version: 3.2.33
Show newest version
package com.orientechnologies.agent.services.metrics;

import java.util.ArrayList;
import java.util.List;

/** Created by Enrico Risa on 18/07/2018. */
public class OrientDBMetricSupport implements OrientDBMetric {

  List metrics = new ArrayList<>();

  @Override
  public void start() {
    metrics.forEach(m -> m.start());
  }

  @Override
  public void stop() {
    metrics.forEach(m -> m.stop());
    metrics.clear();
  }

  public boolean add(OrientDBMetric orientDBMetric) {
    return metrics.add(orientDBMetric);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy