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

org.metricssampler.extensions.exec.ExecExtension Maven / Gradle / Ivy

There is a newer version: 0.9.1
Show newest version
package org.metricssampler.extensions.exec;

import org.metricssampler.config.InputConfig;
import org.metricssampler.reader.MetricsReader;
import org.metricssampler.service.AbstractExtension;

import java.util.Collection;
import java.util.LinkedList;
import java.util.List;

public class ExecExtension extends AbstractExtension {
	@Override
	public Collection> getXBeans() {
		final List> result = new LinkedList>();
		result.add(ExecInputXBean.class);
		result.add(ArgumentXBean.class);
		return result;
	}
	
	@Override
	public boolean supportsInput(final InputConfig config) {
		return config instanceof ExecInputConfig;
	}

	@Override
	protected MetricsReader doNewReader(final InputConfig config) {
		return new ExecMetricsReader((ExecInputConfig) config);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy