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/management/EventByteStream.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.management;

import java.io.Closeable;

import java.io.IOException;
import java.io.InputStream;
import java.util.concurrent.atomic.AtomicLong;

import jdk.jfr.Recording;
import jdk.jfr.internal.consumer.FinishedStream;
import jdk.jfr.internal.consumer.OngoingStream;

// abstract class that hides if a recording is ongoing or finished.
public abstract class EventByteStream implements Closeable {
    public static final String NAME = "Remote Recording Stream";
    private static AtomicLong idCounter = new AtomicLong();

    private final long identifier;
    private volatile long time;

    public EventByteStream() {
        this.identifier = idCounter.incrementAndGet();
    }

    public static EventByteStream newOngoingStream(Recording recording, int blockSize, long  startTimeNanos,long endTimeNanos) {
        return new OngoingStream(recording, blockSize, startTimeNanos, endTimeNanos);
    }

    public static EventByteStream newFinishedStream(InputStream is, int blockSize) {
        return new FinishedStream(is, blockSize);
    }

    protected final void touch() {
        time = System.currentTimeMillis();
    }

    public final long getLastTouched() {
        return time;
    }

    public abstract byte[] read() throws IOException;

    public final long getId() {
        return identifier;
    }
}

jdk/jfr/internal/management/EventByteStream.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

JDK 17 jdk.jdwp.agent.jmod - JDWP Agent Module

JDK 17 JMod/Module Files

⇑⇑ FAQ for JDK (Java Development Kit) 17

2023-04-17, 8956👍, 0💬