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.management.jmod - Management Module
JDK 11 jdk.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\jdk.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\jdk.management.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ com/sun/management/GcInfo.java
/* * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.management; import java.lang.management.MemoryUsage; import javax.management.openmbean.CompositeData; import javax.management.openmbean.CompositeDataView; import javax.management.openmbean.CompositeType; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.Map; import com.sun.management.internal.GcInfoCompositeData; import com.sun.management.internal.GcInfoBuilder; /** * Garbage collection information. It contains the following * information for one garbage collection as well as GC-specific * attributes: * <blockquote> * <ul> * <li>Start time</li> * <li>End time</li> * <li>Duration</li> * <li>Memory usage before the collection starts</li> * <li>Memory usage after the collection ends</li> * </ul> * </blockquote> * * <p> * {@code GcInfo} is a {@link CompositeData CompositeData} * The GC-specific attributes can be obtained via the CompositeData * interface. This is a historical relic, and other classes should * not copy this pattern. Use {@link CompositeDataView} instead. * * <h3>MXBean Mapping</h3> * {@code GcInfo} is mapped to a {@link CompositeData CompositeData} * with attributes as specified in the {@link #from from} method. * * @author Mandy Chung * @since 1.5 */ public class GcInfo implements CompositeData, CompositeDataView { private final long index; private final long startTime; private final long endTime; private final Map<String, MemoryUsage> usageBeforeGc; private final Map<String, MemoryUsage> usageAfterGc; private final Object[] extAttributes; private final CompositeData cdata; private final GcInfoBuilder builder; private GcInfo(GcInfoBuilder builder, long index, long startTime, long endTime, MemoryUsage[] muBeforeGc, MemoryUsage[] muAfterGc, Object[] extAttributes) { this.builder = builder; this.index = index; this.startTime = startTime; this.endTime = endTime; String[] poolNames = builder.getPoolNames(); this.usageBeforeGc = new HashMap<String, MemoryUsage>(poolNames.length); this.usageAfterGc = new HashMap<String, MemoryUsage>(poolNames.length); for (int i = 0; i < poolNames.length; i++) { this.usageBeforeGc.put(poolNames[i], muBeforeGc[i]); this.usageAfterGc.put(poolNames[i], muAfterGc[i]); } this.extAttributes = extAttributes; this.cdata = new GcInfoCompositeData(this, builder, extAttributes); } private GcInfo(CompositeData cd) { GcInfoCompositeData.validateCompositeData(cd); this.index = GcInfoCompositeData.getId(cd); this.startTime = GcInfoCompositeData.getStartTime(cd); this.endTime = GcInfoCompositeData.getEndTime(cd); this.usageBeforeGc = GcInfoCompositeData.getMemoryUsageBeforeGc(cd); this.usageAfterGc = GcInfoCompositeData.getMemoryUsageAfterGc(cd); this.extAttributes = null; this.builder = null; this.cdata = cd; } /** * Returns the identifier of this garbage collection which is * the number of collections that this collector has done. * * @return the identifier of this garbage collection which is * the number of collections that this collector has done. */ public long getId() { return index; } /** * Returns the start time of this GC in milliseconds * since the Java virtual machine was started. * * @return the start time of this GC. */ public long getStartTime() { return startTime; } /** * Returns the end time of this GC in milliseconds * since the Java virtual machine was started. * * @return the end time of this GC. */ public long getEndTime() { return endTime; } /** * Returns the elapsed time of this GC in milliseconds. * * @return the elapsed time of this GC in milliseconds. */ public long getDuration() { return endTime - startTime; } /** * Returns the memory usage of all memory pools * at the beginning of this GC. * This method returns * a {@code Map} of the name of a memory pool * to the memory usage of the corresponding * memory pool before GC starts. * * @return a {@code Map} of memory pool names to the memory * usage of a memory pool before GC starts. */ public Map<String, MemoryUsage> getMemoryUsageBeforeGc() { return Collections.unmodifiableMap(usageBeforeGc); } /** * Returns the memory usage of all memory pools * at the end of this GC. * This method returns * a {@code Map} of the name of a memory pool * to the memory usage of the corresponding * memory pool when GC finishes. * * @return a {@code Map} of memory pool names to the memory * usage of a memory pool when GC finishes. */ public Map<String, MemoryUsage> getMemoryUsageAfterGc() { return Collections.unmodifiableMap(usageAfterGc); } /** * Returns a {@code GcInfo} object represented by the * given {@code CompositeData}. The given * {@code CompositeData} must contain * all the following attributes: * * <blockquote> * <table class="striped"><caption style="display:none">description</caption> * <thead> * <tr> * <th scope="col" style="text-align:left">Attribute Name</th> * <th scope="col" style="text-align:left">Type</th> * </tr> * </thead> * <tbody> * <tr> * <th scope="row">index</th> * <td>{@code java.lang.Long}</td> * </tr> * <tr> * <th scope="row">startTime</th> * <td>{@code java.lang.Long}</td> * </tr> * <tr> * <th scope="row">endTime</th> * <td>{@code java.lang.Long}</td> * </tr> * <tr> * <th scope="row">memoryUsageBeforeGc</th> * <td>{@code javax.management.openmbean.TabularData}</td> * </tr> * <tr> * <th scope="row">memoryUsageAfterGc</th> * <td>{@code javax.management.openmbean.TabularData}</td> * </tr> * </tbody> * </table> * </blockquote> * * @throws IllegalArgumentException if {@code cd} does not * represent a {@code GcInfo} object with the attributes * described above. * * @return a {@code GcInfo} object represented by {@code cd} * if {@code cd} is not {@code null}; {@code null} otherwise. */ public static GcInfo from(CompositeData cd) { if (cd == null) { return null; } if (cd instanceof GcInfoCompositeData) { return ((GcInfoCompositeData) cd).getGcInfo(); } else { return new GcInfo(cd); } } // Implementation of the CompositeData interface public boolean containsKey(String key) { return cdata.containsKey(key); } public boolean containsValue(Object value) { return cdata.containsValue(value); } public boolean equals(Object obj) { return cdata.equals(obj); } public Object get(String key) { return cdata.get(key); } public Object[] getAll(String[] keys) { return cdata.getAll(keys); } public CompositeType getCompositeType() { return cdata.getCompositeType(); } public int hashCode() { return cdata.hashCode(); } public String toString() { return cdata.toString(); } public Collection<?> values() { return cdata.values(); } /** * Return the {@code CompositeData} representation of this * {@code GcInfo}, including any GC-specific attributes. The * returned value will have at least all the attributes described * in the {@link #from(CompositeData) from} method, plus optionally * other attributes. * * @param ct the {@code CompositeType} that the caller expects. * This parameter is ignored and can be null. * * @return the {@code CompositeData} representation. */ public CompositeData toCompositeData(CompositeType ct) { return cdata; } }
⏎ com/sun/management/GcInfo.java
Or download all of them as a single archive file:
File name: jdk.management-11.0.1-src.zip File size: 38186 bytes Release date: 2018-11-04 Download
⇒ JDK 11 jdk.management.agent.jmod - Management Agent Module
2020-06-21, 10792👍, 0💬
Popular Posts:
JDK 11 jdk.hotspot.agent.jmod is the JMOD file for JDK 11 Hotspot Agent module. JDK 11 Hotspot Agent...
What Is commons-fileupload-1.3.3 .jar?commons-fileupload-1.3.3 .jaris the JAR file for Apache Common...
JDK 17 jdk.hotspot.agent.jmod is the JMOD file for JDK 17 Hotspot Agent module. JDK 17 Hotspot Agent...
Old version of xml-apis.jar. JAR File Size and Download Location: File name: xmlParserAPIs.jar File ...
JDK 11 jdk.javadoc.jmod is the JMOD file for JDK 11 Java Document tool, which can be invoked by the ...