summaryrefslogtreecommitdiff
path: root/java/management/core/etc
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2006-09-19 22:06:50 +0000
committerRafael H. Schloming <rhs@apache.org>2006-09-19 22:06:50 +0000
commit913489deb2ee9dbf44455de5f407ddaf4bd8c540 (patch)
tree7ea442d6867d0076f1c9ea4f4265664059e7aff5 /java/management/core/etc
downloadqpid-python-913489deb2ee9dbf44455de5f407ddaf4bd8c540.tar.gz
Import of qpid from etp:
URL: https://etp.108.redhat.com/svn/etp/trunk/blaze Repository Root: https://etp.108.redhat.com/svn/etp Repository UUID: 06e15bec-b515-0410-bef0-cc27a458cf48 Revision: 608 git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@447994 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/management/core/etc')
-rw-r--r--java/management/core/etc/cml-exampleschema.xml51
-rw-r--r--java/management/core/etc/cml.xsd175
2 files changed, 226 insertions, 0 deletions
diff --git a/java/management/core/etc/cml-exampleschema.xml b/java/management/core/etc/cml-exampleschema.xml
new file mode 100644
index 0000000000..bcee38246f
--- /dev/null
+++ b/java/management/core/etc/cml-exampleschema.xml
@@ -0,0 +1,51 @@
+<?xml version="1.0"?>
+<!--
+ -
+ - Copyright (c) 2006 The Apache Software Foundation
+ -
+ - Licensed under the Apache License, Version 2.0 (the "License");
+ - you may not use this file except in compliance with the License.
+ - You may obtain a copy of the License at
+ -
+ - http://www.apache.org/licenses/LICENSE-2.0
+ -
+ - Unless required by applicable law or agreed to in writing, software
+ - distributed under the License is distributed on an "AS IS" BASIS,
+ - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ - See the License for the specific language governing permissions and
+ - limitations under the License.
+ -
+ -->
+<cml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.apache.org/schema/cml cml.xsd"
+ xmlns="http://www.apache.org/schema/cml"
+ version="1.0">
+ <schema-reply name = "qpid.apache.org/kernel" version = "0.1" status = "ok">
+ <class name = "broker">
+ <field name = "started" label = "Date, time broker started" />
+ <field name = "vhost" type = "objref" repeat = "1" />
+ </class>
+ <class name = "vhost">
+ <field name = "name" label = "Virtual host path" />
+ <field name = "exchange" type = "objref" repeat = "1" />
+ <field name = "queue" type = "objref" repeat = "1" />
+ </class>
+ <class name = "exchange">
+ <field name = "name" />
+ <field name = "type" />
+ <field name = "durable" label = "Durable exchange?" type = "bool" />
+ <field name = "auto_delete" label = "Auto-deleted?" type = "bool" />
+ <field name = "bindings" label = "Number of bindings" type = "int" />
+ </class>
+ <class name = "queue">
+ <field name = "scope" />
+ <field name = "name" />
+ <field name = "enabled" label = "Queue accepts new messages?" modify = "1" />
+ <field name = "durable" label = "Durable queue?" type = "bool" />
+ <field name = "exclusive" label = "Exclusive to one connection?" type = "bool" />
+ <field name = "auto_delete" label = "Auto-deleted?" type = "bool" />
+ <field name = "consumers" label = "Number of consumers" type = "int" />
+ <field name = "messages" label = "Number of messages" type = "int" />
+ </class>
+ </schema-reply>
+</cml>
diff --git a/java/management/core/etc/cml.xsd b/java/management/core/etc/cml.xsd
new file mode 100644
index 0000000000..99c21b41f9
--- /dev/null
+++ b/java/management/core/etc/cml.xsd
@@ -0,0 +1,175 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ -
+ - Copyright (c) 2006 The Apache Software Foundation
+ -
+ - Licensed under the Apache License, Version 2.0 (the "License");
+ - you may not use this file except in compliance with the License.
+ - You may obtain a copy of the License at
+ -
+ - http://www.apache.org/licenses/LICENSE-2.0
+ -
+ - Unless required by applicable law or agreed to in writing, software
+ - distributed under the License is distributed on an "AS IS" BASIS,
+ - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ - See the License for the specific language governing permissions and
+ - limitations under the License.
+ -
+ -->
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.apache.org/qpid/schema/cml" xmlns="http://www.apache.org/qpid/schema/cml"
+ elementFormDefault="qualified">
+ <xs:element name="cml">
+ <xs:annotation>
+ <xs:documentation>Defines a CML document as a schema or a...</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:choice>
+ <xs:element name="schema-request" minOccurs="0"/>
+ <xs:element name="schema-reply" type="schema-reply-type" minOccurs="0" >
+ <!--<xs:key name="classkey">
+ <xs:selector xpath="class"/>
+ <xs:field xpath="@name"/>
+ </xs:key>-->
+ </xs:element>
+ <xs:element name="inspect-request" type="inspect-request-type" minOccurs="0"/>
+ <xs:element name="inspect-reply" type="inspect-reply-type" minOccurs="0" />
+ <xs:element name="method-request" type="method-request-type" minOccurs="0"/>
+ <xs:element name="method-reply" type="method-reply-type" minOccurs="0" />
+ </xs:choice>
+ <xs:attribute name="version" type="xs:string" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:complexType name="schema-reply-type">
+ <xs:annotation>
+ <xs:documentation>Client request for a schema</xs:documentation>
+ </xs:annotation>
+ <xs:sequence>
+ <xs:element name="class" type="class-type" minOccurs="1" maxOccurs="unbounded"/>
+ </xs:sequence>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="version" type="xs:string" use="required"/>
+ <xs:attribute name="status">
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="ok"/>
+ <xs:enumeration value="not ok"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:complexType>
+ <xs:complexType name="class-type">
+ <xs:annotation>
+ <xs:documentation>Defines a class which is a managable object</xs:documentation>
+ </xs:annotation>
+ <xs:choice>
+ <xs:element name="field" type="field-type" minOccurs="0" maxOccurs="unbounded">
+ <xs:unique name="uniqueFieldName">
+ <xs:selector xpath="field"/>
+ <xs:field xpath="@name"/>
+ </xs:unique>
+ </xs:element>
+ <xs:element name="method" type="method-type" minOccurs="0" maxOccurs="unbounded">
+ <xs:unique name="uniqueMethodName">
+ <xs:selector xpath="method"/>
+ <xs:field xpath="@name"/>
+ </xs:unique>
+ </xs:element>
+ </xs:choice>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ </xs:complexType>
+ <xs:complexType name="field-type">
+ <xs:annotation>
+ <xs:documentation>Defines a field within a class</xs:documentation>
+ </xs:annotation>
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="type" use="optional" default="string">
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="bool"/>
+ <xs:enumeration value="string"/>
+ <xs:enumeration value="int"/>
+ <xs:enumeration value="objref"/>
+ <xs:enumeration value="time"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="label" type="xs:string" use="optional"/>
+ <xs:attribute name="repeat" type="xs:boolean" use="optional" default="false"/>
+ <xs:attribute name="modify" type="xs:boolean" use="optional" default="false"/>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ <xs:complexType name="method-type">
+ <xs:annotation>
+ <xs:documentation>Defines a method within a class</xs:documentation>
+ </xs:annotation>
+ <xs:sequence>
+ <xs:element name="field" type="field-type" minOccurs="0" maxOccurs="unbounded">
+ <xs:unique name="uniqueArgumentName">
+ <xs:selector xpath="field"/>
+ <xs:field xpath="@name"/>
+ </xs:unique>
+ </xs:element>
+ </xs:sequence>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ </xs:complexType>
+ <xs:complexType name="inspect-request-type">
+ <xs:annotation>
+ <xs:documentation>A request to get the property values of an instance</xs:documentation>
+ </xs:annotation>
+ <xs:attribute name="object" type="xs:int" use="required"/>
+ </xs:complexType>
+ <xs:complexType name="inspect-reply-type">
+ <xs:annotation>
+ <xs:documentation>A response containing the properties of an instance</xs:documentation>
+ </xs:annotation>
+ <xs:sequence>
+ <xs:element name="field" type="field-type" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element name="object" type="object-type" minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ <xs:attribute name="class" type="xs:string" use="optional"/>
+ <xs:attribute name="status" use="optional">
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="ok"/>
+ <xs:enumeration value="notfound"/>
+ <xs:enumeration value="noaccess"/>
+ <xs:enumeration value="invalid"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="object" type="xs:int" use="required"/>
+ </xs:complexType>
+ <xs:complexType name="object-type">
+ <xs:annotation>
+ <xs:documentation>A reference to an object instance</xs:documentation>
+ </xs:annotation>
+ <xs:attribute name="class" type="xs:string" use="required"/>
+ <xs:attribute name="id" type="xs:int" use="required"/>
+ </xs:complexType>
+ <xs:complexType name="method-request-type">
+ <xs:annotation>
+ <xs:documentation>A request to invoke a method</xs:documentation>
+ </xs:annotation>
+ <xs:attribute name="object" type="xs:int" use="required"/>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ </xs:complexType>
+ <xs:complexType name="method-reply-type">
+ <xs:annotation>
+ <xs:documentation>A reply to a method invocation request</xs:documentation>
+ </xs:annotation>
+ <xs:attribute name="object" type="xs:int" use="required"/>
+ <xs:attribute name="status" use="required">
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="ok"/>
+ <xs:enumeration value="notfound"/>
+ <xs:enumeration value="noaccess"/>
+ <xs:enumeration value="invalid"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:complexType>
+</xs:schema>