JDK 11 java.management.jmod - Management Module

JDK 11 java.management.jmod is the JMOD file for JDK 11 Management module.

JDK 11 Management module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\java.management.jmod.

JDK 11 Management module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.

JDK 11 Management module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\java.management.

You can click and view the content of each source code file in the list below.

✍: FYIcenter

sun/management/counter/perf/PerfDataType.java

/*
 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 */

package sun.management.counter.perf;

import java.io.UnsupportedEncodingException;

/**
 * A typesafe enumeration for the data types supported for
 * performance data.
 *
 * <p> The enumeration values for this typesafe enumeration must be
 * kept in synchronization with the PerfDataType enum in the
 * globalsDefinitions.hpp file in the HotSpot source base.</p>
 *
 * @author  Brian Doherty
 */
class PerfDataType {

    private final String name;
    private final byte value;
    private final int size;

    public static final PerfDataType BOOLEAN = new PerfDataType("boolean",  "Z", 1);
    public static final PerfDataType CHAR    = new PerfDataType("char",     "C", 1);
    public static final PerfDataType FLOAT   = new PerfDataType("float",    "F", 8);
    public static final PerfDataType DOUBLE  = new PerfDataType("double",   "D", 8);
    public static final PerfDataType BYTE    = new PerfDataType("byte",     "B", 1);
    public static final PerfDataType SHORT   = new PerfDataType("short",    "S", 2);
    public static final PerfDataType INT     = new PerfDataType("int",      "I", 4);
    public static final PerfDataType LONG    = new PerfDataType("long",     "J", 8);
    public static final PerfDataType ILLEGAL = new PerfDataType("illegal",  "X", 0);

    private static PerfDataType basicTypes[] = {
        LONG, BYTE, BOOLEAN, CHAR, FLOAT, DOUBLE, SHORT, INT
    };

    public String toString() {
        return name;
    }

    public byte byteValue() {
        return value;
    }

    public int size() {
        return size;
    }

    /**
     * Maps an integer PerfDataType value to its corresponding PerfDataType
     * object.
     *
     * @param   i  an integer representation of a PerfDataType
     * @return     The PerfDataType object for <code>i</code>
     */
    public static PerfDataType toPerfDataType(byte type) {
        for (int j = 0; j < basicTypes.length; j++) {
            if (basicTypes[j].byteValue() == type) {
                return (basicTypes[j]);
            }
        }
        return ILLEGAL;
    }

    private PerfDataType(String name, String c, int size) {
        this.name = name;
        this.size = size;
        try {
            byte[] b = c.getBytes("UTF-8");
            this.value = b[0];
        } catch (UnsupportedEncodingException e) {
            // ignore, "UTF-8" is always a known encoding
            throw new InternalError("Unknown encoding", e);
        }
    }
}

sun/management/counter/perf/PerfDataType.java

 

Or download all of them as a single archive file:

File name: java.management-11.0.1-src.zip
File size: 828174 bytes
Release date: 2018-11-04
Download 

 

JDK 11 java.management.rmi.jmod - Management RMI Module

JDK 11 java.logging.jmod - Logging Module

Download and Use JDK 11

⇑⇑ FAQ for JDK (Java Development Kit)

2020-04-30, 86479👍, 0💬