remove deprecated methods

This commit is contained in:
Shinsuke Sugaya 2018-04-05 17:09:34 +09:00
parent 1cb631adda
commit 359d98b080

View file

@ -90,14 +90,14 @@ public class SystemMonitorTarget implements TimeoutTarget {
final Mem mem = jvmStats.getMem();
buf.append("\"memory\":{");
buf.append("\"heap\":{");
append(buf, "used", () -> mem.getHeapUsed().bytesAsInt()).append(',');
append(buf, "committed", () -> mem.getHeapCommitted().bytesAsInt()).append(',');
append(buf, "max", () -> mem.getHeapMax().bytesAsInt()).append(',');
append(buf, "used", () -> mem.getHeapUsed().getBytes()).append(',');
append(buf, "committed", () -> mem.getHeapCommitted().getBytes()).append(',');
append(buf, "max", () -> mem.getHeapMax().getBytes()).append(',');
append(buf, "percent", () -> mem.getHeapUsedPercent());
buf.append("},");
buf.append("\"non_heap\":{");
append(buf, "used", () -> mem.getNonHeapUsed().bytesAsInt()).append(',');
append(buf, "committed", () -> mem.getNonHeapCommitted().bytesAsInt());
append(buf, "used", () -> mem.getNonHeapUsed().getBytes()).append(',');
append(buf, "committed", () -> mem.getNonHeapCommitted().getBytes());
buf.append('}');
buf.append("},");
final List<BufferPool> bufferPools = jvmStats.getBufferPools();
@ -106,8 +106,8 @@ public class SystemMonitorTarget implements TimeoutTarget {
final StringBuilder b = new StringBuilder();
b.append('"').append(StringEscapeUtils.escapeJson(p.getName())).append("\":{");
append(b, "count", () -> p.getCount()).append(',');
append(b, "used", () -> p.getUsed().bytesAsInt()).append(',');
append(b, "capacity", () -> p.getTotalCapacity().bytesAsInt()).append('}');
append(b, "used", () -> p.getUsed().getBytes()).append(',');
append(b, "capacity", () -> p.getTotalCapacity().getBytes()).append('}');
return b.toString();
}).collect(Collectors.joining(",")));
buf.append("},");