@Test public void testGetInstanceWithParameters() throws Exception { clearHolderSingleton(); Assert.assertNotNull(TimelineMetricsHolder.getInstance(1,2, Collections.EMPTY_LIST)); }
public static TimelineMetricsHolder getInstance(int rawCacheExpireTime, int aggregationCacheExpireTime, List<String> skipAggregationPatternStrings) { if (instance == null) { instance = new TimelineMetricsHolder(rawCacheExpireTime, aggregationCacheExpireTime, skipAggregationPatternStrings); } return instance; }
TimelineMetricsHolder { public static TimelineMetricsHolder getInstance(int rawCacheExpireTime, int aggregationCacheExpireTime, List<String> skipAggregationPatternStrings) { if (instance == null) { instance = new TimelineMetricsHolder(rawCacheExpireTime, aggregationCacheExpireTime, skipAggregationPatternStrings); } return instance; } }
TimelineMetricsHolder { public static TimelineMetricsHolder getInstance(int rawCacheExpireTime, int aggregationCacheExpireTime, List<String> skipAggregationPatternStrings) { if (instance == null) { instance = new TimelineMetricsHolder(rawCacheExpireTime, aggregationCacheExpireTime, skipAggregationPatternStrings); } return instance; } private  TimelineMetricsHolder(int rawCacheExpireTime, int aggregationCacheExpireTime, List<String> skipAggregationPatternStrings); }
TimelineMetricsHolder { public static TimelineMetricsHolder getInstance(int rawCacheExpireTime, int aggregationCacheExpireTime, List<String> skipAggregationPatternStrings) { if (instance == null) { instance = new TimelineMetricsHolder(rawCacheExpireTime, aggregationCacheExpireTime, skipAggregationPatternStrings); } return instance; } private  TimelineMetricsHolder(int rawCacheExpireTime, int aggregationCacheExpireTime, List<String> skipAggregationPatternStrings); static TimelineMetricsHolder getInstance(int rawCacheExpireTime, int aggregationCacheExpireTime, List<String> skipAggregationPatternStrings); static TimelineMetricsHolder getInstance(); void putMetricsForAggregationPublishing(TimelineMetrics timelineMetrics); Map<String, TimelineMetrics> extractMetricsForAggregationPublishing(); void putMetricsForRawPublishing(TimelineMetrics metrics); Map<String, TimelineMetrics> extractMetricsForRawPublishing(); }
TimelineMetricsHolder { public static TimelineMetricsHolder getInstance(int rawCacheExpireTime, int aggregationCacheExpireTime, List<String> skipAggregationPatternStrings) { if (instance == null) { instance = new TimelineMetricsHolder(rawCacheExpireTime, aggregationCacheExpireTime, skipAggregationPatternStrings); } return instance; } private  TimelineMetricsHolder(int rawCacheExpireTime, int aggregationCacheExpireTime, List<String> skipAggregationPatternStrings); static TimelineMetricsHolder getInstance(int rawCacheExpireTime, int aggregationCacheExpireTime, List<String> skipAggregationPatternStrings); static TimelineMetricsHolder getInstance(); void putMetricsForAggregationPublishing(TimelineMetrics timelineMetrics); Map<String, TimelineMetrics> extractMetricsForAggregationPublishing(); void putMetricsForRawPublishing(TimelineMetrics metrics); Map<String, TimelineMetrics> extractMetricsForRawPublishing();  }