LOG.info("Listening to port " + listener.getPort());
// setup and send some ganglia data.
EventSink ganglia = new GangliaSink(hostName + ":" + listener.getPort(),
"foo", "bars", Type.INT);
ganglia.open();
Event e = new EventImpl("baz".getBytes());
Attributes.setInt(e, "foo", 1337);
ganglia.append(e);
ganglia.close();