Skip to content

Instantly share code, notes, and snippets.

@TurtleShip
Created August 13, 2013 20:56
Show Gist options
  • Save TurtleShip/6225600 to your computer and use it in GitHub Desktop.
Save TurtleShip/6225600 to your computer and use it in GitHub Desktop.
public void run() {
MetricsData curData = collectMetricsData();
if(isConsoleReporterOn) {
consoleReporter.report(curData.getData());
}
if(isCSVReporterOn) {
csvReporter.report(curData.getData(), elapsedTime);
}
if(isGraphiteReporterOn) {
graphiteReporter.report(curData.getData());
}
System.out.println("elapsed time : " + elapsedTime);
elapsedTime += rateInSec;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment