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 java.management.jmod - Management Module
JDK 11 java.management.jmod is the JMOD file for JDK 11 Management module.
JDK 11 Management module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\java.management.jmod.
JDK 11 Management module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Management module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\java.management.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ java/lang/management/MonitorInfo.java
/* * Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package java.lang.management; import javax.management.openmbean.CompositeData; import sun.management.MonitorInfoCompositeData; /** * Information about an object monitor lock. An object monitor is locked * when entering a synchronization block or method on that object. * * <h3>MXBean Mapping</h3> * {@code MonitorInfo} is mapped to a {@link CompositeData CompositeData} * with attributes as specified in * the {@link #from from} method. * * @author Mandy Chung * @since 1.6 */ public class MonitorInfo extends LockInfo { private int stackDepth; private StackTraceElement stackFrame; /** * Construct a {@code MonitorInfo} object. * * @param className the fully qualified name of the class of the lock object. * @param identityHashCode the {@link System#identityHashCode * identity hash code} of the lock object. * @param stackDepth the depth in the stack trace where the object monitor * was locked. * @param stackFrame the stack frame that locked the object monitor. * @throws IllegalArgumentException if * {@code stackDepth} ≥ 0 but {@code stackFrame} is {@code null}, * or {@code stackDepth} < 0 but {@code stackFrame} is not * {@code null}. */ public MonitorInfo(String className, int identityHashCode, int stackDepth, StackTraceElement stackFrame) { super(className, identityHashCode); if (stackDepth >= 0 && stackFrame == null) { throw new IllegalArgumentException("Parameter stackDepth is " + stackDepth + " but stackFrame is null"); } if (stackDepth < 0 && stackFrame != null) { throw new IllegalArgumentException("Parameter stackDepth is " + stackDepth + " but stackFrame is not null"); } this.stackDepth = stackDepth; this.stackFrame = stackFrame; } /** * Returns the depth in the stack trace where the object monitor * was locked. The depth is the index to the {@code StackTraceElement} * array returned in the {@link ThreadInfo#getStackTrace} method. * * @return the depth in the stack trace where the object monitor * was locked, or a negative number if not available. */ public int getLockedStackDepth() { return stackDepth; } /** * Returns the stack frame that locked the object monitor. * * @return {@code StackTraceElement} that locked the object monitor, * or {@code null} if not available. */ public StackTraceElement getLockedStackFrame() { return stackFrame; } /** * Returns a {@code MonitorInfo} object represented by the * given {@code CompositeData}. * The given {@code CompositeData} must contain the following attributes * as well as the attributes specified in the * <a href="LockInfo.html#MappedType"> * mapped type</a> for the {@link LockInfo} class: * <table class="striped" style="margin-left:2em"> * <caption style="display:none">The attributes and their types the given CompositeData contains</caption> * <thead> * <tr> * <th scope="col">Attribute Name</th> * <th scope="col">Type</th> * </tr> * </thead> * <tbody style="text-align:left"> * <tr> * <th scope="row">lockedStackFrame</th> * <td><a href="ThreadInfo.html#stackTraceElement"> * {@code CompositeData} for {@code StackTraceElement}</a> as specified * in {@link ThreadInfo#from(CompositeData)} method. * </td> * </tr> * <tr> * <th scope="row">lockedStackDepth</th> * <td>{@code java.lang.Integer}</td> * </tr> * </tbody> * </table> * * @param cd {@code CompositeData} representing a {@code MonitorInfo} * * @throws IllegalArgumentException if {@code cd} does not * represent a {@code MonitorInfo} with the attributes described * above. * * @return a {@code MonitorInfo} object represented * by {@code cd} if {@code cd} is not {@code null}; * {@code null} otherwise. */ public static MonitorInfo from(CompositeData cd) { if (cd == null) { return null; } if (cd instanceof MonitorInfoCompositeData) { return ((MonitorInfoCompositeData) cd).getMonitorInfo(); } else { MonitorInfoCompositeData.validateCompositeData(cd); String className = MonitorInfoCompositeData.getClassName(cd); int identityHashCode = MonitorInfoCompositeData.getIdentityHashCode(cd); int stackDepth = MonitorInfoCompositeData.getLockedStackDepth(cd); StackTraceElement stackFrame = MonitorInfoCompositeData.getLockedStackFrame(cd); return new MonitorInfo(className, identityHashCode, stackDepth, stackFrame); } } }
⏎ java/lang/management/MonitorInfo.java
Or download all of them as a single archive file:
File name: java.management-11.0.1-src.zip File size: 828174 bytes Release date: 2018-11-04 Download
⇒ JDK 11 java.management.rmi.jmod - Management RMI Module
2020-04-30, 86854👍, 0💬
Popular Posts:
Apache Log4j SLF4J Binding allows applications coded to the SLF4J API to use Log4j 2 as the implemen...
JDK 11 jdk.crypto.cryptoki.jmod is the JMOD file for JDK 11 Crypto Cryptoki module. JDK 11 Crypto KI...
JDK 11 jdk.jshell.jmod is the JMOD file for JDK 11 JShell tool, which can be invoked by the "jshell"...
JDK 11 jdk.xml.dom.jmod is the JMOD file for JDK 11 XML DOM module. JDK 11 XML DOM module compiled c...
How to run "javac" command from JDK tools.jar file? "javac" is the Java compiler command that allows...