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.management.jmod - Management Module
JDK 17 jdk.management.jmod is the JMOD file for JDK 17 Management module.
JDK 17 Management module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\jdk.management.jmod.
JDK 17 Management module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Management module source code files are stored in \fyicenter\jdk-17.0.5\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/GarbageCollectionNotificationInfo.java
/* * Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.management; import javax.management.openmbean.CompositeData; import javax.management.openmbean.CompositeDataView; import javax.management.openmbean.CompositeType; import com.sun.management.internal.GarbageCollectionNotifInfoCompositeData; /** * The information about a garbage collection * * <p> * A garbage collection notification is emitted by {@link GarbageCollectorMXBean} * when the Java virtual machine completes a garbage collection action * The notification emitted will contain the garbage collection notification * information about the status of the memory: * <ul> * <li>The name of the garbage collector used to perform the collection.</li> * <li>The action performed by the garbage collector.</li> * <li>The cause of the garbage collection action.</li> * <li>A {@link GcInfo} object containing some statistics about the GC cycle (start time, end time) and the memory usage before and after the GC cycle.</li> * </ul> * * <p> * A {@link CompositeData CompositeData} representing * the {@code GarbageCollectionNotificationInfo} object * is stored in the * {@linkplain javax.management.Notification#setUserData userdata} * of a {@linkplain javax.management.Notification notification}. * The {@link #from from} method is provided to convert from * a {@code CompositeData} to a {@code GarbageCollectionNotificationInfo} * object. For example: * * <blockquote><pre> * Notification notif; * * // receive the notification emitted by a GarbageCollectorMXBean and set to notif * ... * * String notifType = notif.getType(); * if (notifType.equals(GarbageCollectionNotificationInfo.GARBAGE_COLLECTION_NOTIFICATION)) { * // retrieve the garbage collection notification information * CompositeData cd = (CompositeData) notif.getUserData(); * GarbageCollectionNotificationInfo info = GarbageCollectionNotificationInfo.from(cd); * .... * } * </pre></blockquote> * * <p> * The type of the notification emitted by a {@code GarbageCollectorMXBean} is: * <ul> * <li>A {@linkplain #GARBAGE_COLLECTION_NOTIFICATION garbage collection notification}. * <br>Used by every notification emitted by the garbage collector, the details about * the notification are provided in the {@linkplain #getGcAction action} String * </li> * </ul> **/ public class GarbageCollectionNotificationInfo implements CompositeDataView { private final String gcName; private final String gcAction; private final String gcCause; private final GcInfo gcInfo; private final CompositeData cdata; /** * Notification type denoting that * the Java virtual machine has completed a garbage collection cycle. * This notification is emitted by a {@link GarbageCollectorMXBean}. * The value of this notification type is * {@code com.sun.management.gc.notification}. */ public static final String GARBAGE_COLLECTION_NOTIFICATION = "com.sun.management.gc.notification"; /** * Constructs a {@code GarbageCollectionNotificationInfo} object. * * @param gcName The name of the garbage collector used to perform the collection * @param gcAction The name of the action performed by the garbage collector * @param gcCause The cause of the garbage collection action * @param gcInfo a GcInfo object providing statistics about the GC cycle */ public GarbageCollectionNotificationInfo(String gcName, String gcAction, String gcCause, GcInfo gcInfo) { if (gcName == null) { throw new NullPointerException("Null gcName"); } if (gcAction == null) { throw new NullPointerException("Null gcAction"); } if (gcCause == null) { throw new NullPointerException("Null gcCause"); } this.gcName = gcName; this.gcAction = gcAction; this.gcCause = gcCause; this.gcInfo = gcInfo; this.cdata = new GarbageCollectionNotifInfoCompositeData(this); } GarbageCollectionNotificationInfo(CompositeData cd) { GarbageCollectionNotifInfoCompositeData.validateCompositeData(cd); this.gcName = GarbageCollectionNotifInfoCompositeData.getGcName(cd); this.gcAction = GarbageCollectionNotifInfoCompositeData.getGcAction(cd); this.gcCause = GarbageCollectionNotifInfoCompositeData.getGcCause(cd); this.gcInfo = GarbageCollectionNotifInfoCompositeData.getGcInfo(cd); this.cdata = cd; } /** * Returns the name of the garbage collector used to perform the collection * * @return the name of the garbage collector used to perform the collection */ public String getGcName() { return gcName; } /** * Returns the action performed by the garbage collector * * @return the action performed by the garbage collector */ public String getGcAction() { return gcAction; } /** * Returns the cause of the garbage collection * * @return the cause of the garbage collection */ public String getGcCause() { return gcCause; } /** * Returns the GC information related to the last garbage collection * * @return the GC information related to the * last garbage collection */ public GcInfo getGcInfo() { return gcInfo; } /** * Returns a {@code GarbageCollectionNotificationInfo} object represented by the * given {@code CompositeData}. * The given {@code CompositeData} must contain * 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">gcName</th> * <td>{@code java.lang.String}</td> * </tr> * <tr> * <th scope="row">gcAction</th> * <td>{@code java.lang.String}</td> * </tr> * <tr> * <th scope="row">gcCause</th> * <td>{@code java.lang.String}</td> * </tr> * <tr> * <th scope="row">gcInfo</th> * <td>{@code javax.management.openmbean.CompositeData}</td> * </tr> * </tbody> * </table> * </blockquote> * * @param cd {@code CompositeData} representing a * {@code GarbageCollectionNotificationInfo} * * @throws IllegalArgumentException if {@code cd} does not * represent a {@code GarbaageCollectionNotificationInfo} object. * * @return a {@code GarbageCollectionNotificationInfo} object represented * by {@code cd} if {@code cd} is not {@code null}; * {@code null} otherwise. */ public static GarbageCollectionNotificationInfo from(CompositeData cd) { if (cd == null) { return null; } if (cd instanceof GarbageCollectionNotifInfoCompositeData) { return ((GarbageCollectionNotifInfoCompositeData) cd).getGarbageCollectionNotifInfo(); } else { return new GarbageCollectionNotificationInfo(cd); } } public CompositeData toCompositeData(CompositeType ct) { return cdata; } }
⏎ com/sun/management/GarbageCollectionNotificationInfo.java
Or download all of them as a single archive file:
File name: jdk.management-17.0.5-src.zip File size: 42254 bytes Release date: 2022-09-13 Download
⇒ JDK 17 jdk.management.agent.jmod - Management Agent Module
2023-07-29, 1971👍, 0💬
Popular Posts:
Commons VFS provides a single API for accessing various different file systems. It presents a unifor...
JLayer is a library that decodes/plays/converts MPEG 1/2/2.5 Layer 1/2/3 (i.e. MP3) in real time for...
JDK 11 jrt-fs.jar is the JAR file for JDK 11 JRT-FS (Java RunTime - File System) defined in the "jdk...
Apache BCEL Source Code Files are inside the Apache BCEL source package file like bcel-6.6.1-src.zip...
What Is commons-collections4-4.4 .jar?commons-collections4-4.4 .jaris the JAR file for Apache Common...