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 java.management.jmod - Management Module
JDK 17 java.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\java.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\java.management.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ sun/management/MemoryUsageCompositeData.java
/* * Copyright (c) 2004, 2019, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package sun.management; import java.lang.management.MemoryUsage; import javax.management.openmbean.CompositeType; import javax.management.openmbean.CompositeData; import javax.management.openmbean.CompositeDataSupport; import javax.management.openmbean.OpenDataException; /** * A CompositeData for MemoryUsage 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 MemoryUsageCompositeData extends LazyCompositeData { @SuppressWarnings("serial") // Not statically typed as Serializable private final MemoryUsage usage; private MemoryUsageCompositeData(MemoryUsage u) { this.usage = u; } public MemoryUsage getMemoryUsage() { return usage; } public static CompositeData toCompositeData(MemoryUsage u) { MemoryUsageCompositeData mucd = new MemoryUsageCompositeData(u); return mucd.getCompositeData(); } protected CompositeData getCompositeData() { // CONTENTS OF THIS ARRAY MUST BE SYNCHRONIZED WITH // memoryUsageItemNames! final Object[] memoryUsageItemValues = { usage.getInit(), usage.getUsed(), usage.getCommitted(), usage.getMax(), }; try { return new CompositeDataSupport(memoryUsageCompositeType, memoryUsageItemNames, memoryUsageItemValues); } catch (OpenDataException e) { // Should never reach here throw new AssertionError(e); } } private static final CompositeType memoryUsageCompositeType; static { try { memoryUsageCompositeType = (CompositeType) MappedMXBeanType.toOpenType(MemoryUsage.class); } catch (OpenDataException e) { // Should never reach here throw new AssertionError(e); } } static CompositeType getMemoryUsageCompositeType() { return memoryUsageCompositeType; } private static final String INIT = "init"; private static final String USED = "used"; private static final String COMMITTED = "committed"; private static final String MAX = "max"; private static final String[] memoryUsageItemNames = { INIT, USED, COMMITTED, MAX, }; public static long getInit(CompositeData cd) { return getLong(cd, INIT); } public static long getUsed(CompositeData cd) { return getLong(cd, USED); } public static long getCommitted(CompositeData cd) { return getLong(cd, COMMITTED); } public static long getMax(CompositeData cd) { return getLong(cd, MAX); } /** 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(memoryUsageCompositeType, cd.getCompositeType())) { throw new IllegalArgumentException( "Unexpected composite type for MemoryUsage"); } } private static final long serialVersionUID = -8504291541083874143L; }
⏎ sun/management/MemoryUsageCompositeData.java
Or download all of them as a single archive file:
File name: java.management-17.0.5-src.zip File size: 850134 bytes Release date: 2022-09-13 Download
⇒ JDK 17 java.management.rmi.jmod - Management RMI Module
2023-09-23, 11230👍, 0💬
Popular Posts:
How to read XML document with XML Schema validation from socket connections with the socket\DelayedI...
Apache Avalon began in 1999 as the Java Apache Server Framework and in late 2002 separated from the ...
How to download and install Apache ZooKeeper Source Package? Apache ZooKeeper is an open-source serv...
JDK 11 java.management.jmod is the JMOD file for JDK 11 Management module. JDK 11 Management module ...
How to download and install xml-commons External Source Package? The source package contains Java so...