/** * {@inheritDoc} */ @Override public boolean isClassCacheExistsOnCmr() throws StorageException { ensureConfigurationExists(); return agentConfiguration.isClassCacheExistsOnCmr(); }
/** * {@inheritDoc} */ @Override public AgentEndUserMonitoringConfig getEndUserMonitoringConfig() throws StorageException { ensureConfigurationExists(); return agentConfiguration.getEumConfig(); }
/** * {@inheritDoc} */ @Override public ExceptionSensorTypeConfig getExceptionSensorType() throws StorageException { ensureConfigurationExists(); return agentConfiguration.getExceptionSensorTypeConfig(); }
/** * {@inheritDoc} */ @Override public RetransformationStrategy getRetransformStrategy() throws StorageException { ensureConfigurationExists(); return agentConfiguration.getRetransformationStrategy(); }
/** * {@inheritDoc} */ @Override public boolean isExceptionSensorActivated() throws StorageException { ensureConfigurationExists(); return null != agentConfiguration.getExceptionSensorTypeConfig(); }
/** * {@inheritDoc} */ @Override public Map<Collection<String>, InstrumentationDefinition> getInitialInstrumentationResults() throws StorageException { ensureConfigurationExists(); return agentConfiguration.getInitialInstrumentationResults(); }
/** * {@inheritDoc} */ @Override public Collection<IMatchPattern> getIgnoreClassesPatterns() throws StorageException { ensureConfigurationExists(); if (CollectionUtils.isNotEmpty(agentConfiguration.getExcludeClassesPatterns())) { return Collections.unmodifiableCollection(agentConfiguration.getExcludeClassesPatterns()); } else { return Collections.emptyList(); } }
/** * {@inheritDoc} */ @Override public List<PlatformSensorTypeConfig> getPlatformSensorTypes() throws StorageException { ensureConfigurationExists(); List<PlatformSensorTypeConfig> result = new ArrayList<PlatformSensorTypeConfig>(1); if (CollectionUtils.isNotEmpty(agentConfiguration.getPlatformSensorTypeConfigs())) { result.addAll(agentConfiguration.getPlatformSensorTypeConfigs()); } return result; }
/** * {@inheritDoc} */ @Override public List<JmxSensorTypeConfig> getJmxSensorTypes() throws StorageException { ensureConfigurationExists(); List<JmxSensorTypeConfig> result = new ArrayList<JmxSensorTypeConfig>(1); if (null != agentConfiguration.getJmxSensorTypeConfig()) { result.add(agentConfiguration.getJmxSensorTypeConfig()); } return result; }
/** * {@inheritDoc} */ @Override public StrategyConfig getDisruptorStrategyConfig() throws StorageException { ensureConfigurationExists(); StrategyConfig disruptorStrategy = agentConfiguration.getDisruptorStrategyConfig(); if (null == disruptorStrategy) { throw new StorageException("Disruptor strategy not defined in the agent configuration."); } return disruptorStrategy; } /**
/** * {@inheritDoc} */ @Override public boolean isEnhancedExceptionSensorActivated() throws StorageException { ensureConfigurationExists(); if (isExceptionSensorActivated()) { return agentConfiguration.getExceptionSensorTypeConfig().isEnhanced(); } return false; }
/** * {@inheritDoc} */ @Override public List<MethodSensorTypeConfig> getMethodSensorTypes() throws StorageException { ensureConfigurationExists(); List<MethodSensorTypeConfig> result = new ArrayList<MethodSensorTypeConfig>(); if (CollectionUtils.isNotEmpty(agentConfiguration.getMethodSensorTypeConfigs())) { result.addAll(agentConfiguration.getMethodSensorTypeConfigs()); } // exception sensor is also method sensor type if (null != agentConfiguration.getExceptionSensorTypeConfig()) { result.add(agentConfiguration.getExceptionSensorTypeConfig()); } // special sensors are also method sensor types if (CollectionUtils.isNotEmpty(agentConfiguration.getSpecialMethodSensorTypeConfigs())) { result.addAll(agentConfiguration.getSpecialMethodSensorTypeConfigs()); } return result; }