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.jfr.jmod - Management JFR Module
JDK 11 jdk.management.jfr.jmod is the JMOD file for JDK 11 Management Jfr module.
JDK 11 Management JFR module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.management.jfr.jmod.
JDK 11 Management JFR module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Management JFR module source code files are stored in \fyicenter\jdk-11.0.1\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, 2018, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package jdk.management.jfr; 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.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() { SecurityManager secManager = System.getSecurityManager(); if (secManager != null) { secManager.checkPermission(control); } } static void checkMonitor() { 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; } }
⏎ jdk/management/jfr/MBeanUtils.java
Or download all of them as a single archive file:
File name: jdk.management.jfr-11.0.1-src.zip File size: 24437 bytes Release date: 2018-11-04 Download
⇒ JDK 11 jdk.naming.dns.jmod - Naming DNS Module
⇐ JDK 11 jdk.management.agent.jmod - Management Agent Module
2020-06-21, 6853👍, 0💬
Popular Posts:
Jackson is "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java"....
How to download and install JDK (Java Development Kit) 1.3? If you want to write Java applications, ...
What Is wstx-asl-3.2.8.jar? wstx-asl-3.2.8.jar is JAR file for the ASL component of Woodstox 3.2.8. ...
How to download and install ojdbc5.jar for Oracle 11g R1? ojdbc5.jar for Oracle 11g R1 is a Java 5 J...
What Is javaws.jar in JRE (Java Runtime Environment) 8? javaws.jar in JRE (Java Runtime Environment)...