home *** CD-ROM | disk | FTP | other *** search
- package sun.management;
-
- import java.lang.management.RuntimeMXBean;
- import java.util.HashMap;
- import java.util.List;
- import java.util.Map;
- import java.util.Properties;
-
- class RuntimeImpl implements RuntimeMXBean {
- private final VMManagement jvm;
- private final long vmStartupTime;
-
- RuntimeImpl(VMManagement var1) {
- this.jvm = var1;
- this.vmStartupTime = this.jvm.getStartupTime();
- }
-
- public String getName() {
- return this.jvm.getVmId();
- }
-
- public String getManagementSpecVersion() {
- return this.jvm.getManagementVersion();
- }
-
- public String getVmName() {
- return this.jvm.getVmName();
- }
-
- public String getVmVendor() {
- return this.jvm.getVmVendor();
- }
-
- public String getVmVersion() {
- return this.jvm.getVmVersion();
- }
-
- public String getSpecName() {
- return this.jvm.getVmSpecName();
- }
-
- public String getSpecVendor() {
- return this.jvm.getVmSpecVendor();
- }
-
- public String getSpecVersion() {
- return this.jvm.getVmSpecVersion();
- }
-
- public String getClassPath() {
- return this.jvm.getClassPath();
- }
-
- public String getLibraryPath() {
- return this.jvm.getLibraryPath();
- }
-
- public String getBootClassPath() {
- if (!this.isBootClassPathSupported()) {
- throw new UnsupportedOperationException("Boot class path mechanism is not supported");
- } else {
- ManagementFactory.checkMonitorAccess();
- return this.jvm.getBootClassPath();
- }
- }
-
- public List<String> getInputArguments() {
- ManagementFactory.checkMonitorAccess();
- return this.jvm.getVmArguments();
- }
-
- public long getUptime() {
- long var1 = System.currentTimeMillis();
- return var1 - this.vmStartupTime;
- }
-
- public long getStartTime() {
- return this.vmStartupTime;
- }
-
- public boolean isBootClassPathSupported() {
- return this.jvm.isBootClassPathSupported();
- }
-
- public Map<String, String> getSystemProperties() {
- Properties var1 = System.getProperties();
- HashMap var2 = new HashMap();
-
- for(String var5 : var1.stringPropertyNames()) {
- String var6 = var1.getProperty(var5);
- var2.put(var5, var6);
- }
-
- return var2;
- }
- }
-