JDK 11 jdk.management.agent.jmod - Management Agent Module

JDK 11 jdk.management.agent.jmod is the JMOD file for JDK 11 Management Agent module.

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

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

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

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

✍: FYIcenter

jdk/internal/agent/spi/AgentProvider.java

/*
 * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 */
package jdk.internal.agent.spi;

import java.util.Properties;

/**
 * Service interface for management agent
 */
public abstract class AgentProvider {

    /**
     * Instantiates a new AgentProvider.
     *
     * @throws SecurityException if the subclass (and calling code) does not
     * have
     * {@code RuntimePermission("sun.management.spi.AgentProvider.subclass")}
     */
    protected AgentProvider() {
        this(checkSubclassPermission());
    }

    private AgentProvider(Void unused) {
    }

    private static Void checkSubclassPermission() {
        SecurityManager sm = System.getSecurityManager();
        if (sm != null) {
            sm.checkPermission(new RuntimePermission(AgentProvider.class.getName() + ".subclass"));
        }
        return null;
    }

    /**
     * Gets the name of the agent provider.
     *
     * @return name of agent provider
     */
    public abstract String getName();

    /**
     * Initializes and starts the agent.
     *
     * @throws IllegalStateException if this agent has already been started.
     */
    public abstract void startAgent();

    /**
     * Initializes and starts the agent at given port and with given properties
     *
     * @param props environment variables for agent
     *
     * @throws IllegalStateException if this agent has already been started.
     */
    public abstract void startAgent(Properties props);

    /**
     * Checks if agent is started and not terminated.
     *
     * @return true if agent is running, false otherwise.
     */
    public abstract boolean isActive();

    /**
     * Stops this agent.
     *
     * @throws IllegalStateException if this agent is not started.
     */
    public abstract void stopAgent();
}

jdk/internal/agent/spi/AgentProvider.java

 

Or download all of them as a single archive file:

File name: jdk.management.agent-11.0.1-src.zip
File size: 39186 bytes
Release date: 2018-11-04
Download 

 

JDK 11 jdk.management.jfr.jmod - Management JFR Module

JDK 11 jdk.management.jmod - Management Module

Download and Use JDK 11

⇑⇑ FAQ for JDK (Java Development Kit)

2020-06-21, 12141👍, 0💬