use of com.navercorp.pinpoint.profiler.util.AgentInfoFactory in project pinpoint by naver.
the class AgentInfoSenderProvider method get.
@Override
public AgentInfoSender get() {
final EnhancedDataSender<MetaDataType> enhancedDataSender = this.enhancedDataSenderProvider.get();
final AgentInfoFactory agentInfoFactory = this.agentInfoFactoryProvider.get();
final AgentInfoSender agentInfoSender = new AgentInfoSender.Builder(enhancedDataSender, agentInfoFactory).sendInterval(contextConfig.getAgentInfoSendRetryInterval()).setMessageConverter(this.messageConverter).build();
serverMetaDataRegistryService.addListener(new ServerMetaDataRegistryService.OnChangeListener() {
@Override
public void onServerMetaDataChange() {
agentInfoSender.refresh();
}
});
return agentInfoSender;
}
use of com.navercorp.pinpoint.profiler.util.AgentInfoFactory in project pinpoint by naver.
the class AgentInfoSenderTest method init.
@Before
public void init() {
agentInformation = createAgentInformation();
serverMetaDataRegistryService = new ServerMetaDataRegistryServiceProvider().get();
jvmInformation = new JvmInformationProvider().get();
agentInfoFactory = new AgentInfoFactory(agentInformation, serverMetaDataRegistryService, jvmInformation);
resultResponseMessageConverter = new ThriftMessageToResultConverter();
}
Aggregations