jdk/src/share/classes/java/lang/management/ThreadInfo.java
changeset 18799 31062cb3cc8e
parent 14342 8435a30053c1
child 21278 ef8a3a2a72f2
equal deleted inserted replaced
18798:7109807f56e9 18799:31062cb3cc8e
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    31 import static java.lang.Thread.State.*;
    31 import static java.lang.Thread.State.*;
    32 
    32 
    33 /**
    33 /**
    34  * Thread information. <tt>ThreadInfo</tt> contains the information
    34  * Thread information. <tt>ThreadInfo</tt> contains the information
    35  * about a thread including:
    35  * about a thread including:
    36  * <h4>General thread information</h4>
    36  * <h3>General thread information</h3>
    37  * <ul>
    37  * <ul>
    38  *   <li>Thread ID.</li>
    38  *   <li>Thread ID.</li>
    39  *   <li>Name of the thread.</li>
    39  *   <li>Name of the thread.</li>
    40  * </ul>
    40  * </ul>
    41  *
    41  *
    42  * <h4>Execution information</h4>
    42  * <h3>Execution information</h3>
    43  * <ul>
    43  * <ul>
    44  *   <li>Thread state.</li>
    44  *   <li>Thread state.</li>
    45  *   <li>The object upon which the thread is blocked due to:
    45  *   <li>The object upon which the thread is blocked due to:
    46  *       <ul>
    46  *       <ul>
    47  *       <li>waiting to enter a synchronization block/method, or</li>
    47  *       <li>waiting to enter a synchronization block/method, or</li>
   650      * Returns a <tt>ThreadInfo</tt> object represented by the
   650      * Returns a <tt>ThreadInfo</tt> object represented by the
   651      * given <tt>CompositeData</tt>.
   651      * given <tt>CompositeData</tt>.
   652      * The given <tt>CompositeData</tt> must contain the following attributes
   652      * The given <tt>CompositeData</tt> must contain the following attributes
   653      * unless otherwise specified below:
   653      * unless otherwise specified below:
   654      * <blockquote>
   654      * <blockquote>
   655      * <table border>
   655      * <table border summary="The attributes and their types the given CompositeData contains">
   656      * <tr>
   656      * <tr>
   657      *   <th align=left>Attribute Name</th>
   657      *   <th align=left>Attribute Name</th>
   658      *   <th align=left>Type</th>
   658      *   <th align=left>Type</th>
   659      * </tr>
   659      * </tr>
   660      * <tr>
   660      * <tr>
   720      *   <td><tt>javax.management.openmbean.CompositeData[]</tt>
   720      *   <td><tt>javax.management.openmbean.CompositeData[]</tt>
   721      *       <p>
   721      *       <p>
   722      *       Each element is a <tt>CompositeData</tt> representing
   722      *       Each element is a <tt>CompositeData</tt> representing
   723      *       StackTraceElement containing the following attributes:
   723      *       StackTraceElement containing the following attributes:
   724      *       <blockquote>
   724      *       <blockquote>
   725      *       <table cellspacing=1 cellpadding=0>
   725      *       <table cellspacing=1 cellpadding=0 summary="The attributes and their types the given CompositeData contains">
   726      *       <tr>
   726      *       <tr>
   727      *         <th align=left>Attribute Name</th>
   727      *         <th align=left>Attribute Name</th>
   728      *         <th align=left>Type</th>
   728      *         <th align=left>Type</th>
   729      *       </tr>
   729      *       </tr>
   730      *       <tr>
   730      *       <tr>