Search in sources :

Example 1 with IRecordReceivedListener

use of kieker.common.record.IRecordReceivedListener in project iobserve-analysis by research-iobserve.

the class ProbeControlFilterTest method setUp.

/**
 * Setup the test.
 */
@Before
public void setUp() {
    synchronized (this) {
        final IRecordReceivedListener listener = new IRecordReceivedListener() {

            @Override
            public void onRecordReceived(final IMonitoringRecord record) {
            // do nothing.. the TCP sender is tested elsewhere
            }
        };
        ProbeControlFilterTest.port++;
        this.tcpReader = new SingleSocketRecordReader(ProbeControlFilterTest.port, ProbeControlFilterTest.BUFFER_SIZE, ProbeControlFilterTest.LOGGER, listener);
        new Thread(this.tcpReader).start();
        this.probeControlFilter = new ProbeControlFilter();
    }
}
Also used : IRecordReceivedListener(kieker.common.record.IRecordReceivedListener) SingleSocketRecordReader(kieker.common.record.tcp.SingleSocketRecordReader) ProbeControlFilter(org.iobserve.stages.tcp.ProbeControlFilter) IMonitoringRecord(kieker.common.record.IMonitoringRecord) Before(org.junit.Before)

Aggregations

IMonitoringRecord (kieker.common.record.IMonitoringRecord)1 IRecordReceivedListener (kieker.common.record.IRecordReceivedListener)1 SingleSocketRecordReader (kieker.common.record.tcp.SingleSocketRecordReader)1 ProbeControlFilter (org.iobserve.stages.tcp.ProbeControlFilter)1 Before (org.junit.Before)1