Giriş
xml veya yaml kullanılabilir
Spring Integration
Genellikle her şey hz isim alanına alınıyor. Şöyle yaparız
<hz:config>
...
<hz:map name="myMap" backup-count="1" max-size="0">
<hz:map-store enabled="true" implementation="myMapLoader" />
</hz:map>
...
</hz:config>properties
Logging yazısına bakabilirsiniz
Örnek
Şöyle yaparız
<hazelcast
xsi:schemaLocation="http://www.hazelcast.com/schema/config hazelcast-config-3.8.xsd"
xmlns="http://www.hazelcast.com/schema/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<properties>
<property name="hazelcast.jmx">true</property>
</properties>
...
</hazelcastmanagement-center
management-center Ayarları yazısına taşıdım
metrics
Metrics Ayarları yazısına taşıdım
network
Örnek
Şöyle yaparız
<network> <port auto-increment="true" port-count="20">5701</port> ... </network>
Örnek
Şöyle yaparız
<network>
<port auto-increment="true" port-count="100">5701</port>
<outbound-ports>
<!-- 0 means use ephemeral ports -->
<ports>0</ports>
</outbound-ports>
<join>
<multicast enabled="false">
<multicast-group>224.2.2.3</multicast-group>
<multicast-port>54327</multicast-port>
</multicast>
<tcp-ip enabled="true">
<!-- interface>127.0.0.1</interface -->
<member-list>
<member>127.0.0.1</member>
</member-list>
</tcp-ip>
<discovery-strategies>
</discovery-strategies>
</join>
<interfaces enabled="false">
<interface>10.10.1.*</interface>
</interfaces>
<socket-interceptor enabled="false" />
</network>network Join
Network Join Ayarları yazısına taşıdım
map
Map Ayarları yazısına taşıdım
network/rest-api
Hazelcast REST API yazısına taşıdımexecutor-service
IExecutorService Ayarları yazısına taşıdım
scheduled-executor-service
IScheduledExecutorService Ayarları yazısına taşıdım
serialization
Örnek
Şöyle yaparız
<serialization> <portable-version>1</portable-version> <use-native-byte-order>false</use-native-byte-order> <byte-order>BIG_ENDIAN</byte-order> <enable-compression>false</enable-compression> <enable-shared-object>false</enable-shared-object> <allow-unsafe>false</allow-unsafe> </serialization>
Örnek
Bize ait bir data type için serializer yazdıysak kulanmak için şöyle yaparız
hazelcast:
serialization:
serializers:
serializer:
"type-class": "com.hazelcast.jet.examples.Person"
"class-name": "com.hazelcast.jet.examples.PersonSerializer"
Hiç yorum yok:
Yorum Gönder