Fixed test
This commit is contained in:
parent
07cb3c0296
commit
36c4ea90a9
|
@ -1,7 +1,6 @@
|
|||
package org.gcube.smartgears.handler.resourceregistry;
|
||||
|
||||
import java.lang.management.ManagementFactory;
|
||||
import java.lang.management.OperatingSystemMXBean;
|
||||
|
||||
import javax.management.MBeanServer;
|
||||
import javax.management.ObjectName;
|
||||
|
@ -32,7 +31,8 @@ public class HostingNodeManagerTest {
|
|||
Object free = mBeanServer.getAttribute(new ObjectName("java.lang","type","OperatingSystem"), "FreePhysicalMemorySize");
|
||||
logger.debug("Free Memory : {}", free);
|
||||
|
||||
OperatingSystemMXBean mxbean = ManagementFactory.getOperatingSystemMXBean();
|
||||
/* Keep this code to performs checks
|
||||
java.lang.management.OperatingSystemMXBean mxbean = ManagementFactory.getOperatingSystemMXBean();
|
||||
@SuppressWarnings("restriction")
|
||||
com.sun.management.OperatingSystemMXBean sunmxbean = (com.sun.management.OperatingSystemMXBean) mxbean;
|
||||
@SuppressWarnings("restriction")
|
||||
|
@ -41,7 +41,7 @@ public class HostingNodeManagerTest {
|
|||
long totalMemory = sunmxbean.getTotalPhysicalMemorySize();
|
||||
logger.debug("freeMemory : {}", freeMemory);
|
||||
logger.debug("totalMemory : {}", totalMemory);
|
||||
|
||||
*/
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue