PageRenderTime 25ms CodeModel.GetById 12ms RepoModel.GetById 1ms app.codeStats 0ms

/cachestore/remote/src/main/resources/schema/infinispan-cachestore-remote-config-5.2.xsd

https://bitbucket.org/cprenzberg/infinispan
XML Schema | 271 lines | 265 code | 6 blank | 0 comment | 0 complexity | 4016131ceb6aec86db8c659ebfea17bb MD5 | raw file
  1. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  2. <!--
  3. ~ Copyright 2012 Red Hat, Inc. and/or its affiliates.
  4. ~
  5. ~ This is free software; you can redistribute it and/or modify it
  6. ~ under the terms of the GNU Lesser General Public License as
  7. ~ published by the Free Software Foundation; either version 2.1 of
  8. ~ the License, or (at your option) any later version.
  9. ~
  10. ~ This software is distributed in the hope that it will be useful,
  11. ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. ~ Lesser General Public License for more details.
  14. ~
  15. ~ You should have received a copy of the GNU Lesser General Public
  16. ~ License along with this library; if not, write to the Free Software
  17. ~ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  18. ~ 02110-1301 USA
  19. -->
  20. <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" version="1.0" targetNamespace="urn:infinispan:config:remote:5.2" xmlns:tns="urn:infinispan:config:remote:5.2" xmlns:config="urn:infinispan:config:5.2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  21. <xs:import namespace="urn:infinispan:config:5.2" schemaLocation="http://www.infinispan.org/schemas/infinispan-config-5.2.xsd" />
  22. <xs:element name="remoteStore">
  23. <xs:complexType>
  24. <xs:complexContent>
  25. <xs:extension base="config:store">
  26. <xs:sequence>
  27. <xs:element name="servers" type="tns:servers" minOccurs="0">
  28. <xs:annotation>
  29. <xs:documentation>
  30. This is the initial list of Hot Rod servers to connect to.
  31. </xs:documentation>
  32. </xs:annotation>
  33. </xs:element>
  34. <xs:element name="connectionPool" type="tns:connectionPool" minOccurs="0">
  35. <xs:annotation>
  36. <xs:documentation>
  37. Configuration of the connection pool
  38. </xs:documentation>
  39. </xs:annotation>
  40. </xs:element>
  41. <xs:element name="asyncTransportExecutor" type="config:executorFactory" minOccurs="0">
  42. <xs:annotation>
  43. <xs:documentation>
  44. Configuration for the executor service used for asynchronous work on the Transport, including asynchronous marshalling and Cache 'async operations' such as Cache.putAsync().
  45. </xs:documentation>
  46. </xs:annotation>
  47. </xs:element>
  48. </xs:sequence>
  49. <xs:attribute name="balancingStrategy" type="xs:string" default="org.infinispan.client.hotrod.impl.transport.tcp.RoundRobinBalancingStrategy">
  50. <xs:annotation>
  51. <xs:documentation>
  52. For replicated (vs distributed) Hot Rod server clusters, the client balances requests to the servers according to this strategy.
  53. </xs:documentation>
  54. </xs:annotation>
  55. </xs:attribute>
  56. <xs:attribute name="connectionTimeout" type="xs:int" default="60000">
  57. <xs:annotation>
  58. <xs:documentation>
  59. This property defines the maximum socket connect timeout before giving up connecting to the server.
  60. </xs:documentation>
  61. </xs:annotation>
  62. </xs:attribute>
  63. <xs:attribute name="entryWrapper" type="xs:string">
  64. <xs:annotation>
  65. <xs:documentation>
  66. Allows you to specify a custom {@link org.infinispan.loaders.remote.wrapper.EntryWrapper} implementation to wrap cache entries
  67. </xs:documentation>
  68. </xs:annotation>
  69. </xs:attribute>
  70. <xs:attribute name="hotRodWrapping" type="xs:boolean" default="false">
  71. <xs:annotation>
  72. <xs:documentation>
  73. Configures this RemoteCacheStore so that it enables all settings needed to create entries to be served by a HotRod endpoint, for example when performing rolling upgrades.
  74. </xs:documentation>
  75. </xs:annotation>
  76. </xs:attribute>
  77. <xs:attribute name="forceReturnValues" type="xs:boolean" default="false">
  78. <xs:annotation>
  79. <xs:documentation>
  80. Whether or not to implicitly FORCE_RETURN_VALUE for all calls.
  81. </xs:documentation>
  82. </xs:annotation>
  83. </xs:attribute>
  84. <xs:attribute name="keySizeEstimate" type="xs:int" default="64">
  85. <xs:annotation>
  86. <xs:documentation>
  87. The class name of the driver used for connecting to the database.
  88. </xs:documentation>
  89. </xs:annotation>
  90. </xs:attribute>
  91. <xs:attribute name="marshaller" type="xs:string">
  92. <xs:annotation>
  93. <xs:documentation>
  94. Allows you to specify a custom {@link org.infinispan.marshall.Marshaller} implementation to serialize and deserialize user objects.
  95. </xs:documentation>
  96. </xs:annotation>
  97. </xs:attribute>
  98. <xs:attribute name="pingOnStartup" type="xs:boolean" default="true">
  99. <xs:annotation>
  100. <xs:documentation>
  101. If true, a ping request is sent to a back end server in order to fetch cluster's topology.
  102. </xs:documentation>
  103. </xs:annotation>
  104. </xs:attribute>
  105. <xs:attribute name="protocolVersion" type="xs:string" default="1.1">
  106. <xs:annotation>
  107. <xs:documentation>
  108. This property defines the protocol version that this client should use. Defaults to 1.1. Other valid values include 1.0.
  109. </xs:documentation>
  110. </xs:annotation>
  111. </xs:attribute>
  112. <xs:attribute name="rawValues" type="xs:boolean" default="false">
  113. <xs:annotation>
  114. <xs:documentation>
  115. Normally the RemoteCacheStore stores values wrapped in InternalCacheEntry. Setting this property to true causes the raw values to be stored instead for interoperability with direct
  116. access by RemoteCacheManager. Defaults to false (disabled)
  117. </xs:documentation>
  118. </xs:annotation>
  119. </xs:attribute>
  120. <xs:attribute name="remoteCacheName" type="xs:string">
  121. <xs:annotation>
  122. <xs:documentation>
  123. The name of the remote cache in the remote infinispan cluster, to which to connect to. If unspecified, the default
  124. cache will be used
  125. </xs:documentation>
  126. </xs:annotation>
  127. </xs:attribute>
  128. <xs:attribute name="socketTimeout" type="xs:int" default="60000">
  129. <xs:annotation>
  130. <xs:documentation>
  131. This property defines the maximum socket read timeout in milliseconds before giving up waiting for bytes from the server. Defaults to 60000 (1 minute)
  132. </xs:documentation>
  133. </xs:annotation>
  134. </xs:attribute>
  135. <xs:attribute name="tcpNoDelay" type="xs:boolean" default="true">
  136. <xs:annotation>
  137. <xs:documentation>
  138. Affects TCP NODELAY on the TCP stack. Defaults to enabled
  139. </xs:documentation>
  140. </xs:annotation>
  141. </xs:attribute>
  142. <xs:attribute name="transportFactory" type="xs:string">
  143. <xs:annotation>
  144. <xs:documentation>
  145. Controls which transport to use. Currently only the TcpTransport is supported.
  146. </xs:documentation>
  147. </xs:annotation>
  148. </xs:attribute>
  149. <xs:attribute name="valueSizeEstimate" type="xs:int" default="512">
  150. <xs:annotation>
  151. <xs:documentation>
  152. This hint allows sizing of byte buffers when serializing and deserializing values, to minimize array resizing.
  153. </xs:documentation>
  154. </xs:annotation>
  155. </xs:attribute>
  156. </xs:extension>
  157. </xs:complexContent>
  158. </xs:complexType>
  159. </xs:element>
  160. <xs:complexType name="servers">
  161. <xs:sequence>
  162. <xs:element name="server" minOccurs="1" maxOccurs="unbounded">
  163. <xs:complexType>
  164. <xs:attribute name="host" type="xs:string">
  165. <xs:annotation>
  166. <xs:documentation>
  167. The hostname or ip address of a remote Hot Rod server
  168. </xs:documentation>
  169. </xs:annotation>
  170. </xs:attribute>
  171. <xs:attribute name="port" type="xs:int" default="11222">
  172. <xs:annotation>
  173. <xs:documentation>
  174. The port on which the server is listening (default 11222)
  175. </xs:documentation>
  176. </xs:annotation>
  177. </xs:attribute>
  178. </xs:complexType>
  179. </xs:element>
  180. </xs:sequence>
  181. </xs:complexType>
  182. <xs:complexType name="connectionPool">
  183. <xs:attribute name="exhaustedAction" type="tns:exhaustedAction" default="WAIT">
  184. <xs:annotation>
  185. <xs:documentation>
  186. Specifies what happens when asking for a connection from a server's pool, and that pool is exhausted.
  187. </xs:documentation>
  188. </xs:annotation>
  189. </xs:attribute>
  190. <xs:attribute name="maxActive" type="xs:int" default="-1">
  191. <xs:annotation>
  192. <xs:documentation>
  193. Controls the maximum number of connections per server that are allocated (checked out to client threads, or idle in the pool) at one time. When non-positive, there is no limit to the number of connections per server. When maxActive is reached, the connection pool for that server is said to be exhausted. The default setting for this parameter is -1, i.e. there is no limit.
  194. </xs:documentation>
  195. </xs:annotation>
  196. </xs:attribute>
  197. <xs:attribute name="maxIdle" type="xs:int" default="-1">
  198. <xs:annotation>
  199. <xs:documentation>
  200. Controls the maximum number of idle persistent connections, per server, at any time. When negative, there is no limit to the number of connections that may be idle per server. The default setting for this parameter is -1.
  201. </xs:documentation>
  202. </xs:annotation>
  203. </xs:attribute>
  204. <xs:attribute name="maxTotal" type="xs:int" default="-1">
  205. <xs:annotation>
  206. <xs:documentation>
  207. Sets a global limit on the number persistent connections that can be in circulation within the combined set of servers. When non-positive, there is no limit to the total number of persistent connections in circulation. When maxTotal is exceeded, all connections pools are exhausted. The default setting for this parameter is -1 (no limit).
  208. </xs:documentation>
  209. </xs:annotation>
  210. </xs:attribute>
  211. <xs:attribute name="minIdle" type="xs:int" default="1">
  212. <xs:annotation>
  213. <xs:documentation>
  214. Sets a target value for the minimum number of idle connections (per server) that should always be available. If this parameter is set to a positive number and timeBetweenEvictionRunsMillis > 0, each time the idle connection eviction thread runs, it will try to create enough idle instances so that there will be minIdle idle instances available for each server. The default setting for this parameter is 1.
  215. </xs:documentation>
  216. </xs:annotation>
  217. </xs:attribute>
  218. <xs:attribute name="timeBetweenEvictionRuns" type="xs:long" default="120000">
  219. <xs:annotation>
  220. <xs:documentation>
  221. Indicates how long the eviction thread should sleep before "runs" of examining idle connections. When non-positive, no eviction thread will be launched. The default setting for this parameter is 2 minutes.
  222. </xs:documentation>
  223. </xs:annotation>
  224. </xs:attribute>
  225. <xs:attribute name="minEvictableIdleTime" type="xs:long" default="1800000">
  226. <xs:annotation>
  227. <xs:documentation>
  228. Specifies the minimum amount of time that an connection may sit idle in the pool before it is eligible for eviction due to idle time. When non-positive, no connection will be dropped from the pool due to idle time alone. This setting has no effect unless timeBetweenEvictionRunsMillis > 0. The default setting for this parameter is 1800000(30 minutes).
  229. </xs:documentation>
  230. </xs:annotation>
  231. </xs:attribute>
  232. <xs:attribute name="testWhileIdle" type="xs:boolean" default="true">
  233. <xs:annotation>
  234. <xs:documentation>
  235. Indicates whether or not idle connections should be validated by sending an TCP packet to the server, during idle connection eviction runs. Connections that fail to validate will be dropped from the pool. This setting has no effect unless timeBetweenEvictionRunsMillis > 0. The default setting for this parameter is true.
  236. </xs:documentation>
  237. </xs:annotation>
  238. </xs:attribute>
  239. </xs:complexType>
  240. <xs:simpleType name="exhaustedAction">
  241. <xs:restriction base="xs:string">
  242. <xs:enumeration value="EXCEPTION">
  243. <xs:annotation>
  244. <xs:documentation>
  245. An exception will be thrown to the calling user
  246. </xs:documentation>
  247. </xs:annotation>
  248. </xs:enumeration>
  249. <xs:enumeration value="WAIT">
  250. <xs:annotation>
  251. <xs:documentation>
  252. The caller will block (invoke waits until a new or idle connections is available.
  253. </xs:documentation>
  254. </xs:annotation>
  255. </xs:enumeration>
  256. <xs:enumeration value="CREATE_NEW">
  257. <xs:annotation>
  258. <xs:documentation>
  259. A new persistent connection will be created and returned (essentially making maxActive meaningless.)
  260. </xs:documentation>
  261. </xs:annotation>
  262. </xs:enumeration>
  263. </xs:restriction>
  264. </xs:simpleType>
  265. </xs:schema>