src/hotspot/share/jfr/metadata/metadata.xsd
author egahlin
Thu, 13 Dec 2018 14:21:04 +0100
changeset 53013 c8b2a408628b
parent 50113 caf115bb98ad
permissions -rw-r--r--
8215175: Inconsistencies in JFR event metadata Reviewed-by: mgronlun
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
50113
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
     1
<?xml version="1.0" encoding="utf-8"?>
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
     2
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
     3
<!--
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
     4
 Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
     5
 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
     6
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
     7
 This code is free software; you can redistribute it and/or modify it
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
     8
 under the terms of the GNU General Public License version 2 only, as
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
     9
 published by the Free Software Foundation.
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    10
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    11
 This code is distributed in the hope that it will be useful, but WITHOUT
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    12
 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    13
 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    14
 version 2 for more details (a copy is included in the LICENSE file that
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    15
 accompanied this code).
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    16
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    17
 You should have received a copy of the GNU General Public License version
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    18
 2 along with this work; if not, write to the Free Software Foundation,
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    19
 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    20
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    21
 Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    22
 or visit www.oracle.com if you need additional information or have any
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    23
 questions.
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    24
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    25
-->
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    26
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    27
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    28
  <xs:simpleType name="periodType">
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    29
    <xs:restriction base="xs:string">
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    30
      <xs:enumeration value="beginChunk" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    31
      <xs:enumeration value="endChunk" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    32
      <xs:enumeration value="everyChunk" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    33
    </xs:restriction>
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    34
  </xs:simpleType>
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    35
    <xs:simpleType name="transitionType">
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    36
    <xs:restriction base="xs:string">
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    37
      <xs:enumeration value="from" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    38
      <xs:enumeration value="to" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    39
    </xs:restriction>
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    40
  </xs:simpleType> 
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    41
  <xs:element name="Metadata">
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    42
    <xs:complexType>
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    43
      <xs:sequence>
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    44
        <xs:choice maxOccurs="unbounded">
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    45
          <xs:element maxOccurs="unbounded" name="Event">
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    46
            <xs:complexType>
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    47
              <xs:sequence>
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    48
                <xs:element maxOccurs="unbounded" name="Field">
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    49
                  <xs:complexType>
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    50
                    <xs:attribute name="type" type="xs:NMTOKEN" use="required" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    51
                    <xs:attribute name="struct" type="xs:boolean" use="optional" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    52
                    <xs:attribute name="array" type="xs:boolean" use="optional" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    53
                    <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    54
                    <xs:attribute name="label" type="xs:string" use="required" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    55
                    <xs:attribute name="description" type="xs:string" use="optional" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    56
                    <xs:attribute name="contentType" type="xs:string" use="optional" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    57
                    <xs:attribute name="relation" type="xs:string" use="optional" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    58
                    <xs:attribute name="experimental" type="xs:boolean" use="optional" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    59
                    <xs:attribute name="transition" type="transitionType" use="optional" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    60
                  </xs:complexType>
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    61
                </xs:element>
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    62
              </xs:sequence>
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    63
              <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    64
              <xs:attribute name="category" type="xs:string" use="required" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    65
              <xs:attribute name="label" type="xs:string" use="required" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    66
              <xs:attribute name="description" type="xs:string" use="optional" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    67
              <xs:attribute name="experimental" type="xs:boolean" use="optional" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    68
              <xs:attribute name="thread" type="xs:boolean" use="optional" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    69
              <xs:attribute name="startTime" type="xs:boolean" use="optional" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    70
              <xs:attribute name="stackTrace" type="xs:boolean" use="optional" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    71
              <xs:attribute name="period" type="periodType" use="optional" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    72
              <xs:attribute name="cutoff" type="xs:boolean" use="optional" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    73
            </xs:complexType>
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    74
          </xs:element>
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    75
          <xs:element maxOccurs="unbounded" name="Type">
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    76
            <xs:complexType>
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    77
              <xs:sequence>
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    78
                <xs:element maxOccurs="unbounded" name="Field">
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    79
                  <xs:complexType>
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    80
                    <xs:attribute name="type" type="xs:NMTOKEN" use="required" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    81
                    <xs:attribute name="struct" type="xs:boolean" use="optional" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    82
                    <xs:attribute name="array" type="xs:boolean" use="optional" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    83
                    <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    84
                    <xs:attribute name="contentType" type="xs:string" use="optional" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    85
                    <xs:attribute name="label" type="xs:string" use="required" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    86
                    <xs:attribute name="description" type="xs:string" use="optional" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    87
                    <xs:attribute name="experimental" type="xs:boolean" use="optional" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    88
                    <xs:attribute name="relation" type="xs:string" use="optional" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    89
                  </xs:complexType>
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    90
                </xs:element>
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    91
              </xs:sequence>
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    92
              <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    93
              <xs:attribute name="label" type="xs:string" use="optional" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    94
              <xs:attribute name="experimental" type="xs:boolean" use="optional" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    95
            </xs:complexType>
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    96
          </xs:element>
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    97
          <xs:element name="XmlType">
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    98
            <xs:complexType>
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
    99
              <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
   100
              <xs:attribute name="contentType" type="xs:NMTOKEN" use="optional" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
   101
              <xs:attribute name="javaType" type="xs:NMTOKEN" use="optional" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
   102
              <xs:attribute name="unsigned" type="xs:boolean" use="optional" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
   103
              <xs:attribute name="parameterType" type="xs:string" use="required" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
   104
              <xs:attribute name="fieldType" type="xs:string" use="required" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
   105
             </xs:complexType>
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
   106
          </xs:element>
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
   107
          <xs:element name="XmlContentType">
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
   108
            <xs:complexType>
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
   109
              <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
53013
c8b2a408628b 8215175: Inconsistencies in JFR event metadata
egahlin
parents: 50113
diff changeset
   110
              <xs:attribute name="annotation" type="xs:string" use="required" />
50113
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
   111
            </xs:complexType>
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
   112
          </xs:element>
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
   113
          <xs:element name="Relation">
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
   114
            <xs:complexType>
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
   115
              <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
   116
            </xs:complexType>
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
   117
          </xs:element>
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
   118
        </xs:choice>
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
   119
      </xs:sequence>
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
   120
    </xs:complexType>
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
   121
  </xs:element>
caf115bb98ad 8199712: Flight Recorder
egahlin
parents:
diff changeset
   122
</xs:schema>