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.jfr.jmod - Management JFR Module
JDK 17 jdk.management.jfr.jmod is the JMOD file for JDK 17 Management Jfr module.
JDK 17 Management JFR module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\jdk.management.jfr.jmod.
JDK 17 Management JFR module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Management JFR module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\jdk.management.jfr.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ jdk/management/jfr/MBeanUtils.java
/* * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package jdk.management.jfr; import java.io.IOException; import java.lang.management.ManagementPermission; import java.security.Permission; import java.time.DateTimeException; import java.time.Duration; import java.time.Instant; import java.time.format.DateTimeParseException; import java.util.List; import java.util.function.Function; import java.util.stream.Collectors; import javax.management.MalformedObjectNameException; import javax.management.ObjectName; import jdk.jfr.Recording; import jdk.jfr.internal.management.ManagementSupport; final class MBeanUtils { private static final Permission monitor = new ManagementPermission("monitor"); private static final Permission control = new ManagementPermission("control"); static ObjectName createObjectName() { try { return new ObjectName(FlightRecorderMXBean.MXBEAN_NAME); } catch (MalformedObjectNameException mne) { throw new Error("Can't happen", mne); } } static void checkControl() { @SuppressWarnings("removal") SecurityManager secManager = System.getSecurityManager(); if (secManager != null) { secManager.checkPermission(control); } } static void checkMonitor() { @SuppressWarnings("removal") SecurityManager secManager = System.getSecurityManager(); if (secManager != null) { secManager.checkPermission(monitor); } } static <T, R> List<R> transformList(List<T> source, Function<T, R> function) { return source.stream().map(function).collect(Collectors.toList()); } static boolean booleanValue(String s) { if ("true".equals(s)) { return true; } if ("false".equals(s)) { return false; } throw new IllegalArgumentException("Value must be true or false."); } static Duration duration(String s) throws NumberFormatException { if (s == null) { return null; } long l = ManagementSupport.parseTimespan(s); if (l == 0) { return null; } return Duration.ofNanos(l); } public static Instant parseTimestamp(String s, Instant defaultValue) { if (s == null) { return defaultValue; } try { return Instant.parse(s); } catch(DateTimeParseException e ) { // OK, try with milliseconds since epoch // before giving up. } try { return Instant.ofEpochMilli(Long.parseLong(s)); } catch (NumberFormatException | DateTimeException nfr) { throw new IllegalArgumentException("Not a valid timestamp " + s); } } static Long size(String s) throws NumberFormatException { long size = Long.parseLong(s); if (size < 0) { throw new IllegalArgumentException("Negative size not allowed"); } return size; } public static int parseBlockSize(String string, int defaultSize) { if (string == null) { return defaultSize; } int size = Integer.parseInt(string); if (size <1) { throw new IllegalArgumentException("Block size must be at least 1 byte"); } return size; } public static String destination(Recording recording, String destination) throws IllegalArgumentException{ try { ManagementSupport.checkSetDestination(recording, destination); return destination; }catch(IOException e){ IllegalArgumentException iae = new IllegalArgumentException("Not a valid destination " + destination); iae.addSuppressed(e); throw iae; } } }
⏎ jdk/management/jfr/MBeanUtils.java
Or download all of them as a single archive file:
File name: jdk.management.jfr-17.0.5-src.zip File size: 34348 bytes Release date: 2022-09-13 Download
⇒ JDK 17 jdk.naming.dns.jmod - Naming DNS Module
⇐ JDK 17 jdk.management.agent.jmod - Management Agent Module
2023-07-29, 962👍, 0💬
Popular Posts:
What Is HttpComponents commons-httpclient-3.1.j ar?HttpComponents commons-httpclient-3.1.j aris the ...
What Is log4j-1.2.13.jar? I got the JAR file from logging-log4j-1.2.13.zip .log4j-1.2.13.jar is the ...
What Is activation.jar? I heard it's related to JAF (JavaBeans Activation Framework) 1.0.2? The if y...
How to download and install iText7-Core-7.1.4.zip? iText7-Core-7.1.4.zip is the binary package of iT...
How to download and install JDK (Java Development Kit) 1.3? If you want to write Java applications, ...