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 17 jdk.internal.jvmstat.jmod - Internal JVM Stat Module
JDK 17 jdk.internal.JVM Stat.jmod is the JMOD file for JDK 17 Internal Jvmstat module.
JDK 17 Internal JVM Stat module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\jdk.internal.jvmstat.jmod.
JDK 17 Internal JVM Stat module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Internal JVM Stat module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\jdk.internal.jvmstat.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ sun/jvmstat/perfdata/monitor/AbstractPerfDataBuffer.java
/* * Copyright (c) 2004, 2014, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package sun.jvmstat.perfdata.monitor; import sun.jvmstat.monitor.*; import java.util.*; import java.io.*; import java.lang.reflect.*; import java.nio.ByteBuffer; /** * Abstraction for the HotSpot PerfData instrumentation buffer. This class * is responsible for acquiring access to the instrumentation buffer for * a target HotSpot Java Virtual Machine and providing method level access * to its contents. * * @author Brian Doherty * @since 1.5 */ public abstract class AbstractPerfDataBuffer { /** * Reference to the concrete instance created by the * {@link #createPerfDataBuffer} method. */ protected PerfDataBufferImpl impl; /** * Get the Local Java Virtual Machine Identifier, or <em>lvmid</em> * for the target JVM associated with this instrumentation buffer. * * @return int - the lvmid */ public int getLocalVmId() { return impl.getLocalVmId(); } /** * Get a copy of the raw instrumentation data. * This method is used to get a copy of the current bytes in the * instrumentation buffer. It is generally used for transporting * those bytes over the network. * * @return byte[] - a copy of the bytes in the instrumentation buffer. */ public byte[] getBytes() { return impl.getBytes(); } /** * Get the capacity of the instrumentation buffer. * * @return int - the capacity, or size, of the instrumentation buffer. */ public int getCapacity() { return impl.getCapacity(); } /** * Find a named Instrumentation object. * * This method will look for the named instrumentation object in the * instrumentation exported by this Java Virtual Machine. If an * instrumentation object with the given name exists, a Monitor interface * to that object will be return. Otherwise, the method returns * {@code null}. * * @param name the name of the Instrumentation object to find. * @return Monitor - the {@link Monitor} object that can be used to * monitor the named instrumentation object, or * {@code null} if the named object doesn't exist. * @throws MonitorException Thrown if an error occurs while communicating * with the target Java Virtual Machine. */ public Monitor findByName(String name) throws MonitorException { return impl.findByName(name); } /** * Find all Instrumentation objects with names matching the given pattern. * * This method returns a {@link List} of Monitor objects such that * the name of each object matches the given pattern. * * @param patternString a string containing a pattern as described in * {@link java.util.regex.Pattern}. * @return {@code List<Monitor>} - a List of {@link Monitor} * objects that can be used to * monitor the instrumentation objects whose names match * the given pattern. If no instrumentation objects have` * names matching the given pattern, then an empty List * is returned. * @throws MonitorException Thrown if an error occurs while communicating * with the target Java Virtual Machine. * @see java.util.regex.Pattern */ public List<Monitor> findByPattern(String patternString) throws MonitorException { return impl.findByPattern(patternString); } /** * Get a list of the inserted and removed monitors since last called. * * @return MonitorStatus - the status of available Monitors for the * target Java Virtual Machine. * @throws MonitorException Thrown if communications errors occur * while communicating with the target. */ public MonitorStatus getMonitorStatus() throws MonitorException { return impl.getMonitorStatus(); } /** * Get the ByteBuffer containing the instrumentation data. * * @return ByteBuffer - a ByteBuffer object that refers to the * instrumentation data. */ public ByteBuffer getByteBuffer() { return impl.getByteBuffer(); } /** * Create the perfdata instrumentation buffer for the given lvmid * using the given ByteBuffer object as the source of the instrumentation * data. This method parses the instrumentation buffer header to determine * key characteristics of the instrumentation buffer and then dynamically * loads the appropriate class to handle the particular instrumentation * version. * * @param bb the ByteBuffer that references the instrumentation data. * @param lvmid the Local Java Virtual Machine identifier for this * instrumentation buffer. * * @throws MonitorException */ protected void createPerfDataBuffer(ByteBuffer bb, int lvmid) throws MonitorException { int majorVersion = AbstractPerfDataBufferPrologue.getMajorVersion(bb); int minorVersion = AbstractPerfDataBufferPrologue.getMinorVersion(bb); // instantiate the version specific class String classname = "sun.jvmstat.perfdata.monitor.v" + majorVersion + "_" + minorVersion + ".PerfDataBuffer"; try { Class<?> implClass = Class.forName(classname); Constructor<?> cons = implClass.getConstructor(new Class<?>[] { Class.forName("java.nio.ByteBuffer"), Integer.TYPE }); impl = (PerfDataBufferImpl)cons.newInstance(new Object[] { bb, lvmid }); } catch (ClassNotFoundException e) { // from Class.forName(); throw new IllegalArgumentException( "Could not find " + classname + ": " + e.getMessage(), e); } catch (NoSuchMethodException e) { // from Class.getConstructor(); throw new IllegalArgumentException( "Expected constructor missing in " + classname + ": " + e.getMessage(), e); } catch (IllegalAccessException e) { // from Constructor.newInstance() throw new IllegalArgumentException( "Unexpected constructor access in " + classname + ": " + e.getMessage(), e); } catch (InstantiationException e) { throw new IllegalArgumentException( classname + "is abstract: " + e.getMessage(), e); } catch (InvocationTargetException e) { Throwable cause = e.getCause(); if (cause instanceof MonitorException) { throw (MonitorException)cause; } throw new RuntimeException("Unexpected exception: " + e.getMessage() , e); } } }
⏎ sun/jvmstat/perfdata/monitor/AbstractPerfDataBuffer.java
Or download all of them as a single archive file:
File name: jdk.internal.jvmstat-17.0.5-src.zip File size: 89372 bytes Release date: 2022-09-13 Download
⇒ JDK 17 jdk.internal.le.jmod - Internal Line Editing Module
2023-08-25, 3613👍, 0💬
Popular Posts:
How to download and install ojdbc6.jar for Oracle 11g R2? ojdbc6.jar for Oracle 11g R2 is a Java 6, ...
iText is an ideal library for developers looking to enhance web- and other applications with dynamic...
Java Advanced Imaging (JAI) is a Java platform extension API that provides a set of object-oriented ...
Apache Commons Lang 3 is the 3rd version of Apache Commons Lang, which provides a host of helper uti...
JSP(tm) Standard Tag Library 1.0 implementation - Jakarta Taglibs hosts the Standard Taglib 1.0, an ...