GcGenerationCollector(Map<String, JStatData.Counter<?>> jStatCounters, long genIndex) { String collectorKeyPrefix = StringUtils.format("sun.gc.collector.%d", genIndex); String nameKey = StringUtils.format("%s.name", collectorKeyPrefix); StringCounter nameCounter = (StringCounter) jStatCounters.get(nameKey); name = getReadableName(nameCounter.getString()); invocationsCounter = (LongCounter) jStatCounters.get(StringUtils.format("%s.invocations", collectorKeyPrefix)); cpuCounter = (TickCounter) jStatCounters.get(StringUtils.format("%s.time", collectorKeyPrefix)); }
GcGenerationCollector(Map<String, JStatData.Counter<?>> jStatCounters, long genIndex) { String collectorKeyPrefix = String.format("sun.gc.collector.%d", genIndex); String nameKey = String.format("%s.name", collectorKeyPrefix); StringCounter nameCounter = (StringCounter) jStatCounters.get(nameKey); name = getReadableName(nameCounter.getString()); invocationsCounter = (LongCounter) jStatCounters.get(String.format("%s.invocations", collectorKeyPrefix)); cpuCounter = (TickCounter) jStatCounters.get(String.format("%s.time", collectorKeyPrefix)); }
GcGenerationCollector(Map<String, JStatData.Counter<?>> jStatCounters, long genIndex) { String collectorKeyPrefix = String.format("sun.gc.collector.%d", genIndex); String nameKey = String.format("%s.name", collectorKeyPrefix); StringCounter nameCounter = (StringCounter) jStatCounters.get(nameKey); name = getReadableName(nameCounter.getString()); invocationsCounter = (LongCounter) jStatCounters.get(String.format("%s.invocations", collectorKeyPrefix)); cpuCounter = (TickCounter) jStatCounters.get(String.format("%s.time", collectorKeyPrefix)); }
GcGenerationCollector(Map<String, JStatData.Counter<?>> jStatCounters, long genIndex) { String collectorKeyPrefix = String.format("sun.gc.collector.%d", genIndex); String nameKey = String.format("%s.name", collectorKeyPrefix); StringCounter nameCounter = (StringCounter) jStatCounters.get(nameKey); name = getReadableName(nameCounter.getString()); invocationsCounter = (LongCounter) jStatCounters.get(String.format("%s.invocations", collectorKeyPrefix)); cpuCounter = (TickCounter) jStatCounters.get(String.format("%s.time", collectorKeyPrefix)); }
GcGenerationCollector(Map<String, JStatData.Counter<?>> jStatCounters, long genIndex) { String collectorKeyPrefix = StringUtils.format("sun.gc.collector.%d", genIndex); String nameKey = StringUtils.format("%s.name", collectorKeyPrefix); StringCounter nameCounter = (StringCounter) jStatCounters.get(nameKey); name = getReadableName(nameCounter.getString()); invocationsCounter = (LongCounter) jStatCounters.get(StringUtils.format("%s.invocations", collectorKeyPrefix)); cpuCounter = (TickCounter) jStatCounters.get(StringUtils.format("%s.time", collectorKeyPrefix)); }
GcGenerationCollector(Map<String, JStatData.Counter<?>> jStatCounters, long genIndex) { String collectorKeyPrefix = StringUtils.format("sun.gc.collector.%d", genIndex); String nameKey = StringUtils.format("%s.name", collectorKeyPrefix); StringCounter nameCounter = (StringCounter) jStatCounters.get(nameKey); name = getReadableName(nameCounter.getString()); invocationsCounter = (LongCounter) jStatCounters.get(StringUtils.format("%s.invocations", collectorKeyPrefix)); cpuCounter = (TickCounter) jStatCounters.get(StringUtils.format("%s.time", collectorKeyPrefix)); }