use of org.collectd.protocol.ReceiverTest in project jcollectd by collectd.
the class MBeanSenderTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
_receiverTest = new ReceiverTest();
_receiverTest.setUp();
UdpReceiver receiver = _receiverTest.getReceiver();
receiver.setDispatcher(this);
int port = receiver.getSocket().getLocalPort();
_sender = new MBeanSender();
_sender.addDestination("udp://localhost:" + port);
}
Aggregations