< prev index next >
jdk/src/jdk.management/windows/classes/com/sun/management/internal/OperatingSystemImpl.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 21,33 ****
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
! package sun.management;
import com.sun.management.OperatingSystemMXBean;
/**
* Implementation class for the operating system.
* Standard and committed hotspot-specific metrics if any.
*
--- 21,35 ----
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
! package com.sun.management.internal;
import com.sun.management.OperatingSystemMXBean;
+ import sun.management.BaseOperatingSystemImpl;
+ import sun.management.VMManagement;
/**
* Implementation class for the operating system.
* Standard and committed hotspot-specific metrics if any.
*
*** 43,82 ****
--- 45,92 ----
OperatingSystemImpl(VMManagement vm) {
super(vm);
}
+ @Override
public long getCommittedVirtualMemorySize() {
synchronized (psapiLock) {
return getCommittedVirtualMemorySize0();
}
}
+ @Override
public long getTotalSwapSpaceSize() {
return getTotalSwapSpaceSize0();
}
+ @Override
public long getFreeSwapSpaceSize() {
return getFreeSwapSpaceSize0();
}
+ @Override
public long getProcessCpuTime() {
return getProcessCpuTime0();
}
+ @Override
public long getFreePhysicalMemorySize() {
return getFreePhysicalMemorySize0();
}
+ @Override
public long getTotalPhysicalMemorySize() {
return getTotalPhysicalMemorySize0();
}
+ @Override
public double getSystemCpuLoad() {
return getSystemCpuLoad0();
}
+ @Override
public double getProcessCpuLoad() {
return getProcessCpuLoad0();
}
/* native methods */
< prev index next >