jboss-as-infinispan_1_0.xsd 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801
  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:infinispan:1.0"
  24. xmlns:xs="http://www.w3.org/2001/XMLSchema"
  25. xmlns:tns="urn:jboss:domain:infinispan: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 cache containers available to the registry.</xs:documentation>
  32. </xs:annotation>
  33. </xs:element>
  34. <xs:complexType name="subsystem">
  35. <xs:sequence>
  36. <xs:element name="cache-container" type="tns:cache-container" maxOccurs="unbounded">
  37. <xs:annotation>
  38. <xs:documentation>Defines an embedded cache container.</xs:documentation>
  39. </xs:annotation>
  40. </xs:element>
  41. </xs:sequence>
  42. <xs:attribute name="default-cache-container" type="xs:string" use="required">
  43. <xs:annotation>
  44. <xs:documentation>Identifies the default cache container.</xs:documentation>
  45. </xs:annotation>
  46. </xs:attribute>
  47. </xs:complexType>
  48. <xs:complexType name="cache-container">
  49. <xs:sequence>
  50. <xs:element name="alias" type="xs:string" minOccurs="0" maxOccurs="unbounded">
  51. <xs:annotation>
  52. <xs:documentation>Defines an additional name by which this cache container may be referenced.</xs:documentation>
  53. </xs:annotation>
  54. </xs:element>
  55. <xs:element name="transport" type="tns:transport" minOccurs="0">
  56. <xs:annotation>
  57. <xs:documentation>Overrides the transport characteristics for this cache container.</xs:documentation>
  58. </xs:annotation>
  59. </xs:element>
  60. <xs:choice maxOccurs="unbounded">
  61. <xs:element name="local-cache" type="tns:local-cache">
  62. <xs:annotation>
  63. <xs:documentation>Defines a LOCAL mode cache.</xs:documentation>
  64. </xs:annotation>
  65. </xs:element>
  66. <xs:element name="replicated-cache" type="tns:replicated-cache">
  67. <xs:annotation>
  68. <xs:documentation>Defines a REPL_* mode cache.</xs:documentation>
  69. </xs:annotation>
  70. </xs:element>
  71. <xs:element name="invalidation-cache" type="tns:invalidation-cache">
  72. <xs:annotation>
  73. <xs:documentation>Defines an INVALIDATION_* mode cache.</xs:documentation>
  74. </xs:annotation>
  75. </xs:element>
  76. <xs:element name="distributed-cache" type="tns:distributed-cache">
  77. <xs:annotation>
  78. <xs:documentation>Defines a DIST_* mode cache.</xs:documentation>
  79. </xs:annotation>
  80. </xs:element>
  81. </xs:choice>
  82. </xs:sequence>
  83. <xs:attribute name="name" type="xs:string" use="required">
  84. <xs:annotation>
  85. <xs:documentation>Uniquely identifies this cache container.</xs:documentation>
  86. </xs:annotation>
  87. </xs:attribute>
  88. <xs:attribute name="jndi-name" type="xs:string">
  89. <xs:annotation>
  90. <xs:documentation></xs:documentation>
  91. </xs:annotation>
  92. </xs:attribute>
  93. <xs:attribute name="default-cache" type="xs:string">
  94. <xs:annotation>
  95. <xs:documentation></xs:documentation>
  96. </xs:annotation>
  97. </xs:attribute>
  98. <xs:attribute name="listener-executor" type="xs:string">
  99. <xs:annotation>
  100. <xs:documentation>Defines the executor used for asynchronous cache listener notifications.</xs:documentation>
  101. </xs:annotation>
  102. </xs:attribute>
  103. <xs:attribute name="eviction-executor" type="xs:string">
  104. <xs:annotation>
  105. <xs:documentation>Defines the scheduled executor used for evictions.</xs:documentation>
  106. </xs:annotation>
  107. </xs:attribute>
  108. <xs:attribute name="replication-queue-executor" type="xs:string">
  109. <xs:annotation>
  110. <xs:documentation>Defines the scheduled executor used by the asynchronous replication queue.</xs:documentation>
  111. </xs:annotation>
  112. </xs:attribute>
  113. </xs:complexType>
  114. <xs:complexType name="transport">
  115. <xs:attribute name="stack" type="xs:string">
  116. <xs:annotation>
  117. <xs:documentation>Defines the jgroups stack used by the transport.</xs:documentation>
  118. </xs:annotation>
  119. </xs:attribute>
  120. <xs:attribute name="executor" type="xs:string" >
  121. <xs:annotation>
  122. <xs:documentation>Defines the executor used for asynchronous transport communication.</xs:documentation>
  123. </xs:annotation>
  124. </xs:attribute>
  125. <xs:attribute name="lock-timeout" type="xs:long" default="60000">
  126. <xs:annotation>
  127. <xs:documentation>
  128. Infinispan uses a distributed lock to maintain a coherent transaction log during state transfer or rehashing, which means that only one cache can be doing state transfer or rehashing at the same time.
  129. This constraint is in place because more than one cache could be involved in a transaction.
  130. This timeout controls the time to wait to acquire acquire a lock on the distributed lock.
  131. </xs:documentation>
  132. </xs:annotation>
  133. </xs:attribute>
  134. <xs:attribute name="site" type="xs:string">
  135. <xs:annotation>
  136. <xs:documentation>Identifies the site where this node runs.</xs:documentation>
  137. </xs:annotation>
  138. </xs:attribute>
  139. <xs:attribute name="rack" type="xs:string">
  140. <xs:annotation>
  141. <xs:documentation>Identifies the rack where this node runs.</xs:documentation>
  142. </xs:annotation>
  143. </xs:attribute>
  144. <xs:attribute name="machine" type="xs:string">
  145. <xs:annotation>
  146. <xs:documentation>Identifies the machine where this node runs.</xs:documentation>
  147. </xs:annotation>
  148. </xs:attribute>
  149. </xs:complexType>
  150. <xs:complexType name="cache" abstract="true">
  151. <xs:sequence>
  152. <xs:element name="locking" type="tns:locking" minOccurs="0">
  153. <xs:annotation>
  154. <xs:documentation></xs:documentation>
  155. </xs:annotation>
  156. </xs:element>
  157. <xs:element name="transaction" type="tns:transaction" minOccurs="0">
  158. <xs:annotation>
  159. <xs:documentation></xs:documentation>
  160. </xs:annotation>
  161. </xs:element>
  162. <xs:element name="eviction" type="tns:eviction" minOccurs="0">
  163. <xs:annotation>
  164. <xs:documentation></xs:documentation>
  165. </xs:annotation>
  166. </xs:element>
  167. <xs:element name="expiration" type="tns:expiration" minOccurs="0">
  168. <xs:annotation>
  169. <xs:documentation></xs:documentation>
  170. </xs:annotation>
  171. </xs:element>
  172. <xs:choice minOccurs="0">
  173. <xs:element name="store" type="tns:custom-store">
  174. <xs:annotation>
  175. <xs:documentation>Defines a custom cache store.</xs:documentation>
  176. </xs:annotation>
  177. </xs:element>
  178. <xs:element name="file-store" type="tns:file-store">
  179. <xs:annotation>
  180. <xs:documentation>Defines a file-based cache store.</xs:documentation>
  181. </xs:annotation>
  182. </xs:element>
  183. <xs:element name="jdbc-store" type="tns:jdbc-store">
  184. <xs:annotation>
  185. <xs:documentation>Defines a database cache store accessed via JDBC.</xs:documentation>
  186. </xs:annotation>
  187. </xs:element>
  188. <xs:element name="remote-store" type="tns:remote-store">
  189. <xs:annotation>
  190. <xs:documentation>
  191. Defines a remote cache store accessed via HotRod.
  192. Nested properties will be treated as HotRod client properties.
  193. </xs:documentation>
  194. </xs:annotation>
  195. </xs:element>
  196. </xs:choice>
  197. </xs:sequence>
  198. <xs:attribute name="name" type="xs:string" use="required">
  199. <xs:annotation>
  200. <xs:documentation>Uniquely identifies this cache within its cache container.</xs:documentation>
  201. </xs:annotation>
  202. </xs:attribute>
  203. <xs:attribute name="start" type="tns:controller-mode" default="LAZY">
  204. <xs:annotation>
  205. <xs:documentation>Should this cache be started on server startup, or lazily when requested by a service or deployment.</xs:documentation>
  206. </xs:annotation>
  207. </xs:attribute>
  208. <xs:attribute name="batching" type="xs:boolean" default="false">
  209. <xs:annotation>
  210. <xs:documentation></xs:documentation>
  211. </xs:annotation>
  212. </xs:attribute>
  213. <xs:attribute name="indexing" type="tns:indexing" default="NONE">
  214. <xs:annotation>
  215. <xs:documentation></xs:documentation>
  216. </xs:annotation>
  217. </xs:attribute>
  218. </xs:complexType>
  219. <xs:complexType name="local-cache">
  220. <xs:complexContent>
  221. <xs:extension base="tns:cache"></xs:extension>
  222. </xs:complexContent>
  223. </xs:complexType>
  224. <xs:complexType name="locking">
  225. <xs:attribute name="isolation" type="tns:isolation" default="REPEATABLE_READ">
  226. <xs:annotation>
  227. <xs:documentation></xs:documentation>
  228. </xs:annotation>
  229. </xs:attribute>
  230. <xs:attribute name="striping" type="xs:boolean" default="false">
  231. <xs:annotation>
  232. <xs:documentation></xs:documentation>
  233. </xs:annotation>
  234. </xs:attribute>
  235. <xs:attribute name="acquire-timeout" type="xs:long" default="15000">
  236. <xs:annotation>
  237. <xs:documentation></xs:documentation>
  238. </xs:annotation>
  239. </xs:attribute>
  240. <xs:attribute name="concurrency-level" type="xs:int" default="1000">
  241. <xs:annotation>
  242. <xs:documentation></xs:documentation>
  243. </xs:annotation>
  244. </xs:attribute>
  245. </xs:complexType>
  246. <xs:complexType name="transaction">
  247. <xs:attribute name="mode" type="tns:transaction-mode" default="NON_XA">
  248. <xs:annotation>
  249. <xs:documentation></xs:documentation>
  250. </xs:annotation>
  251. </xs:attribute>
  252. <xs:attribute name="stop-timeout" type="xs:long" default="30000">
  253. <xs:annotation>
  254. <xs:documentation></xs:documentation>
  255. </xs:annotation>
  256. </xs:attribute>
  257. <xs:attribute name="eager-locking" type="tns:eager-locking" default="SINGLE">
  258. <xs:annotation>
  259. <xs:documentation></xs:documentation>
  260. </xs:annotation>
  261. </xs:attribute>
  262. </xs:complexType>
  263. <xs:complexType name="eviction">
  264. <xs:attribute name="strategy" type="tns:eviction-strategy" default="NONE">
  265. <xs:annotation>
  266. <xs:documentation></xs:documentation>
  267. </xs:annotation>
  268. </xs:attribute>
  269. <xs:attribute name="max-entries" type="xs:int" default="10000">
  270. <xs:annotation>
  271. <xs:documentation></xs:documentation>
  272. </xs:annotation>
  273. </xs:attribute>
  274. </xs:complexType>
  275. <xs:complexType name="expiration">
  276. <xs:attribute name="max-idle" type="xs:long" default="-1">
  277. <xs:annotation>
  278. <xs:documentation></xs:documentation>
  279. </xs:annotation>
  280. </xs:attribute>
  281. <xs:attribute name="lifespan" type="xs:long" default="-1">
  282. <xs:annotation>
  283. <xs:documentation></xs:documentation>
  284. </xs:annotation>
  285. </xs:attribute>
  286. <xs:attribute name="interval" type="xs:long" default="5000">
  287. <xs:annotation>
  288. <xs:documentation></xs:documentation>
  289. </xs:annotation>
  290. </xs:attribute>
  291. </xs:complexType>
  292. <xs:complexType name="clustered-cache" abstract="true">
  293. <xs:complexContent>
  294. <xs:extension base="tns:cache">
  295. <xs:attribute name="mode" type="tns:mode" use="required">
  296. <xs:annotation>
  297. <xs:documentation></xs:documentation>
  298. </xs:annotation>
  299. </xs:attribute>
  300. <xs:attribute name="queue-size" type="xs:int" default="1000">
  301. <xs:annotation>
  302. <xs:documentation></xs:documentation>
  303. </xs:annotation>
  304. </xs:attribute>
  305. <xs:attribute name="queue-flush-interval" type="xs:long" default="10">
  306. <xs:annotation>
  307. <xs:documentation></xs:documentation>
  308. </xs:annotation>
  309. </xs:attribute>
  310. <xs:attribute name="remote-timeout" type="xs:long" default="17500">
  311. <xs:annotation>
  312. <xs:documentation></xs:documentation>
  313. </xs:annotation>
  314. </xs:attribute>
  315. </xs:extension>
  316. </xs:complexContent>
  317. </xs:complexType>
  318. <xs:complexType name="invalidation-cache">
  319. <xs:complexContent>
  320. <xs:extension base="tns:clustered-cache"></xs:extension>
  321. </xs:complexContent>
  322. </xs:complexType>
  323. <xs:complexType name="replicated-cache">
  324. <xs:complexContent>
  325. <xs:extension base="tns:clustered-cache">
  326. <xs:sequence>
  327. <xs:element name="state-transfer" type="tns:state-transfer" minOccurs="0">
  328. <xs:annotation>
  329. <xs:documentation></xs:documentation>
  330. </xs:annotation>
  331. </xs:element>
  332. </xs:sequence>
  333. </xs:extension>
  334. </xs:complexContent>
  335. </xs:complexType>
  336. <xs:complexType name="distributed-cache">
  337. <xs:complexContent>
  338. <xs:extension base="tns:clustered-cache">
  339. <xs:sequence>
  340. <xs:element name="rehashing" type="tns:rehashing" minOccurs="0">
  341. <xs:annotation>
  342. <xs:documentation></xs:documentation>
  343. </xs:annotation>
  344. </xs:element>
  345. </xs:sequence>
  346. <xs:attribute name="owners" type="xs:int" default="2">
  347. <xs:annotation>
  348. <xs:documentation>Number of cluster-wide replicas for each cache entry.</xs:documentation>
  349. </xs:annotation>
  350. </xs:attribute>
  351. <xs:attribute name="virtual-nodes" type="xs:int" default="1">
  352. <xs:annotation>
  353. <xs:documentation>Controls the number of virtual nodes per "real" node.</xs:documentation>
  354. </xs:annotation>
  355. </xs:attribute>
  356. <xs:attribute name="l1-lifespan" type="xs:long" default="600000">
  357. <xs:annotation>
  358. <xs:documentation></xs:documentation>
  359. </xs:annotation>
  360. </xs:attribute>
  361. </xs:extension>
  362. </xs:complexContent>
  363. </xs:complexType>
  364. <xs:complexType name="store" abstract="true">
  365. <xs:sequence>
  366. <xs:element name="property" type="tns:property" minOccurs="0" maxOccurs="unbounded">
  367. <xs:annotation>
  368. <xs:documentation></xs:documentation>
  369. </xs:annotation>
  370. </xs:element>
  371. </xs:sequence>
  372. <xs:attribute name="shared" type="xs:boolean" default="false">
  373. <xs:annotation>
  374. <xs:documentation></xs:documentation>
  375. </xs:annotation>
  376. </xs:attribute>
  377. <xs:attribute name="preload" type="xs:boolean" default="false">
  378. <xs:annotation>
  379. <xs:documentation></xs:documentation>
  380. </xs:annotation>
  381. </xs:attribute>
  382. <xs:attribute name="passivation" type="xs:boolean" default="true">
  383. <xs:annotation>
  384. <xs:documentation></xs:documentation>
  385. </xs:annotation>
  386. </xs:attribute>
  387. <xs:attribute name="fetch-state" type="xs:boolean" default="true">
  388. <xs:annotation>
  389. <xs:documentation></xs:documentation>
  390. </xs:annotation>
  391. </xs:attribute>
  392. <xs:attribute name="purge" type="xs:boolean" default="true">
  393. <xs:annotation>
  394. <xs:documentation></xs:documentation>
  395. </xs:annotation>
  396. </xs:attribute>
  397. <xs:attribute name="singleton" type="xs:boolean" default="false">
  398. <xs:annotation>
  399. <xs:documentation></xs:documentation>
  400. </xs:annotation>
  401. </xs:attribute>
  402. </xs:complexType>
  403. <xs:complexType name="custom-store">
  404. <xs:complexContent>
  405. <xs:extension base="tns:store">
  406. <xs:attribute name="class" type="xs:string" use="required">
  407. <xs:annotation>
  408. <xs:documentation>The class name of the cache store implementation.</xs:documentation>
  409. </xs:annotation>
  410. </xs:attribute>
  411. </xs:extension>
  412. </xs:complexContent>
  413. </xs:complexType>
  414. <xs:complexType name="file-store">
  415. <xs:complexContent>
  416. <xs:extension base="tns:store">
  417. <xs:attribute name="relative-to" type="xs:string" default="jboss.server.data.dir">
  418. <xs:annotation>
  419. <xs:documentation>The base directory in which to store the cache state.</xs:documentation>
  420. </xs:annotation>
  421. </xs:attribute>
  422. <xs:attribute name="path" type="xs:string">
  423. <xs:annotation>
  424. <xs:documentation>
  425. The path within "relative-to" in which to store the cache state.
  426. If undefined, the path defaults to the cache container name.
  427. </xs:documentation>
  428. </xs:annotation>
  429. </xs:attribute>
  430. </xs:extension>
  431. </xs:complexContent>
  432. </xs:complexType>
  433. <xs:complexType name="remote-store">
  434. <xs:complexContent>
  435. <xs:extension base="tns:store">
  436. <xs:sequence>
  437. <xs:element name="remote-server" type="tns:remote-server" minOccurs="1" maxOccurs="unbounded"/>
  438. </xs:sequence>
  439. <xs:attribute name="cache" type="xs:string">
  440. <xs:annotation>
  441. <xs:documentation>The name of the remote cache. If undefined, the default cache will be used.</xs:documentation>
  442. </xs:annotation>
  443. </xs:attribute>
  444. <xs:attribute name="socket-timeout" type="xs:long" default="60000">
  445. <xs:annotation>
  446. <xs:documentation>
  447. Enable/disable SO_TIMEOUT on socket connections to remote Hot Rod servers with the specified timeout, in milliseconds.
  448. A timeout of zero is interpreted as an infinite timeout.
  449. </xs:documentation>
  450. </xs:annotation>
  451. </xs:attribute>
  452. <xs:attribute name="tcp-no-delay" type="xs:boolean" default="true">
  453. <xs:annotation>
  454. <xs:documentation>
  455. Enable/disable TCP_NODELAY on socket connections to remote Hot Rod servers.
  456. </xs:documentation>
  457. </xs:annotation>
  458. </xs:attribute>
  459. </xs:extension>
  460. </xs:complexContent>
  461. </xs:complexType>
  462. <xs:complexType name="remote-server">
  463. <xs:attribute name="outbound-socket-binding"/>
  464. </xs:complexType>
  465. <xs:complexType name="jdbc-store">
  466. <xs:complexContent>
  467. <xs:extension base="tns:store">
  468. <xs:sequence>
  469. <xs:element name="bucket-table" type="tns:bucket-table" minOccurs="0">
  470. <xs:annotation>
  471. <xs:documentation>
  472. Defines the table used to store cache buckets.
  473. If an entry-table is also defined, a mixed-mode cache store will be used.
  474. </xs:documentation>
  475. </xs:annotation>
  476. </xs:element>
  477. <xs:element name="entry-table" type="tns:entry-table" minOccurs="0">
  478. <xs:annotation>
  479. <xs:documentation>
  480. Defines the table used to store cache entries.
  481. If a bucket-table is also defined, a mixed-mode cache store will be used.
  482. </xs:documentation>
  483. </xs:annotation>
  484. </xs:element>
  485. </xs:sequence>
  486. <xs:attribute name="datasource" type="xs:string" use="required">
  487. <xs:annotation>
  488. <xs:documentation>Defines the jndi name of the datasource.</xs:documentation>
  489. </xs:annotation>
  490. </xs:attribute>
  491. </xs:extension>
  492. </xs:complexContent>
  493. </xs:complexType>
  494. <xs:complexType name="entry-table">
  495. <xs:complexContent>
  496. <xs:extension base="tns:table">
  497. <xs:attribute name="prefix" type="xs:string" default="ispn_entry">
  498. <xs:annotation>
  499. <xs:documentation>Defines the prefix prepended to the cache name used when composing the name of the cache entry table.</xs:documentation>
  500. </xs:annotation>
  501. </xs:attribute>
  502. </xs:extension>
  503. </xs:complexContent>
  504. </xs:complexType>
  505. <xs:complexType name="bucket-table">
  506. <xs:complexContent>
  507. <xs:extension base="tns:table">
  508. <xs:attribute name="prefix" type="xs:string" default="ispn_bucket">
  509. <xs:annotation>
  510. <xs:documentation>Defines the prefix prepended to the cache name used when composing the name of the cache bucket table.</xs:documentation>
  511. </xs:annotation>
  512. </xs:attribute>
  513. </xs:extension>
  514. </xs:complexContent>
  515. </xs:complexType>
  516. <xs:complexType name="table">
  517. <xs:sequence>
  518. <xs:element name="id-column" type="tns:id-column" minOccurs="0">
  519. <xs:annotation>
  520. <xs:documentation>Defines the column in which to store the cache key or bucket id.</xs:documentation>
  521. </xs:annotation>
  522. </xs:element>
  523. <xs:element name="data-column" type="tns:data-column" minOccurs="0">
  524. <xs:annotation>
  525. <xs:documentation>Defines the column in which to store the cache entry or bucket.</xs:documentation>
  526. </xs:annotation>
  527. </xs:element>
  528. <xs:element name="timestamp-column" type="tns:timestamp-column" minOccurs="0">
  529. <xs:annotation>
  530. <xs:documentation>Defines the column in which to store the timestamp of the cache entry or bucket.</xs:documentation>
  531. </xs:annotation>
  532. </xs:element>
  533. </xs:sequence>
  534. <xs:attribute name="fetch-size" type="xs:int" default="100">
  535. <xs:annotation>
  536. <xs:documentation>The fetch size used when querying from this table. Used to avoid heap memory exhaustion when query is large.</xs:documentation>
  537. </xs:annotation>
  538. </xs:attribute>
  539. <xs:attribute name="batch-size" type="xs:int" default="100">
  540. <xs:annotation>
  541. <xs:documentation>The statement batch size used when modifying this table.</xs:documentation>
  542. </xs:annotation>
  543. </xs:attribute>
  544. </xs:complexType>
  545. <xs:complexType name="id-column">
  546. <xs:attribute name="name" type="xs:string" default="id">
  547. <xs:annotation>
  548. <xs:documentation>The name of the column used to store the cache key or bucket id.</xs:documentation>
  549. </xs:annotation>
  550. </xs:attribute>
  551. <xs:attribute name="type" type="xs:string" default="VARCHAR">
  552. <xs:annotation>
  553. <xs:documentation>The type of the column used to store the cache key or bucket id.</xs:documentation>
  554. </xs:annotation>
  555. </xs:attribute>
  556. </xs:complexType>
  557. <xs:complexType name="data-column">
  558. <xs:attribute name="name" type="xs:string" default="datum">
  559. <xs:annotation>
  560. <xs:documentation>The name of the column used to store the cache entry or bucket.</xs:documentation>
  561. </xs:annotation>
  562. </xs:attribute>
  563. <xs:attribute name="type" type="xs:string" default="BINARY">
  564. <xs:annotation>
  565. <xs:documentation>The type of the column used to store the cache entry or bucket.</xs:documentation>
  566. </xs:annotation>
  567. </xs:attribute>
  568. </xs:complexType>
  569. <xs:complexType name="timestamp-column">
  570. <xs:attribute name="name" type="xs:string" default="version">
  571. <xs:annotation>
  572. <xs:documentation>The name of the column used to store the cache entry or bucket timestamp.</xs:documentation>
  573. </xs:annotation>
  574. </xs:attribute>
  575. <xs:attribute name="type" type="xs:string" default="BIGINT">
  576. <xs:annotation>
  577. <xs:documentation>The type of the column used to store the cache entry or bucket timestamp.</xs:documentation>
  578. </xs:annotation>
  579. </xs:attribute>
  580. </xs:complexType>
  581. <xs:complexType name="state-transfer">
  582. <xs:attribute name="enabled" type="xs:boolean" default="true">
  583. <xs:annotation>
  584. <xs:documentation></xs:documentation>
  585. </xs:annotation>
  586. </xs:attribute>
  587. <xs:attribute name="timeout" type="xs:long" default="60000">
  588. <xs:annotation>
  589. <xs:documentation></xs:documentation>
  590. </xs:annotation>
  591. </xs:attribute>
  592. <xs:attribute name="flush-timeout" type="xs:long" default="60000">
  593. <xs:annotation>
  594. <xs:documentation></xs:documentation>
  595. </xs:annotation>
  596. </xs:attribute>
  597. </xs:complexType>
  598. <xs:complexType name="rehashing">
  599. <xs:attribute name="enabled" type="xs:boolean" default="true">
  600. <xs:annotation>
  601. <xs:documentation></xs:documentation>
  602. </xs:annotation>
  603. </xs:attribute>
  604. <xs:attribute name="timeout" type="xs:long" default="600000">
  605. <xs:annotation>
  606. <xs:documentation></xs:documentation>
  607. </xs:annotation>
  608. </xs:attribute>
  609. </xs:complexType>
  610. <xs:complexType name="property">
  611. <xs:simpleContent>
  612. <xs:extension base="xs:string">
  613. <xs:attribute name="name" type="xs:string" use="required">
  614. <xs:annotation>
  615. <xs:documentation>Defines the name of a property.</xs:documentation>
  616. </xs:annotation>
  617. </xs:attribute>
  618. </xs:extension>
  619. </xs:simpleContent>
  620. </xs:complexType>
  621. <xs:simpleType name="isolation">
  622. <xs:restriction base="xs:token">
  623. <xs:enumeration value="NONE">
  624. <xs:annotation>
  625. <xs:documentation></xs:documentation>
  626. </xs:annotation>
  627. </xs:enumeration>
  628. <xs:enumeration value="READ_UNCOMMITTED">
  629. <xs:annotation>
  630. <xs:documentation></xs:documentation>
  631. </xs:annotation>
  632. </xs:enumeration>
  633. <xs:enumeration value="READ_COMMITTED">
  634. <xs:annotation>
  635. <xs:documentation></xs:documentation>
  636. </xs:annotation>
  637. </xs:enumeration>
  638. <xs:enumeration value="REPEATABLE_READ">
  639. <xs:annotation>
  640. <xs:documentation></xs:documentation>
  641. </xs:annotation>
  642. </xs:enumeration>
  643. <xs:enumeration value="SERIALIZABLE">
  644. <xs:annotation>
  645. <xs:documentation></xs:documentation>
  646. </xs:annotation>
  647. </xs:enumeration>
  648. </xs:restriction>
  649. </xs:simpleType>
  650. <xs:simpleType name="transaction-mode">
  651. <xs:restriction base="xs:token">
  652. <xs:enumeration value="NON_XA">
  653. <xs:annotation>
  654. <xs:documentation>Cache will enlist within transactions as a javax.transaction.Synchronization</xs:documentation>
  655. </xs:annotation>
  656. </xs:enumeration>
  657. <xs:enumeration value="NON_DURABLE_XA">
  658. <xs:annotation>
  659. <xs:documentation>Cache will enlist within transactions as a javax.transaction.xa.XAResource, without recovery.</xs:documentation>
  660. </xs:annotation>
  661. </xs:enumeration>
  662. <xs:enumeration value="FULL_XA">
  663. <xs:annotation>
  664. <xs:documentation>Cache will enlist within transactions as a javax.transaction.xa.XAResource, with recovery.</xs:documentation>
  665. </xs:annotation>
  666. </xs:enumeration>
  667. </xs:restriction>
  668. </xs:simpleType>
  669. <xs:simpleType name="eager-locking">
  670. <xs:restriction base="xs:token">
  671. <xs:enumeration value="NONE">
  672. <xs:annotation>
  673. <xs:documentation></xs:documentation>
  674. </xs:annotation>
  675. </xs:enumeration>
  676. <xs:enumeration value="SINGLE">
  677. <xs:annotation>
  678. <xs:documentation></xs:documentation>
  679. </xs:annotation>
  680. </xs:enumeration>
  681. <xs:enumeration value="ALL">
  682. <xs:annotation>
  683. <xs:documentation></xs:documentation>
  684. </xs:annotation>
  685. </xs:enumeration>
  686. </xs:restriction>
  687. </xs:simpleType>
  688. <xs:simpleType name="indexing">
  689. <xs:restriction base="xs:token">
  690. <xs:enumeration value="NONE">
  691. <xs:annotation>
  692. <xs:documentation></xs:documentation>
  693. </xs:annotation>
  694. </xs:enumeration>
  695. <xs:enumeration value="LOCAL">
  696. <xs:annotation>
  697. <xs:documentation></xs:documentation>
  698. </xs:annotation>
  699. </xs:enumeration>
  700. <xs:enumeration value="ALL">
  701. <xs:annotation>
  702. <xs:documentation></xs:documentation>
  703. </xs:annotation>
  704. </xs:enumeration>
  705. </xs:restriction>
  706. </xs:simpleType>
  707. <xs:simpleType name="eviction-strategy">
  708. <xs:restriction base="xs:token">
  709. <xs:enumeration value="NONE">
  710. <xs:annotation>
  711. <xs:documentation></xs:documentation>
  712. </xs:annotation>
  713. </xs:enumeration>
  714. <xs:enumeration value="UNORDERED">
  715. <xs:annotation>
  716. <xs:documentation></xs:documentation>
  717. </xs:annotation>
  718. </xs:enumeration>
  719. <xs:enumeration value="FIFO">
  720. <xs:annotation>
  721. <xs:documentation></xs:documentation>
  722. </xs:annotation>
  723. </xs:enumeration>
  724. <xs:enumeration value="LRU">
  725. <xs:annotation>
  726. <xs:documentation></xs:documentation>
  727. </xs:annotation>
  728. </xs:enumeration>
  729. <xs:enumeration value="LIRS">
  730. <xs:annotation>
  731. <xs:documentation></xs:documentation>
  732. </xs:annotation>
  733. </xs:enumeration>
  734. </xs:restriction>
  735. </xs:simpleType>
  736. <xs:simpleType name="mode">
  737. <xs:restriction base="xs:token">
  738. <xs:enumeration value="ASYNC">
  739. <xs:annotation>
  740. <xs:documentation></xs:documentation>
  741. </xs:annotation>
  742. </xs:enumeration>
  743. <xs:enumeration value="SYNC">
  744. <xs:annotation>
  745. <xs:documentation></xs:documentation>
  746. </xs:annotation>
  747. </xs:enumeration>
  748. </xs:restriction>
  749. </xs:simpleType>
  750. <xs:simpleType name="controller-mode">
  751. <xs:restriction base="xs:token">
  752. <xs:enumeration value="EAGER">
  753. <xs:annotation>
  754. <xs:documentation></xs:documentation>
  755. </xs:annotation>
  756. </xs:enumeration>
  757. <xs:enumeration value="LAZY">
  758. <xs:annotation>
  759. <xs:documentation></xs:documentation>
  760. </xs:annotation>
  761. </xs:enumeration>
  762. </xs:restriction>
  763. </xs:simpleType>
  764. </xs:schema>