src/share/classes/java/lang/management/RuntimeMXBean.java

Print this page




 291     public long getUptime();
 292 
 293     /**
 294      * Returns the start time of the Java virtual machine in milliseconds.
 295      * This method returns the approximate time when the Java virtual
 296      * machine started.
 297      *
 298      * @return start time of the Java virtual machine in milliseconds.
 299      *
 300      */
 301     public long getStartTime();
 302 
 303     /**
 304      * Returns a map of names and values of all system properties.
 305      * This method calls {@link System#getProperties} to get all
 306      * system properties.  Properties whose name or value is not
 307      * a <tt>String</tt> are omitted.
 308      *
 309      * <p>
 310      * <b>MBeanServer access</b>:<br>
 311      * The mapped type of <tt>Map<String,String></tt> is
 312      * {@link javax.management.openmbean.TabularData TabularData}
 313      * with two items in each row as follows:
 314      * <blockquote>
 315      * <table border>
 316      * <tr>
 317      *   <th>Item Name</th>
 318      *   <th>Item Type</th>
 319      *   </tr>
 320      * <tr>
 321      *   <td><tt>key</tt></td>
 322      *   <td><tt>String</tt></td>
 323      *   </tr>
 324      * <tr>
 325      *   <td><tt>value</tt></td>
 326      *   <td><tt>String</tt></td>
 327      *   </tr>
 328      * </table>
 329      * </blockquote>
 330      *
 331      * @return a map of names and values of all system properties.


 291     public long getUptime();
 292 
 293     /**
 294      * Returns the start time of the Java virtual machine in milliseconds.
 295      * This method returns the approximate time when the Java virtual
 296      * machine started.
 297      *
 298      * @return start time of the Java virtual machine in milliseconds.
 299      *
 300      */
 301     public long getStartTime();
 302 
 303     /**
 304      * Returns a map of names and values of all system properties.
 305      * This method calls {@link System#getProperties} to get all
 306      * system properties.  Properties whose name or value is not
 307      * a <tt>String</tt> are omitted.
 308      *
 309      * <p>
 310      * <b>MBeanServer access</b>:<br>
 311      * The mapped type of {@code Map<String,String>} is
 312      * {@link javax.management.openmbean.TabularData TabularData}
 313      * with two items in each row as follows:
 314      * <blockquote>
 315      * <table border>
 316      * <tr>
 317      *   <th>Item Name</th>
 318      *   <th>Item Type</th>
 319      *   </tr>
 320      * <tr>
 321      *   <td><tt>key</tt></td>
 322      *   <td><tt>String</tt></td>
 323      *   </tr>
 324      * <tr>
 325      *   <td><tt>value</tt></td>
 326      *   <td><tt>String</tt></td>
 327      *   </tr>
 328      * </table>
 329      * </blockquote>
 330      *
 331      * @return a map of names and values of all system properties.