OW2 Consortium jonas

Rev

Rev 12251 | Rev 12378 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 12251 Rev 12375
1
<?xml version="1.0" encoding="UTF-8"?>
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!--
2
<!--
3
// File name   :
3
// File name   :
4
// Description : schema definition for cluster daemon
4
// Description : schema definition for cluster daemon
5
//
5
//
6
// Author : eyindanga(Add configuration for JGroups-based discovery.)
6
// Author : eyindanga(Add configuration for JGroups-based discovery.)
7
// Version:
7
// Version:
8
// Date:
8
// Date:
9
//
9
//
10
-->
10
-->
11
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
11
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
12
           targetNamespace="http://www.objectweb.org/jonas/ns"
-
 
-
 
12
           targetNamespace="http://jonas.ow2.org/jonas/ns"
13
           xmlns="http://www.w3.org/2001/XMLSchema"
13
           xmlns="http://www.w3.org/2001/XMLSchema"
14
           xmlns:jonas="http://www.objectweb.org/jonas/ns"
14
           xmlns:jonas="http://www.objectweb.org/jonas/ns"
15
           elementFormDefault="qualified"
15
           elementFormDefault="qualified"
16
           attributeFormDefault="unqualified"
16
           attributeFormDefault="unqualified"
17
           version="5.0">
17
           version="5.0">
18

18

19
<!-- ======================================================================= -->
19
<!-- ======================================================================= -->
20
<!--                        Interaction description                               -->
20
<!--                        Interaction description                               -->
21
<!-- ======================================================================= -->
21
<!-- ======================================================================= -->
22
  <xsd:simpleType name="InteractionType">
22
  <xsd:simpleType name="InteractionType">
23
    <xsd:annotation>
23
    <xsd:annotation>
24
      <xsd:documentation>
24
      <xsd:documentation>
25

25

26
  The InteractionType specifies how the cluster daemon must
26
  The InteractionType specifies how the cluster daemon must
27
  manage the JVM childs of JOnAS
27
  manage the JVM childs of JOnAS
28

28

29
  The value must be one of the following:
29
  The value must be one of the following:
30

30

31
      tighly-coupled
31
      tighly-coupled
32
      loosely-coupled
32
      loosely-coupled
33

33

34
      </xsd:documentation>
34
      </xsd:documentation>
35
    </xsd:annotation>
35
    </xsd:annotation>
36
    <xsd:restriction base="xsd:string">
36
    <xsd:restriction base="xsd:string">
37
        <xsd:enumeration value="tighly-coupled"/>
37
        <xsd:enumeration value="tighly-coupled"/>
38
      <xsd:enumeration value="loosely-coupled"/>
38
      <xsd:enumeration value="loosely-coupled"/>
39
    </xsd:restriction>
39
    </xsd:restriction>
40
  </xsd:simpleType>
40
  </xsd:simpleType>
41
<!-- ======================================================================= -->
41
<!-- ======================================================================= -->
42
<!--                        Discovery description                               -->
42
<!--                        Discovery description                               -->
43
<!-- ======================================================================= -->
43
<!-- ======================================================================= -->
44

44

45
  <xsd:complexType name="DiscoveryType">
45
  <xsd:complexType name="DiscoveryType">
46
    <xsd:annotation>
46
    <xsd:annotation>
47
      <xsd:documentation>Configure JGroups discovery</xsd:documentation>
47
      <xsd:documentation>Configure JGroups discovery</xsd:documentation>
48
    </xsd:annotation>
48
    </xsd:annotation>
49
    <xsd:sequence>
49
    <xsd:sequence>
50
      <xsd:element name="group-name" type="xsd:string"/>
50
      <xsd:element name="group-name" type="xsd:string"/>
51
    <xsd:element name="stack-file" type="xsd:string"/>
51
    <xsd:element name="stack-file" type="xsd:string"/>
52
    <xsd:element name="start-up" type="xsd:boolean"/>
52
    <xsd:element name="start-up" type="xsd:boolean"/>
53
    </xsd:sequence>
53
    </xsd:sequence>
54
  </xsd:complexType>
54
  </xsd:complexType>
55

55

56
<!-- ======================================================================= -->
56
<!-- ======================================================================= -->
57
<!--                        Server description                               -->
57
<!--                        Server description                               -->
58
<!-- ======================================================================= -->
58
<!-- ======================================================================= -->
59

59

60
  <xsd:complexType name="ServerType">
60
  <xsd:complexType name="ServerType">
61
    <xsd:annotation>
61
    <xsd:annotation>
62
      <xsd:documentation>Description of a JOnAS instance</xsd:documentation>
62
      <xsd:documentation>Description of a JOnAS instance</xsd:documentation>
63
    </xsd:annotation>
63
    </xsd:annotation>
64
    <xsd:sequence>
64
    <xsd:sequence>
65
      <xsd:element name="name" type="xsd:string"/>
65
      <xsd:element name="name" type="xsd:string"/>
66
      <!-- Description [optional] -->
