Naoki Shiota | 4e92851 | 2014-04-03 15:49:35 -0700 | [diff] [blame] | 1 | <hazelcast xsi:schemaLocation="http://www.hazelcast.com/schema/config |
| 2 | http://www.hazelcast.com/schema/config/hazelcast-config-3.0.xsd" |
| 3 | xmlns="http://www.hazelcast.com/schema/config" |
| 4 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
Yuta HIGUCHI | 657b588 | 2014-04-26 12:52:22 -0700 | [diff] [blame] | 5 | <!-- Update xsd line, when upgrading Hazelcast version. --> |
| 6 | |
| 7 | <!-- |
| 8 | Note: When adding some elements to this file, |
| 9 | try to follow the schema defined in the xsd when possible. |
| 10 | --> |
| 11 | |
| 12 | <properties> |
| 13 | <property name="hazelcast.logging.type">slf4j</property> |
| 14 | <property name="hazelcast.version.check.enabled">false</property> |
| 15 | </properties> |
| 16 | |
| 17 | <network> |
| 18 | <port auto-increment="true">__HC_PORT__</port> |
| 19 | <join> |
| 20 | __HC_NETWORK__ |
| 21 | <aws enabled="false"> |
| 22 | </aws> |
| 23 | </join> |
| 24 | </network> |
Naoki Shiota | 4e92851 | 2014-04-03 15:49:35 -0700 | [diff] [blame] | 25 | |
Yuta HIGUCHI | 8447c36 | 2014-05-30 11:32:49 -0700 | [diff] [blame] | 26 | <serialization> |
| 27 | <!-- IdentifiedDataSerializableFactory for HZTable.VersionedValue class --> |
| 28 | <data-serializable-factories> |
| 29 | <data-serializable-factory factory-id="1">net.onrc.onos.core.datastore.hazelcast.VersionedValueSerializableFactory</data-serializable-factory> |
| 30 | </data-serializable-factories> |
| 31 | </serialization> |
| 32 | |
Naoki Shiota | 4e92851 | 2014-04-03 15:49:35 -0700 | [diff] [blame] | 33 | <!-- Configuration of maps used as a data store. --> |
| 34 | <map name="datastore://*"> |
| 35 | <!-- must use 'sync' backup to imitate other data store --> |
| 36 | <backup-count>3</backup-count> |
| 37 | <async-backup-count>0</async-backup-count> |
| 38 | <!-- must be false for strong consistency --> |
| 39 | <read-backup-data>false</read-backup-data> |
| 40 | <!-- near cache must not be used --> |
| 41 | </map> |
| 42 | |
| 43 | <map name="*"> |
| 44 | |
| 45 | <!-- |
| 46 | Number of sync-backups. If 1 is set as the backup-count for example, |
| 47 | then all entries of the map will be copied to another JVM for |
| 48 | ail-safety. Valid numbers are 0 (no backup), 1, 2, 3. |
| 49 | --> |
| 50 | <backup-count>0</backup-count> |
| 51 | |
| 52 | <!-- |
| 53 | Number of async-backups. If 1 is set as the backup-count for example, |
| 54 | then all entries of the map will be copied to another JVM for |
| 55 | fail-safety. Valid numbers are 0 (no backup), 1, 2, 3. |
| 56 | --> |
| 57 | <async-backup-count>3</async-backup-count> |
| 58 | |
| 59 | <!-- |
| 60 | Can we read the local backup entries? Default value is false for |
| 61 | strong consistency. Being able to read backup data will give you |
| 62 | greater performance. |
| 63 | --> |
| 64 | <read-backup-data>true</read-backup-data> |
| 65 | |
| 66 | <near-cache> |
| 67 | <!-- |
| 68 | Maximum size of the near cache. When max size is reached, |
| 69 | cache is evicted based on the policy defined. |
| 70 | Any integer between 0 and Integer.MAX_VALUE. 0 means |
| 71 | Integer.MAX_VALUE. Default is 0. |
| 72 | --> |
| 73 | <max-size>0</max-size> |
| 74 | <!-- |
| 75 | Maximum number of seconds for each entry to stay in the near cache. |
| 76 | Entries that are older than <time-to-live-seconds> will get |
| 77 | automatically evicted from the near cache. |
| 78 | Any integer between 0 and Integer.MAX_VALUE. 0 means infinite. |
| 79 | Default is 0. |
| 80 | --> |
| 81 | <time-to-live-seconds>0</time-to-live-seconds> |
| 82 | |
| 83 | <!-- |
| 84 | Maximum number of seconds each entry can stay in the near cache as |
| 85 | untouched (not-read). |
| 86 | Entries that are not read (touched) more than <max-idle-seconds> |
| 87 | value will get removed from the near cache. |
| 88 | Any integer between 0 and Integer.MAX_VALUE. 0 means |
| 89 | Integer.MAX_VALUE. Default is 0. |
| 90 | --> |
| 91 | <max-idle-seconds>0</max-idle-seconds> |
| 92 | |
| 93 | <!-- |
| 94 | Valid values are: |
| 95 | NONE (no extra eviction, <time-to-live-seconds> may still apply), |
| 96 | LRU (Least Recently Used), |
| 97 | LFU (Least Frequently Used). |
| 98 | LRU is the default. |
| 99 | Regardless of the eviction policy used, <time-to-live-seconds> will |
| 100 | still apply. |
| 101 | --> |
| 102 | <eviction-policy>NONE</eviction-policy> |
| 103 | |
| 104 | <!-- |
| 105 | Should the cached entries get evicted if the entries are changed |
| 106 | (updated or removed). |
| 107 | true of false. Default is true. |
| 108 | --> |
| 109 | <invalidate-on-change>true</invalidate-on-change> |
| 110 | |
| 111 | </near-cache> |
| 112 | </map> |
| 113 | |
| 114 | <topic name="*"> |
| 115 | <global-ordering-enabled>false</global-ordering-enabled> |
| 116 | </topic> |
Naoki Shiota | 4e92851 | 2014-04-03 15:49:35 -0700 | [diff] [blame] | 117 | </hazelcast> |