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();
}
}