Search in sources :

Example 1 with PluginContextLoadResult

use of com.navercorp.pinpoint.profiler.plugin.PluginContextLoadResult 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)

Example 2 with PluginContextLoadResult

use of com.navercorp.pinpoint.profiler.plugin.PluginContextLoadResult in project pinpoint by naver.

the class JdbcUrlParsingServiceProvider method get.

@Override
public JdbcUrlParsingService get() {
    PluginContextLoadResult pluginContextLoadResult = this.pluginContextLoadResultProvider.get();
    List<JdbcUrlParserV2> jdbcUrlParserList = pluginContextLoadResult.getJdbcUrlParserList();
    return new DefaultJdbcUrlParsingService(jdbcUrlParserList);
}
Also used : DefaultJdbcUrlParsingService(com.navercorp.pinpoint.profiler.context.monitor.DefaultJdbcUrlParsingService) JdbcUrlParserV2(com.navercorp.pinpoint.bootstrap.plugin.jdbc.JdbcUrlParserV2) PluginContextLoadResult(com.navercorp.pinpoint.profiler.plugin.PluginContextLoadResult)

Aggregations

PluginContextLoadResult (com.navercorp.pinpoint.profiler.plugin.PluginContextLoadResult)2 ApplicationTypeDetector (com.navercorp.pinpoint.bootstrap.plugin.ApplicationTypeDetector)1 JdbcUrlParserV2 (com.navercorp.pinpoint.bootstrap.plugin.jdbc.JdbcUrlParserV2)1 ServiceType (com.navercorp.pinpoint.common.trace.ServiceType)1 DefaultJdbcUrlParsingService (com.navercorp.pinpoint.profiler.context.monitor.DefaultJdbcUrlParsingService)1 ApplicationServerTypeResolver (com.navercorp.pinpoint.profiler.util.ApplicationServerTypeResolver)1