use of com.navercorp.pinpoint.profiler.receiver.service.ActiveThreadService in project pinpoint by naver.
the class CommandDispatcherProvider method get.
@Override
public CommandDispatcher get() {
ProfilerCommandLocatorBuilder builder = new ProfilerCommandLocatorBuilder();
builder.addService(new EchoService());
if (activeTraceRepository != null) {
ActiveThreadService activeThreadService = new ActiveThreadService(thriftTransportConfig, activeTraceRepository);
builder.addService(activeThreadService);
}
ProfilerCommandServiceLocator commandServiceLocator = builder.build();
CommandDispatcher commandDispatcher = new CommandDispatcher(commandServiceLocator);
return commandDispatcher;
}
Aggregations