Search in sources :

Example 1 with ApplicationServerTypeResolver

use of com.navercorp.pinpoint.profiler.util.ApplicationServerTypeResolver in project pinpoint by naver.

the class ApplicationServerTypeProvider method get.

@Override
public ServiceType get() {
    final ServiceType applicationServiceType = getApplicationServiceType();
    logger.info("default ApplicationServerType={}", applicationServiceType);
    PluginContextLoadResult pluginContextLoadResult = this.pluginContextLoadResultProvider.get();
    List<ApplicationTypeDetector> applicationTypeDetectorList = pluginContextLoadResult.getApplicationTypeDetectorList();
    ApplicationServerTypeResolver applicationServerTypeResolver = new ApplicationServerTypeResolver(applicationTypeDetectorList, applicationServiceType, profilerConfig.getApplicationTypeDetectOrder());
    ServiceType resolve = applicationServerTypeResolver.resolve();
    logger.info("resolved ApplicationServerType={}", resolve);
    return resolve;
}
Also used : ApplicationServerTypeResolver(com.navercorp.pinpoint.profiler.util.ApplicationServerTypeResolver) ServiceType(com.navercorp.pinpoint.common.trace.ServiceType) ApplicationTypeDetector(com.navercorp.pinpoint.bootstrap.plugin.ApplicationTypeDetector) PluginContextLoadResult(com.navercorp.pinpoint.profiler.plugin.PluginContextLoadResult)

Aggregations

ApplicationTypeDetector (com.navercorp.pinpoint.bootstrap.plugin.ApplicationTypeDetector)1 ServiceType (com.navercorp.pinpoint.common.trace.ServiceType)1 PluginContextLoadResult (com.navercorp.pinpoint.profiler.plugin.PluginContextLoadResult)1 ApplicationServerTypeResolver (com.navercorp.pinpoint.profiler.util.ApplicationServerTypeResolver)1