@Override
	public void sampling(ISingleConsole singleConsole, PerfTest perfTest, IPerfTestService perfTestService, ImmutableStatisticsSet intervalStatistics, ImmutableStatisticsSet cumulativeStatistics) {
		for (Map.Entry<MonitorClientService, BufferedWriter> each : clientMap.entrySet()) {
			try {
				SystemInfo currentInfo = each.getKey().getSystemInfo();
				BufferedWriter bw = each.getValue();
				bw.write(currentInfo.toRecordString());
				bw.newLine();
			} catch (IOException e) {
				LOGGER.error(format(perfTest, "Error while saving file: {}", e.getMessage()));
			}
		}
	}
Constructor.

@param config               config
@param scheduledTaskService scheduling service to run monitor task
ngrinder-controller/src/main/java/org/ngrinder/perftest/service/samplinglistener/MonitorCollectorPlugin.java