Search in sources :

Example 1 with ProfilerCommandServiceLocator

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;
}
Also used : ProfilerCommandLocatorBuilder(com.navercorp.pinpoint.profiler.receiver.ProfilerCommandLocatorBuilder) ActiveThreadService(com.navercorp.pinpoint.profiler.receiver.service.ActiveThreadService) EchoService(com.navercorp.pinpoint.profiler.receiver.service.EchoService) CommandDispatcher(com.navercorp.pinpoint.profiler.receiver.CommandDispatcher) ProfilerCommandServiceLocator(com.navercorp.pinpoint.profiler.receiver.ProfilerCommandServiceLocator)

Aggregations

CommandDispatcher (com.navercorp.pinpoint.profiler.receiver.CommandDispatcher)1 ProfilerCommandLocatorBuilder (com.navercorp.pinpoint.profiler.receiver.ProfilerCommandLocatorBuilder)1 ProfilerCommandServiceLocator (com.navercorp.pinpoint.profiler.receiver.ProfilerCommandServiceLocator)1 ActiveThreadService (com.navercorp.pinpoint.profiler.receiver.service.ActiveThreadService)1 EchoService (com.navercorp.pinpoint.profiler.receiver.service.EchoService)1