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/internal/GarbageCollectionNotifInfoCompositeData.java
/* * Copyright (c) 2011, 2021, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.management.internal; import com.sun.management.GarbageCollectionNotificationInfo; import com.sun.management.GcInfo; import javax.management.openmbean.CompositeData; import javax.management.openmbean.CompositeType; import javax.management.openmbean.CompositeDataSupport; import javax.management.openmbean.OpenDataException; import javax.management.openmbean.OpenType; import javax.management.openmbean.SimpleType; import java.security.AccessController; import java.security.PrivilegedAction; import java.lang.reflect.Field; import java.util.HashMap; import sun.management.LazyCompositeData; import static sun.management.LazyCompositeData.getString; import sun.management.Util; /** * A CompositeData for GarbageCollectionNotificationInfo for the local management support. * This class avoids the performance penalty paid to the * construction of a CompositeData use in the local case. */ public class GarbageCollectionNotifInfoCompositeData extends LazyCompositeData { private final GarbageCollectionNotificationInfo gcNotifInfo; public GarbageCollectionNotifInfoCompositeData(GarbageCollectionNotificationInfo info) { this.gcNotifInfo = info; } public GarbageCollectionNotificationInfo getGarbageCollectionNotifInfo() { return gcNotifInfo; } public static CompositeData toCompositeData(GarbageCollectionNotificationInfo info) { GarbageCollectionNotifInfoCompositeData gcnicd = new GarbageCollectionNotifInfoCompositeData(info); return gcnicd.getCompositeData(); } private CompositeType getCompositeTypeByBuilder() { @SuppressWarnings("removal") final GcInfoBuilder builder = AccessController.doPrivileged (new PrivilegedAction<GcInfoBuilder>() { public GcInfoBuilder run() { try { Class<?> cl = Class.forName("com.sun.management.GcInfo"); Field f = cl.getDeclaredField("builder"); f.setAccessible(true); return (GcInfoBuilder)f.get(gcNotifInfo.getGcInfo()); } catch(ClassNotFoundException | NoSuchFieldException | IllegalAccessException e) { return null; } } }); CompositeType gict = null; synchronized(compositeTypeByBuilder) { gict = compositeTypeByBuilder.get(builder); if(gict == null) { OpenType<?>[] gcNotifInfoItemTypes = new OpenType<?>[] { SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, builder.getGcInfoCompositeType(), }; try { final String typeName = "sun.management.GarbageCollectionNotifInfoCompositeType"; gict = new CompositeType(typeName, "CompositeType for GC notification info", gcNotifInfoItemNames, gcNotifInfoItemNames, gcNotifInfoItemTypes); compositeTypeByBuilder.put(builder,gict); } catch (OpenDataException e) { // shouldn't reach here throw new RuntimeException(e); } } } return gict; } protected CompositeData getCompositeData() { // CONTENTS OF THIS ARRAY MUST BE SYNCHRONIZED WITH // gcNotifInfoItemNames! final Object[] gcNotifInfoItemValues; gcNotifInfoItemValues = new Object[] { gcNotifInfo.getGcName(), gcNotifInfo.getGcAction(), gcNotifInfo.getGcCause(), GcInfoCompositeData.toCompositeData(gcNotifInfo.getGcInfo()) }; CompositeType gict = getCompositeTypeByBuilder(); try { return new CompositeDataSupport(gict, gcNotifInfoItemNames, gcNotifInfoItemValues); } catch (OpenDataException e) { // Should never reach here throw new AssertionError(e); } } // private static MappedMXBeanType gcInfoMapType; private static final String GC_NAME = "gcName"; private static final String GC_ACTION = "gcAction"; private static final String GC_CAUSE = "gcCause"; private static final String GC_INFO = "gcInfo"; private static final String[] gcNotifInfoItemNames = { GC_NAME, GC_ACTION, GC_CAUSE, GC_INFO }; private static HashMap<GcInfoBuilder,CompositeType> compositeTypeByBuilder = new HashMap<>(); public static String getGcName(CompositeData cd) { String gcname = getString(cd, GC_NAME); if (gcname == null) { throw new IllegalArgumentException("Invalid composite data: " + "Attribute " + GC_NAME + " has null value"); } return gcname; } public static String getGcAction(CompositeData cd) { String gcaction = getString(cd, GC_ACTION); if (gcaction == null) { throw new IllegalArgumentException("Invalid composite data: " + "Attribute " + GC_ACTION + " has null value"); } return gcaction; } public static String getGcCause(CompositeData cd) { String gccause = getString(cd, GC_CAUSE); if (gccause == null) { throw new IllegalArgumentException("Invalid composite data: " + "Attribute " + GC_CAUSE + " has null value"); } return gccause; } public static GcInfo getGcInfo(CompositeData cd) { CompositeData gcInfoData = (CompositeData) cd.get(GC_INFO); return GcInfo.from(gcInfoData); } /** Validate if the input CompositeData has the expected * CompositeType (i.e. contain all attributes with expected * names and types). */ public static void validateCompositeData(CompositeData cd) { if (cd == null) { throw new NullPointerException("Null CompositeData"); } if (!isTypeMatched( getBaseGcNotifInfoCompositeType(), cd.getCompositeType())) { throw new IllegalArgumentException( "Unexpected composite type for GarbageCollectionNotificationInfo"); } } // This is only used for validation. private static CompositeType baseGcNotifInfoCompositeType = null; private static synchronized CompositeType getBaseGcNotifInfoCompositeType() { if (baseGcNotifInfoCompositeType == null) { try { OpenType<?>[] baseGcNotifInfoItemTypes = new OpenType<?>[] { SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, GcInfoCompositeData.getBaseGcInfoCompositeType() }; baseGcNotifInfoCompositeType = new CompositeType("sun.management.BaseGarbageCollectionNotifInfoCompositeType", "CompositeType for Base GarbageCollectionNotificationInfo", gcNotifInfoItemNames, gcNotifInfoItemNames, baseGcNotifInfoItemTypes); } catch (OpenDataException e) { // shouldn't reach here throw new RuntimeException(e); } } return baseGcNotifInfoCompositeType; } private static final long serialVersionUID = -1805123446483771292L; }
⏎ com/sun/management/internal/GarbageCollectionNotifInfoCompositeData.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, 1449👍, 0💬
Popular Posts:
Apache Log4j API provides the interface that applications should code to and provides the adapter co...
Where to find answers to frequently asked questions on Downloading and Installing Connector/J - JDBC...
JDK 11 jdk.scripting.nashorn.jm odis the JMOD file for JDK 11 Scripting Nashorn module. JDK 11 Scrip...
What is the dom\GetElementsByTagName .javaprovided in the Apache Xerces package? I have Apache Xerce...
What Is jniwrap.jar in JNIWrapper 3.7.1? winpack.jar in JNIWrapper 3.7.1 is an add-on JAR file for J...