forked from jbossas/console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
host-config_1_0.xsd
179 lines (155 loc) · 7.33 KB
/
host-config_1_0.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ JBoss, Home of Professional Open Source
~ Copyright 2011 Red Hat Inc. and/or its affiliates and other contributors
~ as indicated by the @author tags. All rights reserved.
~ See the copyright.txt in the distribution for a
~ full listing of individual contributors.
~
~ This copyrighted material is made available to anyone wishing to use,
~ modify, copy, or redistribute it subject to the terms and conditions
~ of the GNU Lesser General Public License, v. 2.1.
~ This program is distributed in the hope that it will be useful, but WITHOUT A
~ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
~ PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
~ You should have received a copy of the GNU Lesser General Public License,
~ v.2.1 along with this distribution; if not, write to the Free Software
~ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
~ MA 02110-1301, USA.
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:jboss:domain:7.0"
xmlns="urn:jboss:domain:7.0"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
version="1.0">
<xs:element name="host" type="host"/>
<xs:complexType name="host">
<xs:all>
<xs:element name="domain-controller" type="location" minOccurs="1"/>
<xs:element name="servers" type="servers" minOccurs="0"/>
<xs:element name="interfaces" type="interfaces" minOccurs="0"/>
<xs:element name="jvms" type="jvms" minOccurs="0"/>
</xs:all>
<!-- Override the host name property -->
<xs:attribute name="name" type="xs:string" use="optional"/>
</xs:complexType>
<xs:complexType name="network-configuration">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="server-socket" type="server-socket"/>
</xs:choice>
<xs:attribute name="group-size" type="xs:positiveInteger" default="0" use="optional"/>
<xs:attribute name="maximum-offset" type="xs:positiveInteger" default="100" use="optional"/>
</xs:complexType>
<xs:complexType name="location">
<xs:attribute name="location" type="xs:anyURI" use="required"/>
<!-- the interface to bind to for outbound connections to the given location -->
<xs:attribute name="bind-interface" type="xs:string" use="optional"/>
</xs:complexType>
<xs:complexType name="servers">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="server" type="server"/>
</xs:choice>
</xs:complexType>
<xs:complexType name="server">
<xs:all>
<!-- this element is present if the server is started at boot; otherwise, the server is configured but idle -->
<xs:element name="running" minOccurs="0"/>
<xs:element name="port-group" type="ref" minOccurs="0"/>
<xs:element name="interfaces" type="interfaces" minOccurs="0"/>
<xs:element name="jvm" type="jvm" minOccurs="0"/>
</xs:all>
<!-- The node name defaults to the host name -->
<xs:attribute name="name" type="xs:string" use="optional"/>
<xs:attribute name="group" type="xs:string" use="required"/>
</xs:complexType>
<xs:complexType name="bounded-memory-size">
<xs:attribute name="size" type="xs:string"/>
<xs:attribute name="max-size" type="xs:string"/>
</xs:complexType>
<xs:complexType name="memory-size">
<xs:attribute name="size" type="xs:string" use="required"/>
</xs:complexType>
<xs:complexType name="interfaces">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="interface" type="interface"/>
</xs:choice>
</xs:complexType>
<xs:complexType name="interface">
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="address" type="xs:string" use="required"/>
</xs:complexType>
<xs:complexType name="arguments">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="argument" type="argument"/>
</xs:choice>
</xs:complexType>
<xs:complexType name="jvm-spec">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<!-- Boot class paths? -->
<!-- Default VM arguments? -->
</xs:choice>
<!-- Default depends on platform. Used to pick the right options -->
<xs:attribute name="type" type="xs:string" use="optional"/>
<!-- The value of java.home -->
<xs:attribute name="path" type="xs:string" use="required"/>
<!-- The name of this JVM -->
<xs:attribute name="name" type="xs:string" use="required"/>
</xs:complexType>
<xs:complexType name="jvm">
<xs:all>
<!-- Xms, Xmx -->
<xs:element name="heap" type="bounded-memory-size" minOccurs="0"/>
<!-- XX:PermSize, XX:MaxPermSize -->
<xs:element name="permgen" type="bounded-memory-size" minOccurs="0"/>
<!-- Xss -->
<xs:element name="stack" type="memory-size" minOccurs="0"/>
<!-- Large pages? -->
<!-- GC tuning settings? -->
<!-- Arch-specific: CPU affinity? -->
<!-- Arch-specific: "nice" settings? -->
<!-- Generic VM arguments -->
<xs:element name="arguments" type="arguments" minOccurs="0"/>
<xs:element name="system-properties" type="properties" minOccurs="0"/>
<xs:element name="environment-properties" type="properties" minOccurs="0"/>
<!-- Boot class paths? -->
</xs:all>
<!-- Default JVM uses java.home and auto-detects type -->
<xs:attribute name="jvm" type="xs:string" use="optional"/>
</xs:complexType>
<xs:complexType name="properties">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="property" type="property"/>
</xs:choice>
</xs:complexType>
<xs:complexType name="property">
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="value" type="xs:string" use="required"/>
</xs:complexType>
<xs:complexType name="argument">
<xs:attribute name="value" type="xs:string" use="required"/>
</xs:complexType>
<xs:complexType name="ref">
<xs:attribute name="name" type="xs:string" use="required"/>
</xs:complexType>
<xs:complexType name="server-socket">
<xs:all>
<xs:element name="interface" type="ref" minOccurs="0"/>
</xs:all>
<xs:attribute name="service-name" type="xs:string" use="required"/>
<xs:attribute name="binding-name" type="xs:string" default="default" use="optional"/>
<xs:attribute name="port" type="port-number" use="required"/>
<xs:attribute name="fixed" type="xs:boolean" default="false" use="optional"/>
</xs:complexType>
<xs:simpleType name="port-number">
<xs:restriction base="xs:int">
<xs:minInclusive value="0"/>
<xs:maxExclusive value="65536"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="jvms">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="jvm" type="jvm-spec"/>
</xs:choice>
</xs:complexType>
</xs:schema>