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

Tue, 09 Apr 2013 14:51:13 +0100

author
alanb
date
Tue, 09 Apr 2013 14:51:13 +0100
changeset 368
0989ad8c0860
parent 286
f50545b5e2f1
child 637
9c07ef4934dd
permissions
-rw-r--r--

8010393: Update JAX-WS RI to 2.2.9-b12941
Reviewed-by: alanb, erikj
Contributed-by: miroslav.kos@oracle.com, martin.grebac@oracle.com

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

mercurial