| New file |
| 0,0 → 1,120 |
| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| // File name : |
| // Description : schema definition for cluster daemon |
| // |
| // Author : eyindanga(Add configuration for JGroups-based discovery.) |
| // Version: |
| // Date: |
| // |
| --> |
| <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" |
| targetNamespace="http://www.objectweb.org/jonas/ns" |
| xmlns="http://www.w3.org/2001/XMLSchema" |
| xmlns:jonas="http://www.objectweb.org/jonas/ns" |
| elementFormDefault="qualified" |
| attributeFormDefault="unqualified" |
| version="5.0"> |
| |
| <!-- ======================================================================= --> |
| <!-- Interaction description --> |
| <!-- ======================================================================= --> |
| <xsd:simpleType name="InteractionType"> |
| <xsd:annotation> |
| <xsd:documentation> |
| |
| The InteractionType specifies how the cluster daemon must |
| manage the JVM childs of JOnAS |
| |
| The value must be one of the following: |
| |
| tighly-coupled |
| loosely-coupled |
| |
| </xsd:documentation> |
| </xsd:annotation> |
| <xsd:restriction base="xsd:string"> |
| <xsd:enumeration value="tighly-coupled"/> |
| <xsd:enumeration value="loosely-coupled"/> |
| </xsd:restriction> |
| </xsd:simpleType> |
| <!-- ======================================================================= --> |
| <!-- Discovery description --> |
| <!-- ======================================================================= --> |
| |
| <xsd:complexType name="DiscoveryType"> |
| <xsd:annotation> |
| <xsd:documentation>Configure JGroups discovery</xsd:documentation> |
| </xsd:annotation> |
| <xsd:sequence> |
| <xsd:element name="group-name" type="xsd:string"/> |
| <xsd:element name="stack-file" type="xsd:string"/> |
| <xsd:element name="start-up" type="xsd:boolean"/> |
| </xsd:sequence> |
| </xsd:complexType> |
| |
| <!-- ======================================================================= --> |
| <!-- Server description --> |
| <!-- ======================================================================= --> |
| |
| <xsd:complexType name="ServerType"> |
| <xsd:annotation> |
| <xsd:documentation>Description of a JOnAS instance</xsd:documentation> |
| </xsd:annotation> |
| <xsd:sequence> |
| <xsd:element name="name" type="xsd:string"/> |
| <!-- Description [optional] --> |
| <xsd:element name="description" type="xsd:string" minOccurs="0"/> |
| <xsd:element name="java-home" type="xsd:string"/> |
| <xsd:element name="jonas-root" type="xsd:string"/> |
| <xsd:element name="jonas-base" type="xsd:string"/> |
| <xsd:element name="xprm" type="xsd:string"/> |
| <xsd:element name="auto-boot" type="xsd:boolean"/> |
| <!-- jonasCommand [optional] --> |
| <xsd:element name="jonas-cmd" type="xsd:string" minOccurs="0"/> |
| </xsd:sequence> |
| </xsd:complexType> |
| |
| |
| <!-- ======================================================================= --> |
| <!-- Cluster daemon description --> |
| <!-- ======================================================================= --> |
| <xsd:complexType name="ClusterDaemonType"> |
| <xsd:annotation> |
| <xsd:documentation> |
| The cluster daemon xml file describes the configuration of the local JOnAS instances |
| </xsd:documentation> |
| </xsd:annotation> |
| <xsd:sequence> |
| <xsd:element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/> |
| <xsd:element name="domain-name" type="xsd:string" minOccurs="0" |
| maxOccurs="1"> |
| </xsd:element> |
| <xsd:element name="jonas-interaction-mode" type="jonas:InteractionType" minOccurs="1" maxOccurs="1"> |
| </xsd:element> |
| <!-- Configuration for JGroups-based discovery --> |
| <xsd:element name="discovery" type="jonas:DiscoveryType" minOccurs="1" maxOccurs="1"> |
| <xsd:annotation> |
| <xsd:documentation>Configuration for JGroups-based discovery</xsd:documentation> |
| </xsd:annotation> |
| </xsd:element> |
| |
| <!-- A cluster daemon configuration is an ordered list of items. --> |
| <xsd:element name="server" type="jonas:ServerType" |
| minOccurs="0" maxOccurs="unbounded"> |
| <xsd:annotation> |
| <xsd:documentation>JOnAS instance</xsd:documentation> |
| </xsd:annotation> |
| </xsd:element> |
| |
| |
| </xsd:sequence> |
| </xsd:complexType> |
| |
| <!-- ======================================================================= --> |
| <!-- Root node 'cluster-daemon' --> |
| <!-- ======================================================================= --> |
| |
| <xsd:element name="cluster-daemon" type="jonas:ClusterDaemonType"/> |
| |
| </xsd:schema> |
| Property changes: |
| Added: svn:mime-type |
| + text/plain |