Java Code Examples for sun.jvmstat.monitor.Monitor#getName()
The following examples show how to use
sun.jvmstat.monitor.Monitor#getName() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JvmstatCountersPackages.java From visualvm with GNU General Public License v2.0 | 5 votes |
private TracerPackage<Application>[] computePackages() { List counters; Iterator it; Map<String,JvmstatCountersPackage> packages = new HashMap(); try { counters = monitoredVm.findByPattern(".*"); Collections.sort(counters,new Comparator<Monitor>() { public int compare(Monitor o1, Monitor o2) { return o1.getName().compareTo(o2.getName()); } }); it = counters.iterator(); for (int i=0;it.hasNext();i++) { Monitor monitor = (Monitor) it.next(); String unitsName = Utils.getUnits(monitor).toString(); String var = Utils.getVariability(monitor).toString(); String name = monitor.getName(); String baseName = monitor.getBaseName(); if (unitsName.equals(Units_STRING) || unitsName.equals(Units_INVALID) || unitsName.equals(Units_NONE)) { continue; } if (var.equals(Variability_INVALID) || var.equals(Variability_CONSTANT)) { continue; } if (monitor.isVector()) { continue; } getPackage(packages,monitor,i,name); } } catch (MonitorException ex) { LOGGER.log(Level.INFO,"findByPattern failed",ex); // NOI18N } return packages.values().toArray(new TracerPackage[0]); }
Example 2
Source File: JCmd.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
public int compare(Monitor m1, Monitor m2) { String name1 = m1.getName(); String name2 = m2.getName(); return name1.compareTo(name2); }
Example 3
Source File: JCmd.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
public int compare(Monitor m1, Monitor m2) { String name1 = m1.getName(); String name2 = m2.getName(); return name1.compareTo(name2); }
Example 4
Source File: JCmd.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
public int compare(Monitor m1, Monitor m2) { String name1 = m1.getName(); String name2 = m2.getName(); return name1.compareTo(name2); }
Example 5
Source File: JCmd.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public int compare(Monitor m1, Monitor m2) { String name1 = m1.getName(); String name2 = m2.getName(); return name1.compareTo(name2); }
Example 6
Source File: JCmd.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public int compare(Monitor m1, Monitor m2) { String name1 = m1.getName(); String name2 = m2.getName(); return name1.compareTo(name2); }
Example 7
Source File: JCmd.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public int compare(Monitor m1, Monitor m2) { String name1 = m1.getName(); String name2 = m2.getName(); return name1.compareTo(name2); }
Example 8
Source File: JCmd.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
public int compare(Monitor m1, Monitor m2) { String name1 = m1.getName(); String name2 = m2.getName(); return name1.compareTo(name2); }
Example 9
Source File: JCmd.java From hottub with GNU General Public License v2.0 | 4 votes |
public int compare(Monitor m1, Monitor m2) { String name1 = m1.getName(); String name2 = m2.getName(); return name1.compareTo(name2); }
Example 10
Source File: JCmd.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public int compare(Monitor m1, Monitor m2) { String name1 = m1.getName(); String name2 = m2.getName(); return name1.compareTo(name2); }
Example 11
Source File: JvmstatCountersPackage.java From visualvm with GNU General Public License v2.0 | 4 votes |
void addProbe(Monitor monitor, int pos, String probeName) { String descName = "Counter: "+monitor.getName()+", Units: "+Utils.getUnits(monitor); TracerProbeDescriptor desc = new TracerProbeDescriptor(probeName,descName,ICON,pos,true); probes.put(desc,new JvmstatCounterProbe(probeName, descName, monitor)); }
Example 12
Source File: JCmd.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
public int compare(Monitor m1, Monitor m2) { String name1 = m1.getName(); String name2 = m2.getName(); return name1.compareTo(name2); }
Example 13
Source File: JCmd.java From jdk8u_jdk with GNU General Public License v2.0 | 4 votes |
public int compare(Monitor m1, Monitor m2) { String name1 = m1.getName(); String name2 = m2.getName(); return name1.compareTo(name2); }
Example 14
Source File: JCmd.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
public int compare(Monitor m1, Monitor m2) { String name1 = m1.getName(); String name2 = m2.getName(); return name1.compareTo(name2); }
Example 15
Source File: JCmd.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 4 votes |
public int compare(Monitor m1, Monitor m2) { String name1 = m1.getName(); String name2 = m2.getName(); return name1.compareTo(name2); }