< prev index next > src/jdk.management/share/classes/com/sun/management/HotSpotDiagnosticMXBean.java
Print this page
/*
! * Copyright (c) 2005, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
/*
! * Copyright (c) 2005, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
package com.sun.management;
import java.io.IOException;
import java.lang.management.PlatformManagedObject;
- import jdk.internal.javac.PreviewFeature;
/**
* Diagnostic management interface for the HotSpot Virtual Machine.
*
* <p>The diagnostic MBean is registered to the platform MBeanServer
* if a security manager is set and its {@link
* SecurityManager#checkWrite(java.lang.String)} method denies write
* access to the file or {@link java.lang.management.ManagementPermission
* ManagementPermission("control")} is denied
* @throws UnsupportedOperationException if this operation is not supported
! * @since 19
*/
- @PreviewFeature(feature = PreviewFeature.Feature.VIRTUAL_THREADS, reflective = true)
default void dumpThreads(String outputFile, ThreadDumpFormat format) throws IOException {
throw new UnsupportedOperationException();
}
/**
* Thread dump format.
! * @since 19
*/
- @PreviewFeature(feature = PreviewFeature.Feature.VIRTUAL_THREADS, reflective = true)
public static enum ThreadDumpFormat {
/**
* Plain text format.
*/
TEXT_PLAIN,
* if a security manager is set and its {@link
* SecurityManager#checkWrite(java.lang.String)} method denies write
* access to the file or {@link java.lang.management.ManagementPermission
* ManagementPermission("control")} is denied
* @throws UnsupportedOperationException if this operation is not supported
! * @since 21
*/
default void dumpThreads(String outputFile, ThreadDumpFormat format) throws IOException {
throw new UnsupportedOperationException();
}
/**
* Thread dump format.
! * @since 21
*/
public static enum ThreadDumpFormat {
/**
* Plain text format.
*/
TEXT_PLAIN,
< prev index next >