jdk/src/share/classes/java/lang/management/RuntimeMXBean.java
author darcy
Thu, 27 Jun 2013 19:02:02 -0700
changeset 18569 0e46c17766b7
parent 18156 edb590d448c5
child 18799 31062cb3cc8e
permissions -rw-r--r--
8019357: Fix doclint warnings in java.lang.invoke Reviewed-by: jrose
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 715
diff changeset
     2
 * Copyright (c) 2003, 2008, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 715
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 715
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 715
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 715
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 715
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package java.lang.management;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
 * The management interface for the runtime system of
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
 * the Java virtual machine.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
 * <p> A Java virtual machine has a single instance of the implementation
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
 * class of this interface.  This instance implementing this interface is
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
 * an <a href="ManagementFactory.html#MXBean">MXBean</a>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
 * that can be obtained by calling
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
 * the {@link ManagementFactory#getRuntimeMXBean} method or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
 * from the {@link ManagementFactory#getPlatformMBeanServer
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
 * platform <tt>MBeanServer</tt>} method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
 * <p>The <tt>ObjectName</tt> for uniquely identifying the MXBean for
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
 * the runtime system within an MBeanServer is:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
 * <blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
 *    {@link ManagementFactory#RUNTIME_MXBEAN_NAME
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
 *           <tt>java.lang:type=Runtime</tt>}
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
 * </blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
 *
401
ef01e0dccd63 6610094: Add generic support for platform MXBeans of any type (also fixed 6681031)
mchung
parents: 2
diff changeset
    47
 * It can be obtained by calling the
ef01e0dccd63 6610094: Add generic support for platform MXBeans of any type (also fixed 6681031)
mchung
parents: 2
diff changeset
    48
 * {@link PlatformManagedObject#getObjectName} method.
ef01e0dccd63 6610094: Add generic support for platform MXBeans of any type (also fixed 6681031)
mchung
parents: 2
diff changeset
    49
 *
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
 * <p> This interface defines several convenient methods for accessing
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
 * system properties about the Java virtual machine.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
 *
401
ef01e0dccd63 6610094: Add generic support for platform MXBeans of any type (also fixed 6681031)
mchung
parents: 2
diff changeset
    53
 * @see ManagementFactory#getPlatformMXBeans(Class)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
 * @see <a href="../../../javax/management/package-summary.html">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
 *      JMX Specification.</a>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
 * @see <a href="package-summary.html#examples">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
 *      Ways to Access MXBeans</a>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
 * @author  Mandy Chung
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
 * @since   1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
 */
401
ef01e0dccd63 6610094: Add generic support for platform MXBeans of any type (also fixed 6681031)
mchung
parents: 2
diff changeset
    62
public interface RuntimeMXBean extends PlatformManagedObject {
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
     * Returns the name representing the running Java virtual machine.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
     * The returned name string can be any arbitrary string and
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
     * a Java virtual machine implementation can choose
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
     * to embed platform-specific useful information in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
     * returned name string.  Each running virtual machine could have
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
     * a different name.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
     * @return the name representing the running Java virtual machine.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
    public String getName();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
     * Returns the Java virtual machine implementation name.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
     * This method is equivalent to {@link System#getProperty
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
     * System.getProperty("java.vm.name")}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
     * @return the Java virtual machine implementation name.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
     * @throws  java.lang.SecurityException
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
     *     if a security manager exists and its
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
     *     <code>checkPropertiesAccess</code> method doesn't allow access
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
     *     to this system property.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
     * @see java.lang.SecurityManager#checkPropertyAccess(java.lang.String)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
     * @see java.lang.System#getProperty
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
    public String getVmName();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
     * Returns the Java virtual machine implementation vendor.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
     * This method is equivalent to {@link System#getProperty
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
     * System.getProperty("java.vm.vendor")}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
     * @return the Java virtual machine implementation vendor.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
     * @throws  java.lang.SecurityException
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
     *     if a security manager exists and its
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
     *     <code>checkPropertiesAccess</code> method doesn't allow access
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
     *     to this system property.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
     * @see java.lang.SecurityManager#checkPropertyAccess(java.lang.String)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
     * @see java.lang.System#getProperty
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
    public String getVmVendor();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
     * Returns the Java virtual machine implementation version.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
     * This method is equivalent to {@link System#getProperty
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
     * System.getProperty("java.vm.version")}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
     * @return the Java virtual machine implementation version.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
     * @throws  java.lang.SecurityException
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
     *     if a security manager exists and its
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
     *     <code>checkPropertiesAccess</code> method doesn't allow access
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
     *     to this system property.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
     * @see java.lang.SecurityManager#checkPropertyAccess(java.lang.String)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
     * @see java.lang.System#getProperty
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
    public String getVmVersion();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
     * Returns the Java virtual machine specification name.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
     * This method is equivalent to {@link System#getProperty
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
     * System.getProperty("java.vm.specification.name")}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
     * @return the Java virtual machine specification name.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
     * @throws  java.lang.SecurityException
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
     *     if a security manager exists and its
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
     *     <code>checkPropertiesAccess</code> method doesn't allow access
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
     *     to this system property.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
     * @see java.lang.SecurityManager#checkPropertyAccess(java.lang.String)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
     * @see java.lang.System#getProperty
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
    public String getSpecName();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
     * Returns the Java virtual machine specification vendor.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
     * This method is equivalent to {@link System#getProperty
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
     * System.getProperty("java.vm.specification.vendor")}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
     * @return the Java virtual machine specification vendor.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
     * @throws  java.lang.SecurityException
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
     *     if a security manager exists and its
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
     *     <code>checkPropertiesAccess</code> method doesn't allow access
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
     *     to this system property.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
     * @see java.lang.SecurityManager#checkPropertyAccess(java.lang.String)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
     * @see java.lang.System#getProperty
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
    public String getSpecVendor();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
     * Returns the Java virtual machine specification version.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
     * This method is equivalent to {@link System#getProperty
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
     * System.getProperty("java.vm.specification.version")}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
     * @return the Java virtual machine specification version.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
     * @throws  java.lang.SecurityException
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
     *     if a security manager exists and its
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
     *     <code>checkPropertiesAccess</code> method doesn't allow access
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
     *     to this system property.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
     * @see java.lang.SecurityManager#checkPropertyAccess(java.lang.String)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
     * @see java.lang.System#getProperty
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
    public String getSpecVersion();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
     * Returns the version of the specification for the management interface
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
     * implemented by the running Java virtual machine.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
     * @return the version of the specification for the management interface
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
     * implemented by the running Java virtual machine.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
    public String getManagementSpecVersion();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
     * Returns the Java class path that is used by the system class loader
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
     * to search for class files.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
     * This method is equivalent to {@link System#getProperty
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
     * System.getProperty("java.class.path")}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
     * <p> Multiple paths in the Java class path are separated by the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
     * path separator character of the platform of the Java virtual machine
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
     * being monitored.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
     * @return the Java class path.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
     * @throws  java.lang.SecurityException
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
     *     if a security manager exists and its
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
     *     <code>checkPropertiesAccess</code> method doesn't allow access
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
     *     to this system property.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
     * @see java.lang.SecurityManager#checkPropertyAccess(java.lang.String)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
     * @see java.lang.System#getProperty
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
    public String getClassPath();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
     * Returns the Java library path.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
     * This method is equivalent to {@link System#getProperty
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
     * System.getProperty("java.library.path")}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
     * <p> Multiple paths in the Java library path are separated by the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
     * path separator character of the platform of the Java virtual machine
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
     * being monitored.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
     * @return the Java library path.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
     * @throws  java.lang.SecurityException
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
     *     if a security manager exists and its
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
     *     <code>checkPropertiesAccess</code> method doesn't allow access
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
     *     to this system property.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
     * @see java.lang.SecurityManager#checkPropertyAccess(java.lang.String)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
     * @see java.lang.System#getProperty
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
    public String getLibraryPath();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
     * Tests if the Java virtual machine supports the boot class path
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
     * mechanism used by the bootstrap class loader to search for class
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
     * files.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
     * @return <tt>true</tt> if the Java virtual machine supports the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
     * class path mechanism; <tt>false</tt> otherwise.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
    public boolean isBootClassPathSupported();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
     * Returns the boot class path that is used by the bootstrap class loader
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
     * to search for class files.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
     * <p> Multiple paths in the boot class path are separated by the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
     * path separator character of the platform on which the Java
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
     * virtual machine is running.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
     * <p>A Java virtual machine implementation may not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
     * the boot class path mechanism for the bootstrap class loader
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
     * to search for class files.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
     * The {@link #isBootClassPathSupported} method can be used
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
     * to determine if the Java virtual machine supports this method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
     * @return the boot class path.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
     * @throws java.lang.UnsupportedOperationException
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
     *     if the Java virtual machine does not support this operation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
     * @throws  java.lang.SecurityException
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
     *     if a security manager exists and the caller does not have
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
     *     ManagementPermission("monitor").
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
    public String getBootClassPath();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
     * Returns the input arguments passed to the Java virtual machine
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
     * which does not include the arguments to the <tt>main</tt> method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
     * This method returns an empty list if there is no input argument
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
     * to the Java virtual machine.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
     * Some Java virtual machine implementations may take input arguments
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
     * from multiple different sources: for examples, arguments passed from
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
     * the application that launches the Java virtual machine such as
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
     * the 'java' command, environment variables, configuration files, etc.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
     * Typically, not all command-line options to the 'java' command
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
     * are passed to the Java virtual machine.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
     * Thus, the returned input arguments may not
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
     * include all command-line options.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
     * <b>MBeanServer access</b>:<br>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
     * The mapped type of <tt>List<String></tt> is <tt>String[]</tt>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
     * @return a list of <tt>String</tt> objects; each element
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
     * is an argument passed to the Java virtual machine.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
     * @throws  java.lang.SecurityException
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
     *     if a security manager exists and the caller does not have
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
     *     ManagementPermission("monitor").
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
    public java.util.List<String> getInputArguments();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
     * Returns the uptime of the Java virtual machine in milliseconds.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
     * @return uptime of the Java virtual machine in milliseconds.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
    public long getUptime();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
     * Returns the start time of the Java virtual machine in milliseconds.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
     * This method returns the approximate time when the Java virtual
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
     * machine started.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
     * @return start time of the Java virtual machine in milliseconds.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
    public long getStartTime();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
     * Returns a map of names and values of all system properties.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
     * This method calls {@link System#getProperties} to get all
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
     * system properties.  Properties whose name or value is not
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
     * a <tt>String</tt> are omitted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
     * <b>MBeanServer access</b>:<br>
18156
edb590d448c5 8016217: More javadoc warnings
alanb
parents: 5506
diff changeset
   311
     * The mapped type of {@code Map<String,String>} is
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
     * {@link javax.management.openmbean.TabularData TabularData}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
     * with two items in each row as follows:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
     * <blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
     * <table border>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
     * <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
     *   <th>Item Name</th>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
     *   <th>Item Type</th>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
     *   </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
     * <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
     *   <td><tt>key</tt></td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
     *   <td><tt>String</tt></td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
     *   </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
     * <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
     *   <td><tt>value</tt></td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
     *   <td><tt>String</tt></td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
     *   </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
     * </table>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
     * </blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
     * @return a map of names and values of all system properties.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
     * @throws  java.lang.SecurityException
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
     *     if a security manager exists and its
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
     *     <code>checkPropertiesAccess</code> method doesn't allow access
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
     *     to the system properties.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
    public java.util.Map<String, String> getSystemProperties();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
}