src/share/jaxws_classes/com/sun/org/glassfish/external/amx/AMX.java

Thu, 31 Aug 2017 15:18:52 +0800

author
aoqi
date
Thu, 31 Aug 2017 15:18:52 +0800
changeset 637
9c07ef4934dd
parent 368
0989ad8c0860
parent 0
373ffda63c9a
permissions
-rw-r--r--

merge

aoqi@0 1 /*
aoqi@0 2 * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
aoqi@0 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
aoqi@0 4 *
aoqi@0 5 * This code is free software; you can redistribute it and/or modify it
aoqi@0 6 * under the terms of the GNU General Public License version 2 only, as
aoqi@0 7 * published by the Free Software Foundation. Oracle designates this
aoqi@0 8 * particular file as subject to the "Classpath" exception as provided
aoqi@0 9 * by Oracle in the LICENSE file that accompanied this code.
aoqi@0 10 *
aoqi@0 11 * This code is distributed in the hope that it will be useful, but WITHOUT
aoqi@0 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
aoqi@0 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
aoqi@0 14 * version 2 for more details (a copy is included in the LICENSE file that
aoqi@0 15 * accompanied this code).
aoqi@0 16 *
aoqi@0 17 * You should have received a copy of the GNU General Public License version
aoqi@0 18 * 2 along with this work; if not, write to the Free Software Foundation,
aoqi@0 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
aoqi@0 20 *
aoqi@0 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
aoqi@0 22 * or visit www.oracle.com if you need additional information or have any
aoqi@0 23 * questions.
aoqi@0 24 */
aoqi@0 25
aoqi@0 26
aoqi@0 27 package com.sun.org.glassfish.external.amx;
aoqi@0 28
aoqi@0 29 /**
aoqi@0 30 Constants reflecting the AMX specification.
aoqi@0 31 See https://glassfish.dev.java.net/nonav/v3/admin/planning/V3Changes/V3_AMX_SPI.html
aoqi@0 32 */
aoqi@0 33 public final class AMX
aoqi@0 34 {
aoqi@0 35 private AMX()
aoqi@0 36 {
aoqi@0 37 // do not instantiate
aoqi@0 38 }
aoqi@0 39
aoqi@0 40 /** Attribute yielding the ObjectName of the parent MBean */
aoqi@0 41 public static final String ATTR_PARENT = "Parent";
aoqi@0 42
aoqi@0 43 /** Attribute yielding the children as an ObjectName[] */
aoqi@0 44 public static final String ATTR_CHILDREN = "Children";
aoqi@0 45
aoqi@0 46 /** Attribute yielding the name of the MBean,
aoqi@0 47 possibly differing from the name as found in the ObjectName via the
aoqi@0 48 property {@link #NAME_KEY} */
aoqi@0 49 public static final String ATTR_NAME = "Name";
aoqi@0 50
aoqi@0 51 /** ObjectName property for the type */
aoqi@0 52 public static final String TYPE_KEY = "type";
aoqi@0 53
aoqi@0 54 /** ObjectName property for the name */
aoqi@0 55 public static final String NAME_KEY = "name";
aoqi@0 56
aoqi@0 57 /** Implied name for singletons when the name property is not present */
aoqi@0 58 public static final String NO_NAME = "";
aoqi@0 59
aoqi@0 60 /**
aoqi@0 61 The ObjectName property key denoting the path of the parent MBean.
aoqi@0 62 Serves to disambiguitate the ObjectName from others
aoqi@0 63 that might have the same type and/or name elsewhere in the hierarchy.
aoqi@0 64 */
aoqi@0 65 public static final String PARENT_PATH_KEY = "pp";
aoqi@0 66
aoqi@0 67 /** Prefix for AMX descriptor fields */
aoqi@0 68 public static final String DESC_PREFIX = "amx.";
aoqi@0 69
aoqi@0 70 /** Prefix for AMX notification types */
aoqi@0 71 public static final String NOTIFICATION_PREFIX = DESC_PREFIX;
aoqi@0 72
aoqi@0 73 /**
aoqi@0 74 Descriptor value defined by JMX standard: whether the MBeanInfo is *invariant* (immutable is a misnomer).
aoqi@0 75 */
aoqi@0 76 public static final String DESC_STD_IMMUTABLE_INFO = "immutableInfo";
aoqi@0 77
aoqi@0 78 /**
aoqi@0 79 Descriptor value defined by JMX standard, the classname of the interface for the MBean.
aoqi@0 80 Mainly advisory, since client code might not have access to the class.
aoqi@0 81 */
aoqi@0 82 public static final String DESC_STD_INTERFACE_NAME = "interfaceName";
aoqi@0 83
aoqi@0 84 /**
aoqi@0 85 Descriptor value: The generic AMX interface to be used if the class found in {@link #DESC_STD_INTERFACE_NAME}
aoqi@0 86 cannot be loaded. The class specified here must reside in the amx-core
aoqi@0 87 module eg com.sun.org.glassfish.admin.amx.core eg AMXProxy or AMXConfigProxy.
aoqi@0 88 */
aoqi@0 89 public static final String DESC_GENERIC_INTERFACE_NAME = DESC_PREFIX + "genericInterfaceName";
aoqi@0 90
aoqi@0 91 /**
aoqi@0 92 Descriptor value: whether the MBean is a singleton, in spite of having a name property in its ObjectName.
aoqi@0 93 This is mainly for compatibility; named singletons are strongly discouraged.
aoqi@0 94 */
aoqi@0 95 public static final String DESC_IS_SINGLETON = DESC_PREFIX + "isSingleton";
aoqi@0 96
aoqi@0 97 /**
aoqi@0 98 Descriptor value: whether the MBean is a global singleton eg whether in the AMX domain
aoqi@0 99 it can be looked up by its type and is the only MBean of that type.
aoqi@0 100 */
aoqi@0 101 public static final String DESC_IS_GLOBAL_SINGLETON = DESC_PREFIX + "isGlobalSingleton";
aoqi@0 102
aoqi@0 103 /**
aoqi@0 104 Descriptor value: Arbitrary string denoting the general classification of MBean.
aoqi@0 105 Predefined values include "configuration", "monitoring", "jsr77", "utility", "other".
aoqi@0 106 */
aoqi@0 107 public static final String DESC_GROUP = DESC_PREFIX + "group";
aoqi@0 108
aoqi@0 109 /**
aoqi@0 110 Descriptor value: whether new children may be added by code other than the implementation responsible for the MBean;
aoqi@0 111 this allows extension points within the hierarchy.
aoqi@0 112 Adding a new child means registering an MBean with an ObjectName that implies parentage via the ancestry type=name pairs.
aoqi@0 113 */
aoqi@0 114 public static final String DESC_SUPPORTS_ADOPTION = DESC_PREFIX + "supportsAdoption";
aoqi@0 115
aoqi@0 116 /**
aoqi@0 117 Descriptor value: denotes the possible types of MBeans that children might be. If present, SHOULD include all possible and pre-known types.
aoqi@0 118 An empty array indicates that child MBeans might exist, but their types cannot be predicted.
aoqi@0 119 */
aoqi@0 120 public static final String DESC_SUB_TYPES = DESC_PREFIX + "subTypes";
aoqi@0 121
aoqi@0 122 /**
aoqi@0 123 Group value indicating that the AMX is a configuration MBean.
aoqi@0 124 */
aoqi@0 125 public static final String GROUP_CONFIGURATION = "configuration";
aoqi@0 126 /**
aoqi@0 127 Group value indicating that the AMX represents a monitoring MBean.
aoqi@0 128 */
aoqi@0 129 public static final String GROUP_MONITORING = "monitoring";
aoqi@0 130 /**
aoqi@0 131 Group value indicating that the AMX is a utility MBean.
aoqi@0 132 */
aoqi@0 133 public static final String GROUP_UTILITY = "utility";
aoqi@0 134 /**
aoqi@0 135 Group value indicating that the AMX is a JSR 77 MBean
aoqi@0 136 (J2EE Management) .
aoqi@0 137 */
aoqi@0 138 public static final String GROUP_JSR77 = "jsr77";
aoqi@0 139 /**
aoqi@0 140 Group value indicating that the AMX is not one
aoqi@0 141 of the other types.
aoqi@0 142 */
aoqi@0 143 public static final String GROUP_OTHER = "other";
aoqi@0 144 }

mercurial