Search in sources :

Example 11 with NormalizationServiceImpl

use of com.newrelic.agent.normalization.NormalizationServiceImpl in project newrelic-java-agent by newrelic.

the class StatsEngineTest method createServiceManager.

/**
 * Creates the service manager.
 *
 * @param map The configuration for the mananger.
 * @throws Exception Thrown if a problem creating the service manager.
 */
private static void createServiceManager(Map<String, Object> map) throws Exception {
    MockServiceManager serviceManager = new MockServiceManager();
    ServiceFactory.setServiceManager(serviceManager);
    serviceManager.start();
    ThreadService threadService = new ThreadService();
    serviceManager.setThreadService(threadService);
    ConfigService configService = ConfigServiceFactory.createConfigService(AgentConfigImpl.createAgentConfig(map), map);
    serviceManager.setConfigService(configService);
    MockCoreService agent = new MockCoreService();
    serviceManager.setCoreService(agent);
    HarvestService harvestService = new MockHarvestService();
    serviceManager.setHarvestService(harvestService);
    TransactionService transactionService = new TransactionService();
    serviceManager.setTransactionService(transactionService);
    TransactionTraceService transactionTraceService = new TransactionTraceService();
    serviceManager.setTransactionTraceService(transactionTraceService);
    SqlTraceService sqlTraceService = new SqlTraceServiceImpl();
    serviceManager.setSqlTraceService(sqlTraceService);
    MockRPMServiceManager rpmServiceManager = new MockRPMServiceManager();
    serviceManager.setRPMServiceManager(rpmServiceManager);
    MockRPMService rpmService = new MockRPMService();
    rpmService.setApplicationName(APP_NAME);
    rpmService.setErrorService(new ErrorServiceImpl(APP_NAME));
    rpmServiceManager.setRPMService(rpmService);
    configService.start();
    serviceManager.setNormalizationService(new NormalizationServiceImpl());
    StatsService statsService = new StatsServiceImpl();
    serviceManager.setStatsService(statsService);
    statsService.start();
}
Also used : SqlTraceServiceImpl(com.newrelic.agent.sql.SqlTraceServiceImpl) MockHarvestService(com.newrelic.agent.MockHarvestService) HarvestService(com.newrelic.agent.HarvestService) TransactionService(com.newrelic.agent.TransactionService) ErrorServiceImpl(com.newrelic.agent.errors.ErrorServiceImpl) MockRPMServiceManager(com.newrelic.agent.MockRPMServiceManager) TransactionTraceService(com.newrelic.agent.trace.TransactionTraceService) ThreadService(com.newrelic.agent.ThreadService) SqlTraceService(com.newrelic.agent.sql.SqlTraceService) ConfigService(com.newrelic.agent.config.ConfigService) MockServiceManager(com.newrelic.agent.MockServiceManager) MockCoreService(com.newrelic.agent.MockCoreService) MockHarvestService(com.newrelic.agent.MockHarvestService) MockRPMService(com.newrelic.agent.MockRPMService) NormalizationServiceImpl(com.newrelic.agent.normalization.NormalizationServiceImpl)

Aggregations

NormalizationServiceImpl (com.newrelic.agent.normalization.NormalizationServiceImpl)11 SqlTraceServiceImpl (com.newrelic.agent.sql.SqlTraceServiceImpl)9 MockRPMService (com.newrelic.agent.MockRPMService)8 MockRPMServiceManager (com.newrelic.agent.MockRPMServiceManager)8 MockServiceManager (com.newrelic.agent.MockServiceManager)8 ConfigService (com.newrelic.agent.config.ConfigService)8 ThreadService (com.newrelic.agent.ThreadService)7 TransactionService (com.newrelic.agent.TransactionService)7 ErrorServiceImpl (com.newrelic.agent.errors.ErrorServiceImpl)7 TransactionTraceService (com.newrelic.agent.trace.TransactionTraceService)7 MockCoreService (com.newrelic.agent.MockCoreService)6 MockHarvestService (com.newrelic.agent.MockHarvestService)6 StatsServiceImpl (com.newrelic.agent.stats.StatsServiceImpl)6 HarvestService (com.newrelic.agent.HarvestService)5 SqlTraceService (com.newrelic.agent.sql.SqlTraceService)5 AttributesService (com.newrelic.agent.attributes.AttributesService)4 StatsService (com.newrelic.agent.stats.StatsService)4 AgentConfig (com.newrelic.agent.config.AgentConfig)3 EnvironmentServiceImpl (com.newrelic.agent.environment.EnvironmentServiceImpl)3 DistributedTraceServiceImpl (com.newrelic.agent.tracing.DistributedTraceServiceImpl)3