Search in sources :

Example 1 with TBaseRecorderAdaptor

use of com.navercorp.pinpoint.test.TBaseRecorderAdaptor in project pinpoint by naver.

the class AgentStatMonitorTest method setUp.

@Before
public void setUp() throws Exception {
    MockitoAnnotations.initMocks(this);
    when(agentStatCollector.collect()).thenReturn(new TAgentStat());
    this.tBaseRecorder = new TBaseRecorder<TAgentStatBatch>();
    TBaseRecorderAdaptor recorderAdaptor = new TBaseRecorderAdaptor(tBaseRecorder);
    ListenableDataSender listenableDataSender = new ListenableDataSender("testDataSender");
    listenableDataSender.setListener(recorderAdaptor);
    this.dataSender = listenableDataSender;
}
Also used : TAgentStat(com.navercorp.pinpoint.thrift.dto.TAgentStat) TBaseRecorderAdaptor(com.navercorp.pinpoint.test.TBaseRecorderAdaptor) TAgentStatBatch(com.navercorp.pinpoint.thrift.dto.TAgentStatBatch) ListenableDataSender(com.navercorp.pinpoint.test.ListenableDataSender) Before(org.junit.Before)

Aggregations

ListenableDataSender (com.navercorp.pinpoint.test.ListenableDataSender)1 TBaseRecorderAdaptor (com.navercorp.pinpoint.test.TBaseRecorderAdaptor)1 TAgentStat (com.navercorp.pinpoint.thrift.dto.TAgentStat)1 TAgentStatBatch (com.navercorp.pinpoint.thrift.dto.TAgentStatBatch)1 Before (org.junit.Before)1