66
      <!-- Description [optional] -->
67
      <xsd:element name="description" type="xsd:string" minOccurs="0"/>
67
      <xsd:element name="description" type="xsd:string" minOccurs="0"/>
68
      <xsd:element name="java-home" type="xsd:string"/>
68
      <xsd:element name="java-home" type="xsd:string"/>
69
      <xsd:element name="jonas-root" type="xsd:string"/>
69
      <xsd:element name="jonas-root" type="xsd:string"/>
70
      <xsd:element name="jonas-base" type="xsd:string"/>
70
      <xsd:element name="jonas-base" type="xsd:string"/>
71
      <xsd:element name="xprm" type="xsd:string"/>
71
      <xsd:element name="xprm" type="xsd:string"/>
72
      <xsd:element name="auto-boot" type="xsd:boolean"/>
72
      <xsd:element name="auto-boot" type="xsd:boolean"/>
73
      <!-- jonasCommand [optional] -->
73
      <!-- jonasCommand [optional] -->
74
      <xsd:element name="jonas-cmd" type="xsd:string" minOccurs="0"/>
74
      <xsd:element name="jonas-cmd" type="xsd:string" minOccurs="0"/>
75
    </xsd:sequence>
75
    </xsd:sequence>
76
  </xsd:complexType>
76
  </xsd:complexType>
77

77

78

78

79
<!-- ======================================================================= -->
79
<!-- ======================================================================= -->
80
<!--                        Cluster daemon description                           -->
80
<!--                        Cluster daemon description                           -->
81
<!-- ======================================================================= -->
81
<!-- ======================================================================= -->
82
  <xsd:complexType name="ClusterDaemonType">
82
  <xsd:complexType name="ClusterDaemonType">
83
    <xsd:annotation>
83
    <xsd:annotation>
84
      <xsd:documentation>
84
      <xsd:documentation>
85
          The cluster daemon xml file describes the configuration of the local JOnAS instances
85
          The cluster daemon xml file describes the configuration of the local JOnAS instances
86
      </xsd:documentation>
86
      </xsd:documentation>
87
    </xsd:annotation>
87
    </xsd:annotation>
88
    <xsd:sequence>
88
    <xsd:sequence>
89
        <xsd:element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
89
        <xsd:element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
90
      <xsd:element name="domain-name" type="xsd:string" minOccurs="0"
90
      <xsd:element name="domain-name" type="xsd:string" minOccurs="0"
91
        maxOccurs="1">
91
        maxOccurs="1">
92
      </xsd:element>
92
      </xsd:element>
93
      <xsd:element name="jonas-interaction-mode" type="jonas:InteractionType" minOccurs="1" maxOccurs="1">
93
      <xsd:element name="jonas-interaction-mode" type="jonas:InteractionType" minOccurs="1" maxOccurs="1">
94
    </xsd:element>
94
    </xsd:element>
95
    <!-- Configuration for JGroups-based discovery -->
95
    <!-- Configuration for JGroups-based discovery -->
96
    <xsd:element name="discovery" type="jonas:DiscoveryType" minOccurs="1" maxOccurs="1">
96
    <xsd:element name="discovery" type="jonas:DiscoveryType" minOccurs="1" maxOccurs="1">
97
        <xsd:annotation>
97
        <xsd:annotation>
98
          <xsd:documentation>Configuration for JGroups-based discovery</xsd:documentation>
98
          <xsd:documentation>Configuration for JGroups-based discovery</xsd:documentation>
99
        </xsd:annotation>
99
        </xsd:annotation>
100
      </xsd:element>
100
      </xsd:element>
101

101

102
      <!-- A cluster daemon configuration is an ordered list of items. -->
102
      <!-- A cluster daemon configuration is an ordered list of items. -->
103
      <xsd:element name="server" type="jonas:ServerType"
103
      <xsd:element name="server" type="jonas:ServerType"
104
        minOccurs="0" maxOccurs="unbounded">
104
        minOccurs="0" maxOccurs="unbounded">
105
        <xsd:annotation>
105
        <xsd:annotation>
106
          <xsd:documentation>JOnAS instance</xsd:documentation>
106
          <xsd:documentation>JOnAS instance</xsd:documentation>
107
        </xsd:annotation>
107
        </xsd:annotation>
108
      </xsd:element>
108
      </xsd:element>
109

109

110

110

111
    </xsd:sequence>
111
    </xsd:sequence>
112
  </xsd:complexType>
112
  </xsd:complexType>
113

113

114
<!-- ======================================================================= -->
114
<!-- ======================================================================= -->
115
<!--                        Root node 'cluster-daemon'                            -->
115
<!--                        Root node 'cluster-daemon'                            -->
116
<!-- ======================================================================= -->
116
<!-- ======================================================================= -->
117

117

118
  <xsd:element name="cluster-daemon" type="jonas:ClusterDaemonType"/>
118
  <xsd:element name="cluster-daemon" type="jonas:ClusterDaemonType"/>
119

119

120
</xsd:schema>
120
</xsd:schema>