jboss-as-jgroups_1_0.xsd 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ JBoss, Home of Professional Open Source.
  4. ~ Copyright 2011, Red Hat, Inc., and individual contributors
  5. ~ as indicated by the @author tags. See the copyright.txt file in the
  6. ~ distribution for a full listing of individual contributors.
  7. ~
  8. ~ This is free software; you can redistribute it and/or modify it
  9. ~ under the terms of the GNU Lesser General Public License as
  10. ~ published by the Free Software Foundation; either version 2.1 of
  11. ~ the License, or (at your option) any later version.
  12. ~
  13. ~ This software is distributed in the hope that it will be useful,
  14. ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. ~ Lesser General Public License for more details.
  17. ~
  18. ~ You should have received a copy of the GNU Lesser General Public
  19. ~ License along with this software; if not, write to the Free
  20. ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  21. ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  22. -->
  23. <xs:schema targetNamespace="urn:jboss:domain:jgroups:1.0"
  24. xmlns:xs="http://www.w3.org/2001/XMLSchema"
  25. xmlns:tns="urn:jboss:domain:jgroups:1.0"
  26. elementFormDefault="qualified"
  27. attributeFormDefault="unqualified"
  28. version="1.0">
  29. <xs:element name="subsystem" type="tns:subsystem">
  30. <xs:annotation>
  31. <xs:documentation>Enumerates the protocol stacks available to the channel factory.</xs:documentation>
  32. </xs:annotation>
  33. </xs:element>
  34. <xs:complexType name="subsystem">
  35. <xs:sequence>
  36. <xs:element name="stack" type="tns:stack" maxOccurs="unbounded">
  37. <xs:annotation>
  38. <xs:documentation>Defines a protocol stack.</xs:documentation>
  39. </xs:annotation>
  40. </xs:element>
  41. </xs:sequence>
  42. <xs:attribute name="default-stack" type="xs:string" use="required">
  43. <xs:annotation>
  44. <xs:documentation>Identifies the default protocol stack.</xs:documentation>
  45. </xs:annotation>
  46. </xs:attribute>
  47. </xs:complexType>
  48. <xs:complexType name="stack">
  49. <xs:sequence>
  50. <xs:element name="transport" type="tns:transport">
  51. <xs:annotation>
  52. <xs:documentation>Defines the transport protocol for a stack.</xs:documentation>
  53. </xs:annotation>
  54. </xs:element>
  55. <xs:element name="protocol" type="tns:protocol" minOccurs="0" maxOccurs="unbounded">
  56. <xs:annotation>
  57. <xs:documentation>Defines a non-transport protocol for a stack.</xs:documentation>
  58. </xs:annotation>
  59. </xs:element>
  60. </xs:sequence>
  61. <xs:attribute name="name" type="xs:string" use="required">
  62. <xs:annotation>
  63. <xs:documentation>Uniquely identifies this stack.</xs:documentation>
  64. </xs:annotation>
  65. </xs:attribute>
  66. </xs:complexType>
  67. <xs:complexType name="protocol">
  68. <xs:sequence>
  69. <xs:element name="property" type="tns:property" minOccurs="0" maxOccurs="unbounded">
  70. <xs:annotation>
  71. <xs:documentation>Defines a property override for a protocol.</xs:documentation>
  72. </xs:annotation>
  73. </xs:element>
  74. </xs:sequence>
  75. <xs:attribute name="type" type="xs:string" use="required">
  76. <xs:annotation>
  77. <xs:documentation>Identifies the protocol type, e.g. TCP, UDP, PING, etc.</xs:documentation>
  78. </xs:annotation>
  79. </xs:attribute>
  80. <xs:attribute name="socket-binding" type="xs:string">
  81. <xs:annotation>
  82. <xs:documentation>Provides an address/port binding for a protocol.</xs:documentation>
  83. </xs:annotation>
  84. </xs:attribute>
  85. </xs:complexType>
  86. <xs:complexType name="transport">
  87. <xs:complexContent>
  88. <xs:extension base="tns:protocol">
  89. <xs:attribute name="shared" type="xs:boolean" default="true">
  90. <xs:annotation>
  91. <xs:documentation>Indicates whether or not the channels created for this stack should use a single, shared transport.</xs:documentation>
  92. </xs:annotation>
  93. </xs:attribute>
  94. <xs:attribute name="diagnostics-socket-binding" type="xs:string">
  95. <xs:annotation>
  96. <xs:documentation>If specified, enables diagnostics and specified the multicast address/port on which to communicate.</xs:documentation>
  97. </xs:annotation>
  98. </xs:attribute>
  99. <xs:attribute name="default-executor" type="xs:string">
  100. <xs:annotation>
  101. <xs:documentation>Defines the thread pool used for default messages received by this transport.</xs:documentation>
  102. </xs:annotation>
  103. </xs:attribute>
  104. <xs:attribute name="oob-executor" type="xs:string">
  105. <xs:annotation>
  106. <xs:documentation>Defines the thread pool used for OOB messages received by this transport.</xs:documentation>
  107. </xs:annotation>
  108. </xs:attribute>
  109. <xs:attribute name="timer-executor" type="xs:string">
  110. <xs:annotation>
  111. <xs:documentation>Defines the timer thread pool used by this transport.</xs:documentation>
  112. </xs:annotation>
  113. </xs:attribute>
  114. <xs:attribute name="thread-factory" type="xs:string">
  115. <xs:annotation>
  116. <xs:documentation>Defines the thread factory used by this transport.</xs:documentation>
  117. </xs:annotation>
  118. </xs:attribute>
  119. </xs:extension>
  120. </xs:complexContent>
  121. </xs:complexType>
  122. <xs:complexType name="property">
  123. <xs:simpleContent>
  124. <xs:extension base="xs:string">
  125. <xs:attribute name="name" type="xs:string" use="required">
  126. <xs:annotation>
  127. <xs:documentation>Defines the name of a protocol property.</xs:documentation>
  128. </xs:annotation>
  129. </xs:attribute>
  130. </xs:extension>
  131. </xs:simpleContent>
  132. </xs:complexType>
  133. </xs:schema>