148 * ManagementPermission("control")} is denied
149 * @throws UnsupportedOperationException if this operation is not supported
150 * @since 19
151 */
152 @PreviewFeature(feature = PreviewFeature.Feature.VIRTUAL_THREADS, reflective = true)
153 default void dumpThreads(String outputFile, ThreadDumpFormat format) throws IOException {
154 throw new UnsupportedOperationException();
155 }
156
157 /**
158 * Thread dump format.
159 * @since 19
160 */
161 @PreviewFeature(feature = PreviewFeature.Feature.VIRTUAL_THREADS, reflective = true)
162 public static enum ThreadDumpFormat {
163 /**
164 * Plain text format.
165 */
166 TEXT_PLAIN,
167 /**
168 * JSON (JavaScript Object Notation) format.
169 */
170 JSON,
171 }
172 }
|
148 * ManagementPermission("control")} is denied
149 * @throws UnsupportedOperationException if this operation is not supported
150 * @since 19
151 */
152 @PreviewFeature(feature = PreviewFeature.Feature.VIRTUAL_THREADS, reflective = true)
153 default void dumpThreads(String outputFile, ThreadDumpFormat format) throws IOException {
154 throw new UnsupportedOperationException();
155 }
156
157 /**
158 * Thread dump format.
159 * @since 19
160 */
161 @PreviewFeature(feature = PreviewFeature.Feature.VIRTUAL_THREADS, reflective = true)
162 public static enum ThreadDumpFormat {
163 /**
164 * Plain text format.
165 */
166 TEXT_PLAIN,
167 /**
168 * JSON (JavaScript Object Notation) format
169 * (<a href="https://tools.ietf.org/html/rfc8259">RFC 8259</a>).
170 *
171 * <p> <a href="doc-files/threadDump.schema.json">threadDump.schema.json</a>
172 * describes the thread dump format in draft
173 * <a href="https://tools.ietf.org/html/draft-json-schema-language-02">
174 * JSON Schema Language version 2</a>.
175 */
176 JSON,
177 }
178 }
|