Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/ikvm-fork.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmallsql <smallsql>2011-07-11 00:46:13 +0400
committersmallsql <smallsql>2011-07-11 00:46:13 +0400
commit939499a05638bc6c690f46a14557907f955a84dd (patch)
tree3f3b60dc21f8fb5cc29f8fceabc4984597e43282 /openjdk/com
parentb242b9b647143c22887d21e342da807a63bd864c (diff)
Add methods in OperatingSystem for Java 7
Diffstat (limited to 'openjdk/com')
-rw-r--r--openjdk/com/sun/management/OperatingSystem.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/openjdk/com/sun/management/OperatingSystem.java b/openjdk/com/sun/management/OperatingSystem.java
index 7357cef8..8dcfe32d 100644
--- a/openjdk/com/sun/management/OperatingSystem.java
+++ b/openjdk/com/sun/management/OperatingSystem.java
@@ -24,6 +24,7 @@
package com.sun.management;
+import ikvm.internal.NotYetImplementedError;
import cli.System.Activator;
import cli.System.Diagnostics.Process;
import cli.System.Reflection.Assembly;
@@ -82,6 +83,16 @@ class OperatingSystem extends OperatingSystemImpl implements OperatingSystemMXBe
{
return GetMemoryStatusEx().ullAvailPageFile;
}
+
+ public /*native*/ double getSystemCpuLoad()
+ {
+ throw new NotYetImplementedError(); //TODO JDK7
+ }
+
+ public /*native*/ double getProcessCpuLoad()
+ {
+ throw new NotYetImplementedError(); //TODO JDK7
+ }
private static long get(String propertyName)
{