} else if ( metricName.equalsIgnoreCase(TOTAL_SWAP_SPACE_SIZE)) {
nodeMemory.setSwapTotal(metricValue);
}
}
private DuccNodeMemory collect() {
DuccNodeMemory nodeMemory = new DuccNodeMemory();
OperatingSystemMXBean operatingSystemMXBean = ManagementFactory.getOperatingSystemMXBean();
for (Method method : operatingSystemMXBean.getClass().getDeclaredMethods()) {
method.setAccessible(true);
if (method.getName().startsWith("get")
&& Modifier.isPublic(method.getModifiers())) {