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.jfr.jmod - JFR Module
JDK 17 jdk.jfr.jmod is the JMOD file for JDK 17 JFR module.
JDK 17 JFR module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\jdk.jfr.jmod.
JDK 17 JFR module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 JFR module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\jdk.jfr.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ jdk/jfr/internal/handlers/EventHandler.java
/* * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package jdk.jfr.internal.handlers; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import jdk.jfr.EventType; import jdk.jfr.internal.EventControl; import jdk.jfr.internal.JVM; import jdk.jfr.internal.PlatformEventType; import jdk.jfr.internal.PrivateAccess; import jdk.jfr.internal.StringPool; // Users should not be subclass for security reasons. public abstract class EventHandler { // Accessed by generated sub class protected final PlatformEventType platformEventType; private final EventType eventType; private final EventControl eventControl; // Accessed by generated sub class EventHandler(boolean registered, EventType eventType, EventControl eventControl) { this.eventType = eventType; this.platformEventType = PrivateAccess.getInstance().getPlatformEventType(eventType); this.eventControl = eventControl; platformEventType.setRegistered(registered); } protected final StringPool createStringFieldWriter() { return new StringPool(); } // Accessed by generated code in event class public final boolean shouldCommit(long duration) { return isEnabled() && duration >= platformEventType.getThresholdTicks(); } // Accessed by generated code in event class // Accessed by generated sub class public final boolean isEnabled() { return platformEventType.isCommittable(); } public final EventType getEventType() { return eventType; } public final PlatformEventType getPlatformEventType() { return platformEventType; } public final EventControl getEventControl() { return eventControl; } public static long timestamp() { return JVM.counterTime(); } public static long duration(long startTime) { if (startTime == 0) { // User forgot to invoke begin, or instrumentation was // added after the user invoked begin. // Returning 0 will make it an instant event return 0; } return timestamp() - startTime; } // Prevent a malicious user from instantiating a generated event handlers. @Override public final Object clone() throws java.lang.CloneNotSupportedException { throw new CloneNotSupportedException(); } private final void writeObject(ObjectOutputStream out) throws IOException { throw new IOException("Object cannot be serialized"); } private final void readObject(ObjectInputStream in) throws IOException { throw new IOException("Class cannot be deserialized"); } public boolean isRegistered() { return platformEventType.isRegistered(); } public boolean setRegistered(boolean registered) { return platformEventType.setRegistered(registered); } public void write(long start, long duration, String host, String address, int port, long timeout, long bytesRead, boolean endOfSTream) { throwError("SocketReadEvent"); } public void write(long start, long duration, String host, String address, int port, long bytesWritten) { throwError("SocketWriteEvent"); } public void write(long start, long duration, String path, boolean metadata) { throwError("FileForceEvent"); } public void write(long start, long duration, String path, long bytesRead, boolean endOfFile) { throwError("FileReadEvent"); } public void write(long start, long duration, String path, long bytesWritten) { throwError("FileWriteEvent"); } public void write(long start, long duration, String path, Class<?> exceptionClass) { throwError("ExceptionThrownEvent or ErrorThrownEvent"); } private void throwError(String classes) { throw new InternalError("Method parameters don't match fields in class " + classes); } }
⏎ jdk/jfr/internal/handlers/EventHandler.java
Or download all of them as a single archive file:
File name: jdk.jfr-17.0.5-src.zip File size: 363343 bytes Release date: 2022-09-13 Download
⇒ JDK 17 jdk.jlink.jmod - JLink Tool
2023-04-17, 8978👍, 0💬
Popular Posts:
How to download and install Apache ZooKeeper Source Package? Apache ZooKeeper is an open-source serv...
Commons Pool provides an Object-pooling API, with three major aspects: 1. A generic object pool inte...
Swingx is the SwingLabs Swing Component Extensions. JAR File Size and Download Location: File name: ...
JDK 11 java.management.jmod is the JMOD file for JDK 11 Management module. JDK 11 Management module ...
What Is poi-5.2.3.jar? poi-5.2.3.jar is one of the JAR files for Apache POI 5.2.3, which provides an...