PageRenderTime 31ms CodeModel.GetById 16ms app.highlight 5ms RepoModel.GetById 2ms app.codeStats 0ms

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