EventSink lsnk = new GangliaSink(svrs, ATTR_LONG, "bytes", Type.LONG);
EventSink isnk = new GangliaSink(svrs, ATTR_INT, "bytes", Type.INT);
EventSink dsnk = new GangliaSink(svrs, ATTR_DOUBLE, "bytes", Type.DOUBLE);
EventSink snk = new FanOutSink<EventSink>(lsnk, isnk, dsnk);
snk.open();
// This is enough for the data to register.
for (int i = 0; i < 60; i++) {
Event e = new EventImpl("".getBytes());
Attributes.setLong(e, ATTR_LONG, i * 1000000);
Attributes.setInt(e, ATTR_INT, (int) (i * 1000000));