@Test public void testCustomScoreFormatting() throws Exception { for (String scoreType : ScoreGeneratorsFactory.BUILTIN_GENERATORS_NAMES) { if (ScoreGeneratorsFactory.DEFAULT_SCORE.equals(scoreType)) { continue; } analyzer.incrementalUpdate(JmxInvocationEndPointAnalyzer.SCORE_VALUE, scoreType); Operation op = mockInvocationOperation("testCustomScoreFormattingFor" + StringUtil.capitalize(scoreType)); assertEndPointAnalysis(op, 3777347); } }
public void incrementalUpdate(CollectionSettingName name, Serializable value) { if ((name == null) || (value == null) || (!SETTINGS.contains(name))) { return; } String formatValue = value.toString(), prevValue = formatsMap.put(name, formatValue); if (StringUtil.safeCompare(formatValue, prevValue) != 0) { _logger.info("incrementalUpdate(" + name + ") " + prevValue + " => " + formatValue); } }
JmxInvocationEndPointAnalyzer extends AbstractSingleTypeEndpointAnalyzer implements CollectionSettingsUpdateListener { public void incrementalUpdate(CollectionSettingName name, Serializable value) { if ((name == null) || (value == null) || (!SETTINGS.contains(name))) { return; } String formatValue = value.toString(), prevValue = formatsMap.put(name, formatValue); if (StringUtil.safeCompare(formatValue, prevValue) != 0) { _logger.info("incrementalUpdate(" + name + ") " + prevValue + " => " + formatValue); } } }
JmxInvocationEndPointAnalyzer extends AbstractSingleTypeEndpointAnalyzer implements CollectionSettingsUpdateListener { public void incrementalUpdate(CollectionSettingName name, Serializable value) { if ((name == null) || (value == null) || (!SETTINGS.contains(name))) { return; } String formatValue = value.toString(), prevValue = formatsMap.put(name, formatValue); if (StringUtil.safeCompare(formatValue, prevValue) != 0) { _logger.info("incrementalUpdate(" + name + ") " + prevValue + " => " + formatValue); } } private  JmxInvocationEndPointAnalyzer();   JmxInvocationEndPointAnalyzer(CollectionSettingsRegistry registry); }
JmxInvocationEndPointAnalyzer extends AbstractSingleTypeEndpointAnalyzer implements CollectionSettingsUpdateListener { public void incrementalUpdate(CollectionSettingName name, Serializable value) { if ((name == null) || (value == null) || (!SETTINGS.contains(name))) { return; } String formatValue = value.toString(), prevValue = formatsMap.put(name, formatValue); if (StringUtil.safeCompare(formatValue, prevValue) != 0) { _logger.info("incrementalUpdate(" + name + ") " + prevValue + " => " + formatValue); } } private  JmxInvocationEndPointAnalyzer();   JmxInvocationEndPointAnalyzer(CollectionSettingsRegistry registry); @SuppressWarnings("synthetic-access") static final JmxInvocationEndPointAnalyzer getInstance(); String getSettingFormat(CollectionSettingName name); void incrementalUpdate(CollectionSettingName name, Serializable value); static final Number resolveOperationScore(Operation op, String scoreMode); static final Operation updateOperation(Operation op, String methodName, String[] signature, Object[] argVals); static final OperationList updateInvocationArgs(Operation op, Object... argVals); static final OperationList updateInvocationArgs(OperationList op, Object... argVals); static final NamedPropertySource toPropertySource(final Operation op); }
JmxInvocationEndPointAnalyzer extends AbstractSingleTypeEndpointAnalyzer implements CollectionSettingsUpdateListener { public void incrementalUpdate(CollectionSettingName name, Serializable value) { if ((name == null) || (value == null) || (!SETTINGS.contains(name))) { return; } String formatValue = value.toString(), prevValue = formatsMap.put(name, formatValue); if (StringUtil.safeCompare(formatValue, prevValue) != 0) { _logger.info("incrementalUpdate(" + name + ") " + prevValue + " => " + formatValue); } } private  JmxInvocationEndPointAnalyzer();   JmxInvocationEndPointAnalyzer(CollectionSettingsRegistry registry); @SuppressWarnings("synthetic-access") static final JmxInvocationEndPointAnalyzer getInstance(); String getSettingFormat(CollectionSettingName name); void incrementalUpdate(CollectionSettingName name, Serializable value); static final Number resolveOperationScore(Operation op, String scoreMode); static final Operation updateOperation(Operation op, String methodName, String[] signature, Object[] argVals); static final OperationList updateInvocationArgs(Operation op, Object... argVals); static final OperationList updateInvocationArgs(OperationList op, Object... argVals); static final NamedPropertySource toPropertySource(final Operation op); static final String DOMAIN_NAME_PROP; static final String NAME_KEY; static final String SIMPLE_BEAN_NAME_FORMAT; static final CollectionSettingName ENDPOINT_FORMAT; static final String DEFAULT_ENDPOINT_FORMAT; static final CollectionSettingName LABEL_FORMAT; static final String DEFAULT_LABEL_FORMAT; static final CollectionSettingName EXAMPLE_FORMAT; static final String DEFAULT_EXAMPLE_FORMAT; static final CollectionSettingName SCORE_VALUE; static final String DEFAULT_SCORE_FORMAT; static final List<CollectionSettingName> SETTINGS; }