org.opendaylight.serviceutils.metrics.internal.MetricProviderImpl Maven / Gradle / Ivy
/*
* Copyright (c) 2017 - 2018 Red Hat, Inc. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
package org.opendaylight.serviceutils.metrics.internal;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import javax.inject.Singleton;
import org.opendaylight.serviceutils.metrics.MetricProvider;
/**
* Implementation of {@link MetricProvider} based on Coda Hale's Dropwizard Metrics.
*
* @author Michael Vorburger.ch
*/
@Singleton
public class MetricProviderImpl extends AbstractMetricProvider {
public MetricProviderImpl() {
}
public MetricProviderImpl(Configuration configuration) {
updateConfiguration(configuration);
}
@PostConstruct
public void open() {
start();
}
@PreDestroy
public void close() {
stop();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy