/hazelcast-wm/src/test/webapp/WEB-INF/hazelcast.xml

https://bitbucket.org/gabral6_gmailcom/hazelcast · XML · 183 lines · 68 code · 3 blank · 112 comment · 0 complexity · 840646cfc1db2d91209560eaf30c91f1 MD5 · raw file

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Copyright (c) 2008-2013, Hazelcast, Inc. All Rights Reserved.
  4. ~
  5. ~ Licensed under the Apache License, Version 2.0 (the "License");
  6. ~ you may not use this file except in compliance with the License.
  7. ~ You may obtain a copy of the License at
  8. ~
  9. ~ http://www.apache.org/licenses/LICENSE-2.0
  10. ~
  11. ~ Unless required by applicable law or agreed to in writing, software
  12. ~ distributed under the License is distributed on an "AS IS" BASIS,
  13. ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. ~ See the License for the specific language governing permissions and
  15. ~ limitations under the License.
  16. -->
  17. <hazelcast xsi:schemaLocation="http://www.hazelcast.com/schema/config http://www.hazelcast.com/schema/config/hazelcast-config-2.1.xsd"
  18. xmlns="http://www.hazelcast.com/schema/config"
  19. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  20. <group>
  21. <name>dev</name>
  22. <password>dev-pass</password>
  23. </group>
  24. <management-center enabled="false">http://localhost:8080/mancenter</management-center>
  25. <network>
  26. <port auto-increment="true">5701</port>
  27. <join>
  28. <multicast enabled="true">
  29. <multicast-group>224.2.2.3</multicast-group>
  30. <multicast-port>54327</multicast-port>
  31. </multicast>
  32. <tcp-ip enabled="false">
  33. <interface>127.0.0.1</interface>
  34. </tcp-ip>
  35. <aws enabled="false">
  36. <access-key>my-access-key</access-key>
  37. <secret-key>my-secret-key</secret-key>
  38. <!--optional, default is us-east-1 -->
  39. <region>us-west-1</region>
  40. <!-- optional, only instances belonging to this group will be discovered, default will try all running instances -->
  41. <security-group-name>hazelcast-sg</security-group-name>
  42. <tag-key>type</tag-key>
  43. <tag-value>hz-nodes</tag-value>
  44. </aws>
  45. </join>
  46. <interfaces enabled="false">
  47. <interface>10.10.1.*</interface>
  48. </interfaces>
  49. <ssl enabled="false" />
  50. <socket-interceptor enabled="false" />
  51. <symmetric-encryption enabled="false">
  52. <!--
  53. encryption algorithm such as
  54. DES/ECB/PKCS5Padding,
  55. PBEWithMD5AndDES,
  56. AES/CBC/PKCS5Padding,
  57. Blowfish,
  58. DESede
  59. -->
  60. <algorithm>PBEWithMD5AndDES</algorithm>
  61. <!-- salt value to use when generating the secret key -->
  62. <salt>thesalt</salt>
  63. <!-- pass phrase to use when generating the secret key -->
  64. <password>thepass</password>
  65. <!-- iteration count to use when generating the secret key -->
  66. <iteration-count>19</iteration-count>
  67. </symmetric-encryption>
  68. <asymmetric-encryption enabled="false">
  69. <!-- encryption algorithm -->
  70. <algorithm>RSA/NONE/PKCS1PADDING</algorithm>
  71. <!-- private key password -->
  72. <keyPassword>thekeypass</keyPassword>
  73. <!-- private key alias -->
  74. <keyAlias>local</keyAlias>
  75. <!-- key store type -->
  76. <storeType>JKS</storeType>
  77. <!-- key store password -->
  78. <storePassword>thestorepass</storePassword>
  79. <!-- path to the key store -->
  80. <storePath>keystore</storePath>
  81. </asymmetric-encryption>
  82. </network>
  83. <partition-group enabled="false"/>
  84. <executor-service>
  85. <core-pool-size>16</core-pool-size>
  86. <max-pool-size>64</max-pool-size>
  87. <keep-alive-seconds>60</keep-alive-seconds>
  88. </executor-service>
  89. <queue name="default">
  90. <!--
  91. Maximum size of the queue. When a JVM's local queue size reaches the maximum,
  92. all put/offer operations will get blocked until the queue size
  93. of the JVM goes down below the maximum.
  94. Any integer between 0 and Integer.MAX_VALUE. 0 means
  95. Integer.MAX_VALUE. Default is 0.
  96. -->
  97. <max-size-per-jvm>0</max-size-per-jvm>
  98. <!--
  99. Name of the map configuration that will be used for the backing distributed
  100. map for this queue.
  101. -->
  102. <backing-map-ref>default</backing-map-ref>
  103. </queue>
  104. <map name="default">
  105. <!--
  106. Number of backups. If 1 is set as the backup-count for example,
  107. then all entries of the map will be copied to another JVM for
  108. fail-safety. 0 means no backup.
  109. -->
  110. <backup-count>1</backup-count>
  111. <!--
  112. Maximum number of seconds for each entry to stay in the map. Entries that are
  113. older than <time-to-live-seconds> and not updated for <time-to-live-seconds>
  114. will get automatically evicted from the map.
  115. Any integer between 0 and Integer.MAX_VALUE. 0 means infinite. Default is 0.
  116. -->
  117. <time-to-live-seconds>0</time-to-live-seconds>
  118. <!--
  119. Maximum number of seconds for each entry to stay idle in the map. Entries that are
  120. idle(not touched) for more than <max-idle-seconds> will get
  121. automatically evicted from the map. Entry is touched if get, put or containsKey is called.
  122. Any integer between 0 and Integer.MAX_VALUE. 0 means infinite. Default is 0.
  123. -->
  124. <max-idle-seconds>0</max-idle-seconds>
  125. <!--
  126. Valid values are:
  127. NONE (no eviction),
  128. LRU (Least Recently Used),
  129. LFU (Least Frequently Used).
  130. NONE is the default.
  131. -->
  132. <eviction-policy>NONE</eviction-policy>
  133. <!--
  134. Maximum size of the map. When max size is reached,
  135. map is evicted based on the policy defined.
  136. Any integer between 0 and Integer.MAX_VALUE. 0 means
  137. Integer.MAX_VALUE. Default is 0.
  138. -->
  139. <max-size policy="cluster_wide_map_size">0</max-size>
  140. <!--
  141. When max. size is reached, specified percentage of
  142. the map will be evicted. Any integer between 0 and 100.
  143. If 25 is set for example, 25% of the entries will
  144. get evicted.
  145. -->
  146. <eviction-percentage>25</eviction-percentage>
  147. <!--
  148. While recovering from split-brain (network partitioning),
  149. map entries in the small cluster will merge into the bigger cluster
  150. based on the policy set here. When an entry merge into the
  151. cluster, there might an existing entry with the same key already.
  152. Values of these entries might be different for that same key.
  153. Which value should be set for the key? Conflict is resolved by
  154. the policy set here. Default policy is hz.ADD_NEW_ENTRY
  155. There are built-in merge policies such as
  156. hz.NO_MERGE ; no entry will merge.
  157. hz.ADD_NEW_ENTRY ; entry will be added if the merging entry's key
  158. doesn't exist in the cluster.
  159. hz.HIGHER_HITS ; entry with the higher hits wins.
  160. hz.LATEST_UPDATE ; entry with the latest update wins.
  161. -->
  162. <merge-policy>hz.ADD_NEW_ENTRY</merge-policy>
  163. </map>
  164. <!-- Add your own semaphore configurations here:
  165. <semaphore name="default">
  166. <initial-permits>10</initial-permits>
  167. <semaphore-factory enabled="true">
  168. <class-name>com.acme.MySemaphoreFactory</class-name>
  169. </semaphore-factory>
  170. </semaphore>
  171. -->
  172. <!-- Add your own map merge policy implementations here:
  173. <merge-policies>
  174. <map-merge-policy name="MY_MERGE_POLICY">
  175. <class-name>com.acme.MyOwnMergePolicy</class-name>
  176. </map-merge-policy>
  177. </merge-policies>
  178. -->
  179. </hazelcast>