OW2 Consortium jonas

Rev

Rev 12251 | Rev 12378 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
12251 eyindanga 1
<?xml version="1.0" encoding="UTF-8"?>
2
<!--
3
// File name   :
4
// Description : schema definition for cluster daemon
5
//
6
// Author : eyindanga(Add configuration for JGroups-based discovery.)
7
// Version:
8
// Date:
9
//
10
-->
11
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
12375 eyindanga 12
           targetNamespace="http://jonas.ow2.org/jonas/ns"
12251 eyindanga 13
           xmlns="http://www.w3.org/2001/XMLSchema"
14
           xmlns:jonas="http://www.objectweb.org/jonas/ns"
15
           elementFormDefault="qualified"
16
           attributeFormDefault="unqualified"
17
           version="5.0">
18
 
19
<!-- ======================================================================= -->
20
<!--                        Interaction description                               -->
21
<!-- ======================================================================= -->
22
  <xsd:simpleType name="InteractionType">
23
    <xsd:annotation>
24
      <xsd:documentation>
25
 
26
  The InteractionType specifies how the cluster daemon must
27
  manage the JVM childs of JOnAS
28
 
29
  The value must be one of the following:
30
 
31
      tighly-coupled
32
      loosely-coupled
33
 
34
      </xsd:documentation>
35
    </xsd:annotation>
36
    <xsd:restriction base="xsd:string">
37
        <xsd:enumeration value="tighly-coupled"/>
38
      <xsd:enumeration value="loosely-coupled"/>
39
    </xsd:restriction>
40
  </xsd:simpleType>
41
<!-- ======================================================================= -->
42
<!--                        Discovery description                               -->
43
<!-- ======================================================================= -->
44
 
45
  <xsd:complexType name="DiscoveryType">
46
    <xsd:annotation>
47
      <xsd:documentation>Configure JGroups discovery</xsd:documentation>
48
    </xsd:annotation>
49
    <xsd:sequence>
50
      <xsd:element name="group-name" type="xsd:string"/>
51
    <xsd:element name="stack-file" type="xsd:string"/>
52
    <xsd:element name="start-up" type="xsd:boolean"/>
53
    </xsd:sequence>
54
  </xsd:complexType>
55
 
56
<!-- ======================================================================= -->
57
<!--                        Server description                               -->
58
<!-- ======================================================================= -->
59
 
60
  <xsd:complexType name="ServerType">
61
    <xsd:annotation>
62
      <xsd:documentation>Description of a JOnAS instance</xsd:documentation>
63
    </xsd:annotation>
64
    <xsd:sequence>
65
      <xsd:element name="name" type="xsd:string"/>
66
      <!-- Description [optional] -->
67
      <xsd:element name="description" type="xsd:string" minOccurs="0"/>
68
      <xsd:element name="java-home" type="xsd:string"/>
69
      <xsd:element name="jonas-root" type="xsd:string"/>
70
      <xsd:element name="jonas-base" type="xsd:string"/>
71
      <xsd:element name="xprm" type="xsd:string"/>
72
      <xsd:element name="auto-boot" type="xsd:boolean"/>
73
      <!-- jonasCommand [optional] -->
74
      <xsd:element name="jonas-cmd" type="xsd:string" minOccurs="0"/>
75
    </xsd:sequence>
76
  </xsd:complexType>
77
 
78
 
79
<!-- ======================================================================= -->
80
<!--                        Cluster daemon description                           -->
81
<!-- ======================================================================= -->
82
  <xsd:complexType name="ClusterDaemonType">
83
    <xsd:annotation>
84
      <xsd:documentation>
85
          The cluster daemon xml file describes the configuration of the local JOnAS instances
86
      </xsd:documentation>
87
    </xsd:annotation>
88
    <xsd:sequence>
89
        <xsd:element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
90
      <xsd:element name="domain-name" type="xsd:string" minOccurs="0"
91
        maxOccurs="1">
92
      </xsd:element>
93
      <xsd:element name="jonas-interaction-mode" type="jonas:InteractionType" minOccurs="1" maxOccurs="1">
94
    </xsd:element>
95
    <!-- Configuration for JGroups-based discovery -->
96
    <xsd:element name="discovery" type="jonas:DiscoveryType" minOccurs="1" maxOccurs="1">
97
        <xsd:annotation>
98
          <xsd:documentation>Configuration for JGroups-based discovery</xsd:documentation>
99
        </xsd:annotation>
100
      </xsd:element>
101
 
102
      <!-- A cluster daemon configuration is an ordered list of items. -->
103
      <xsd:element name="server" type="jonas:ServerType"
104
        minOccurs="0" maxOccurs="unbounded">
105
        <xsd:annotation>
106
          <xsd:documentation>JOnAS instance</xsd:documentation>
107
        </xsd:annotation>
108
      </xsd:element>
109
 
110
 
111
    </xsd:sequence>
112
  </xsd:complexType>
113
 
114
<!-- ======================================================================= -->
115
<!--                        Root node 'cluster-daemon'                            -->
116
<!-- ======================================================================= -->
117
 
118
  <xsd:element name="cluster-daemon" type="jonas:ClusterDaemonType"/>
119
 
120
</xsd:schema>