Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
JDK 11 jdk.jconsole.jmod - JConsole Tool
JDK 11 jdk.jconsole.jmod is the JMOD file for JDK 11 JConsole tool, which can be invoked by the "jconsole" command.
JDK 11 JConsole tool compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.jconsole.jmod.
JDK 11 JConsole tool compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 JConsole tool source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\jdk.jconsole.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ sun/tools/jconsole/ClassTab.java
/* * Copyright (c) 2004, 2012, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package sun.tools.jconsole; import java.awt.*; import java.awt.event.*; import java.io.*; import java.lang.management.*; import java.lang.reflect.*; import javax.swing.*; import javax.swing.border.*; import java.util.concurrent.*; import static sun.tools.jconsole.Formatter.*; import static sun.tools.jconsole.Utilities.*; @SuppressWarnings("serial") class ClassTab extends Tab implements ActionListener { PlotterPanel loadedClassesMeter; TimeComboBox timeComboBox; private JCheckBox verboseCheckBox; private HTMLPane details; private ClassOverviewPanel overviewPanel; private boolean plotterListening = false; private static final String loadedPlotterKey = "loaded"; private static final String totalLoadedPlotterKey = "totalLoaded"; private static final Color loadedPlotterColor = Plotter.defaultColor; private static final Color totalLoadedPlotterColor = Color.red; /* Hierarchy of panels and layouts for this tab: ClassTab (BorderLayout) North: topPanel (BorderLayout) Center: controlPanel (FlowLayout) timeComboBox East: topRightPanel (FlowLayout) verboseCheckBox Center: plotterPanel (BorderLayout) Center: plotter South: bottomPanel (BorderLayout) Center: details */ public static String getTabName() { return Messages.CLASSES; } public ClassTab(VMPanel vmPanel) { super(vmPanel, getTabName()); setLayout(new BorderLayout(0, 0)); setBorder(new EmptyBorder(4, 4, 3, 4)); JPanel topPanel = new JPanel(new BorderLayout()); JPanel plotterPanel = new JPanel(new BorderLayout()); JPanel bottomPanel = new JPanel(new BorderLayout()); add(topPanel, BorderLayout.NORTH); add(plotterPanel, BorderLayout.CENTER); add(bottomPanel, BorderLayout.SOUTH); JPanel controlPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 20, 5)); topPanel.add(controlPanel, BorderLayout.CENTER); verboseCheckBox = new JCheckBox(Messages.VERBOSE_OUTPUT); verboseCheckBox.addActionListener(this); verboseCheckBox.setToolTipText(Messages.VERBOSE_OUTPUT_TOOLTIP); JPanel topRightPanel = new JPanel(); topRightPanel.setBorder(new EmptyBorder(0, 65-8, 0, 70)); topRightPanel.add(verboseCheckBox); topPanel.add(topRightPanel, BorderLayout.AFTER_LINE_ENDS); loadedClassesMeter = new PlotterPanel(Messages.NUMBER_OF_LOADED_CLASSES, Plotter.Unit.NONE, false); loadedClassesMeter.plotter.createSequence(loadedPlotterKey, Messages.LOADED, loadedPlotterColor, true); loadedClassesMeter.plotter.createSequence(totalLoadedPlotterKey, Messages.TOTAL_LOADED, totalLoadedPlotterColor, true); setAccessibleName(loadedClassesMeter.plotter, Messages.CLASS_TAB_LOADED_CLASSES_PLOTTER_ACCESSIBLE_NAME); plotterPanel.add(loadedClassesMeter); timeComboBox = new TimeComboBox(loadedClassesMeter.plotter); controlPanel.add(new LabeledComponent(Messages.TIME_RANGE_COLON, Resources.getMnemonicInt(Messages.TIME_RANGE_COLON), timeComboBox)); LabeledComponent.layout(plotterPanel); bottomPanel.setBorder(new CompoundBorder(new TitledBorder(Messages.DETAILS), new EmptyBorder(10, 10, 10, 10))); details = new HTMLPane(); setAccessibleName(details, Messages.DETAILS); JScrollPane scrollPane = new JScrollPane(details); scrollPane.setPreferredSize(new Dimension(0, 150)); bottomPanel.add(scrollPane, BorderLayout.SOUTH); } public void actionPerformed(ActionEvent ev) { final boolean b = verboseCheckBox.isSelected(); workerAdd(new Runnable() { public void run() { ProxyClient proxyClient = vmPanel.getProxyClient(); try { proxyClient.getClassLoadingMXBean().setVerbose(b); } catch (UndeclaredThrowableException e) { proxyClient.markAsDead(); } catch (IOException ex) { // Ignore } } }); } public SwingWorker<?, ?> newSwingWorker() { final ProxyClient proxyClient = vmPanel.getProxyClient(); if (!plotterListening) { proxyClient.addWeakPropertyChangeListener(loadedClassesMeter.plotter); plotterListening = true; } return new SwingWorker<Boolean, Object>() { private long clCount, cuCount, ctCount; private boolean isVerbose; private String detailsStr; private long timeStamp; public Boolean doInBackground() { try { ClassLoadingMXBean classLoadingMBean = proxyClient.getClassLoadingMXBean(); clCount = classLoadingMBean.getLoadedClassCount(); cuCount = classLoadingMBean.getUnloadedClassCount(); ctCount = classLoadingMBean.getTotalLoadedClassCount(); isVerbose = classLoadingMBean.isVerbose(); detailsStr = formatDetails(); timeStamp = System.currentTimeMillis(); return true; } catch (UndeclaredThrowableException e) { proxyClient.markAsDead(); return false; } catch (IOException e) { return false; } } protected void done() { try { if (get()) { loadedClassesMeter.plotter.addValues(timeStamp, clCount, ctCount); if (overviewPanel != null) { overviewPanel.updateClassInfo(ctCount, clCount); overviewPanel.getPlotter().addValues(timeStamp, clCount); } loadedClassesMeter.setValueLabel(clCount + ""); verboseCheckBox.setSelected(isVerbose); details.setText(detailsStr); } } catch (InterruptedException ex) { } catch (ExecutionException ex) { if (JConsole.isDebug()) { ex.printStackTrace(); } } } private String formatDetails() { String text = "<table cellspacing=0 cellpadding=0>"; long time = System.currentTimeMillis(); String timeStamp = formatDateTime(time); text += newRow(Messages.TIME, timeStamp); text += newRow(Messages.CURRENT_CLASSES_LOADED, justify(clCount, 5)); text += newRow(Messages.TOTAL_CLASSES_LOADED, justify(ctCount, 5)); text += newRow(Messages.TOTAL_CLASSES_UNLOADED, justify(cuCount, 5)); return text; } }; } OverviewPanel[] getOverviewPanels() { if (overviewPanel == null) { overviewPanel = new ClassOverviewPanel(); } return new OverviewPanel[] { overviewPanel }; } private static class ClassOverviewPanel extends OverviewPanel { ClassOverviewPanel() { super(Messages.CLASSES, loadedPlotterKey, Messages.LOADED, null); } private void updateClassInfo(long total, long loaded) { long unloaded = (total - loaded); getInfoLabel().setText(Resources.format(Messages.CLASS_TAB_INFO_LABEL_FORMAT, loaded, unloaded, total)); } } }
⏎ sun/tools/jconsole/ClassTab.java
Or download all of them as a single archive file:
File name: jdk.jconsole-11.0.1-src.zip File size: 164713 bytes Release date: 2018-11-04 Download
⇒ JDK 11 jdk.jdeps.jmod - JDeps Tool
2020-07-07, 21997👍, 0💬
Popular Posts:
JDK 11 jdk.xml.dom.jmod is the JMOD file for JDK 11 XML DOM module. JDK 11 XML DOM module compiled c...
Jackson is "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java"....
What is jxl.jar 2.6.12? jxl.jar 2.6.12 is the JAR file for Java Excel API 2.6.12, which is a Java li...
What Is poi-scratchpad-5.2.3.jar ?poi-scratchpad-5.2.3.jar is one of the JAR files for Apache POI 5....
What Is activation.jar? I heard it's related to JAF (JavaBeans Activation Framework) 1.0.2? The if y...