Package sun.jvmstat.monitor

Examples of sun.jvmstat.monitor.MonitoredHost


    }
    return false;
  }
 
  public static Integer getPid(Class<?> mainClass) {
    MonitoredHost monitoredHost;
    Set<Integer> activeVmPids;
    try {
      monitoredHost = MonitoredHost.getMonitoredHost(new HostIdentifier((String) null));
      activeVmPids = monitoredHost.activeVms();
      MonitoredVm mvm = null;
      for (Integer vmPid : activeVmPids) {
        try {
          mvm = monitoredHost.getMonitoredVm(new VmIdentifier(vmPid.toString()));
          String mvmMainClass = MonitoredVmUtil.mainClass(mvm, true);
          if (mainClass.getName().equals(mvmMainClass)) {
            return vmPid;
          }
        } finally {
View Full Code Here

TOP

Related Classes of sun.jvmstat.monitor.MonitoredHost

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.