1 /* 2 * The contents of this file are subject to the terms 3 * of the Common Development and Distribution License 4 * (the License). You may not use this file except in 5 * compliance with the License. 6 * 7 * You can obtain a copy of the license at 8 * https://glassfish.dev.java.net/public/CDDLv1.0.html or 9 * glassfish/bootstrap/legal/CDDLv1.0.txt. 10 * See the License for the specific language governing 11 * permissions and limitations under the License. 12 * 13 * When distributing Covered Code, include this CDDL 14 * Header Notice in each file and include the License file 15 * at glassfish/bootstrap/legal/CDDLv1.0.txt. 16 * If applicable, add the following below the CDDL Header, 17 * with the fields enclosed by brackets [] replaced by 18 * you own identifying information: 19 * "Portions Copyrighted [year] [name of copyright owner]" 20 * 21 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 22 */ 23 24 /* 25 * Copyright 2004-2005 Sun Microsystems, Inc. All rights reserved. 26 * Use is subject to license terms. 27 */ 28 29 package com.sun.enterprise.admin.monitor.stats; 30 import javax.management.j2ee.statistics.Stats; 31 import javax.management.j2ee.statistics.CountStatistic; 32 import com.sun.enterprise.admin.monitor.stats.StringStatistic; 33 34 /** 35 * A Stats interface to expose information about the JVM Runtime 36 * @since 8.1 37 */ 38 39 public interface JVMRuntimeStats extends Stats { 40 41 /** 42 * Returns the name representing the running JVM 43 * @return StringStatistic the name of the running JVM 44 */ 45 public StringStatistic getName(); 46 47 48 /** 49 * Returns the JVM implementation name 50 * @return StringStatistic JVM implementation name 51 */ 52 public StringStatistic getVmName(); 53 54 /** 55 * Returns the JVM implementation vendor 56 * @return StringStatistic JVM implementation vendor 57 */ 58 public StringStatistic getVmVendor(); 59 60 /** 61 * Returns the JVM implementation version 62 * @return StringStatistic JVM implementation version 63 */ 64 public StringStatistic getVmVersion(); 65 66 /** 67 * Returns the JVM specification name 68 * @return StringStatistic JVM specification name 69 */ 70 public StringStatistic getSpecName(); 71 72 /** 73 * Returns the JVM specification vendor 74 * @return StringStatistic JVM specification vendor 75 */ 76 public StringStatistic getSpecVendor(); 77 78 /** 79 * Returns the JVM specification version 80 * @return StringStatistic JVM specification version 81 */ 82 public StringStatistic getSpecVersion(); 83 84 /** 85 * Returns the management spec version implemented by the 86 * JVM 87 * @return StringStatistic Management specification version 88 */ 89 public StringStatistic getManagementSpecVersion(); 90 91 /** 92 * Returns the classpath that is used by the system class loader 93 * to search for class files 94 * @return StringStatistic Java class path 95 */ 96 public StringStatistic getClassPath(); 97 98 /** 99 * returns the Java library path 100 * @return StringStatistic Java library path 101 */ 102 public StringStatistic getLibraryPath(); 103 104 /** 105 * Returns the classpath that is used by the bootstrap class loader 106 * to search for class files 107 * @return StringStatistic the boot classpath 108 */ 109 public StringStatistic getBootClasspath(); 110 111 /** 112 * Returns the input arguments passed to the JVM. Does not include 113 * the arguments to the main method 114 * @return StringStatistic arguments to the JVM 115 */ 116 public StringStatistic getInputArguments(); 117 118 /** 119 * Returns the uptime of the JVM in milliseconds 120 * @return CountStatistic Uptime in milliseconds 121 */ 122 public CountStatistic getUptime(); 123 124 125 } 126