ArgumentChecker.notNull(getGangliaAddress(), "gangliaAddress");
ArgumentChecker.notNull(getGangliaPort(), "gangliaPort");
ArgumentChecker.notNull(getGangliaAddressingMode(), "gangliaAddressingMode");
ArgumentChecker.notNull(getGangliaTtl(), "gangliaTtl");
GMetric ganglia = new GMetric(getGangliaAddress(), getGangliaPort(), UDPAddressingMode.valueOf(getGangliaAddressingMode()), getGangliaTtl(), true);
GangliaReporter gangliaReporter = GangliaReporter.forRegistry(summaryRegistry)
.convertRatesTo(TimeUnit.SECONDS)
.convertDurationsTo(TimeUnit.MILLISECONDS)
.build(ganglia);
gangliaReporter.start(1, TimeUnit.MINUTES);
}
OpenGammaMetricRegistry.setSummaryRegistry(summaryRegistry);
OpenGammaMetricRegistry.setDetailedRegistry(detailedRegistry);
}