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

org.metricssampler.daemon.commands.StopResourceCommand Maven / Gradle / Ivy

The newest version!
package org.metricssampler.daemon.commands;

import org.metricssampler.resources.SharedResource;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.util.Map;

public class StopResourceCommand extends MapEntryCommand {

	protected StopResourceCommand(final BufferedReader reader, final BufferedWriter writer, final Map resources, final String name) {
		super(reader, writer, resources, name);
	}

	@Override
	protected void processMatchingItem(final SharedResource item, final BufferedWriter writer) throws IOException {
		item.shutdown();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy