use of com.navercorp.pinpoint.profiler.receiver.ProfilerCommandServiceLocator 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(profilerConfig, activeTraceRepository);
builder.addService(activeThreadService);
}
ProfilerCommandServiceLocator commandServiceLocator = builder.build();
CommandDispatcher commandDispatcher = new CommandDispatcher(commandServiceLocator);
return commandDispatcher;
}
Aggregations