Search in sources :

Example 1 with ReceiverTest

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);
}
Also used : UdpReceiver(org.collectd.protocol.UdpReceiver) ReceiverTest(org.collectd.protocol.ReceiverTest)

Aggregations

ReceiverTest (org.collectd.protocol.ReceiverTest)1 UdpReceiver (org.collectd.protocol.UdpReceiver)1