1 <?xml version='1.0' encoding='UTF-8'?> 2 <!-- 3 Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. 4 5 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 6 7 The contents of this file are subject to the terms of either the Universal Permissive License 8 v 1.0 as shown at http://oss.oracle.com/licenses/upl 9 10 or the following license: 11 12 Redistribution and use in source and binary forms, with or without modification, are permitted 13 provided that the following conditions are met: 14 15 1. Redistributions of source code must retain the above copyright notice, this list of conditions 16 and the following disclaimer. 17 18 2. Redistributions in binary form must reproduce the above copyright notice, this list of 19 conditions and the following disclaimer in the documentation and/or other materials provided with 20 the distribution. 21 22 3. Neither the name of the copyright holder nor the names of its contributors may be used to 23 endorse or promote products derived from this software without specific prior written permission. 24 25 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR 26 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 27 FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 28 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 29 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 30 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 31 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY 32 WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 --> 34 <schema targetNamespace="org.openjdk.jmc.rjmx" xmlns="http://www.w3.org/2001/XMLSchema"> 35 <annotation> 36 <appinfo> 37 <meta.schema plugin="org.openjdk.jmc.rjmx" id="syntheticattribute" name="Synthetic MBeans and Attributes"/> 38 </appinfo> 39 <documentation> 40 This extension point is for extending what is visible through the client side MBean connection. This allows for the standardized widgets and tools to pick up data attribute synthesized client side. 41 </documentation> 42 </annotation> 43 44 <element name="extension"> 45 <annotation> 46 <appinfo> 47 <meta.element /> 48 </appinfo> 49 </annotation> 50 <complexType> 51 <sequence minOccurs="1" maxOccurs="unbounded"> 52 <element ref="syntheticAttribute"/> 53 </sequence> 54 <attribute name="id" type="string"> 55 <annotation> 56 <documentation> 57 58 </documentation> 59 </annotation> 60 </attribute> 61 <attribute name="point" type="string" use="required"> 62 <annotation> 63 <documentation> 64 65 </documentation> 66 </annotation> 67 </attribute> 68 <attribute name="name" type="string"> 69 <annotation> 70 <documentation> 71 72 </documentation> 73 <appinfo> 74 <meta.attribute translatable="true"/> 75 </appinfo> 76 </annotation> 77 </attribute> 78 </complexType> 79 </element> 80 81 <element name="syntheticAttribute"> 82 <annotation> 83 <documentation> 84 Defines a synthetic attribute. 85 </documentation> 86 </annotation> 87 <complexType> 88 <sequence> 89 <element ref="properties" minOccurs="0" maxOccurs="1"/> 90 </sequence> 91 <attribute name="class" type="string" use="required"> 92 <annotation> 93 <documentation> 94 The class which implements the attribute behaviour. 95 </documentation> 96 <appinfo> 97 <meta.attribute kind="java" basedOn=":org.openjdk.jmc.rjmx.subscription.ISyntheticAttribute"/> 98 </appinfo> 99 </annotation> 100 </attribute> 101 <attribute name="type" type="string" use="required"> 102 <annotation> 103 <documentation> 104 The class name of the objects that are returned for this attribute. 105 </documentation> 106 </annotation> 107 </attribute> 108 <attribute name="writeable" type="boolean" use="required"> 109 <annotation> 110 <documentation> 111 Whether this attribute can be written or not. 112 </documentation> 113 </annotation> 114 </attribute> 115 <attribute name="readable" type="boolean" use="required"> 116 <annotation> 117 <documentation> 118 Whether this attribute can be read or not. 119 </documentation> 120 </annotation> 121 </attribute> 122 <attribute name="isIs" type="boolean"> 123 <annotation> 124 <documentation> 125 True if the getter should be an is instead of a get (mostly only makes sense for boolean attributes). 126 </documentation> 127 </annotation> 128 </attribute> 129 <attribute name="attributeName" type="string" use="required"> 130 <annotation> 131 <documentation> 132 The object name + attributeName (on the form objectName#attributeName) under which this attribute will be exposed. 133 </documentation> 134 </annotation> 135 </attribute> 136 <attribute name="description" type="string"> 137 <annotation> 138 <documentation> 139 The description of this attribute. 140 </documentation> 141 </annotation> 142 </attribute> 143 </complexType> 144 </element> 145 146 <element name="string"> 147 <complexType> 148 <attribute name="key" type="string" use="required"> 149 <annotation> 150 <documentation> 151 152 </documentation> 153 </annotation> 154 </attribute> 155 <attribute name="value" type="string" use="required"> 156 <annotation> 157 <documentation> 158 159 </documentation> 160 </annotation> 161 </attribute> 162 </complexType> 163 </element> 164 165 <element name="boolean"> 166 <complexType> 167 <attribute name="key" type="string" use="required"> 168 <annotation> 169 <documentation> 170 171 </documentation> 172 </annotation> 173 </attribute> 174 <attribute name="value" type="boolean" use="required"> 175 <annotation> 176 <documentation> 177 178 </documentation> 179 </annotation> 180 </attribute> 181 </complexType> 182 </element> 183 184 <element name="integer"> 185 <complexType> 186 <attribute name="key" type="string" use="required"> 187 <annotation> 188 <documentation> 189 190 </documentation> 191 </annotation> 192 </attribute> 193 <attribute name="value" type="string" use="required"> 194 <annotation> 195 <documentation> 196 197 </documentation> 198 </annotation> 199 </attribute> 200 </complexType> 201 </element> 202 203 <element name="float"> 204 <complexType> 205 <attribute name="key" type="string" use="required"> 206 <annotation> 207 <documentation> 208 209 </documentation> 210 </annotation> 211 </attribute> 212 <attribute name="value" type="string" use="required"> 213 <annotation> 214 <documentation> 215 216 </documentation> 217 </annotation> 218 </attribute> 219 </complexType> 220 </element> 221 222 <element name="properties"> 223 <annotation> 224 <documentation> 225 Properties propagated to the instance of a synthetic attribute. 226 </documentation> 227 </annotation> 228 <complexType> 229 <sequence minOccurs="1" maxOccurs="unbounded"> 230 <choice> 231 <element ref="string"/> 232 <element ref="boolean"/> 233 <element ref="integer"/> 234 <element ref="float"/> 235 </choice> 236 </sequence> 237 </complexType> 238 </element> 239 240 <annotation> 241 <appinfo> 242 <meta.section type="since"/> 243 </appinfo> 244 <documentation> 245 5.0.0 246 </documentation> 247 </annotation> 248 249 250 251 252 <annotation> 253 <appinfo> 254 <meta.section type="copyright"/> 255 </appinfo> 256 <documentation> 257 Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. 258 </documentation> 259 </annotation> 260 261 </schema>