spring.cache-system-context.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bagri-server-hazelcast Show documentation
Show all versions of bagri-server-hazelcast Show documentation
Bagri DB Cache: Hazelcast implementation
The newest version!
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:hz="http://www.hazelcast.com/schema/spring" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.hazelcast.com/schema/spring http://www.hazelcast.com/schema/spring/hazelcast-spring.xsd"> <!-- Beans Declaration --> <context:property-placeholder location="file:${bdb.config.path}/${bdb.config.properties.file}" /> <context:annotation-config /> <hz:hazelcast id="hzInstance"> <hz:config> <hz:spring-aware/> <hz:instance-name>hzInstance-${bdb.node.instance}</hz:instance-name> <hz:group name="system" password="syspwd"/> <hz:properties> <hz:property name="hazelcast.jmx">true</hz:property> <hz:property name="hazelcast.jmx.detailed">true</hz:property> <hz:property name="hazelcast.logging.type">slf4j</hz:property> <hz:property name="hazelcast.rest.enabled">false</hz:property> <hz:property name="hazelcast.memcache.enabled">false</hz:property> <hz:property name="hazelcast.operation.thread.count">${bdb.cluster.thread.pool:8}</hz:property> <hz:property name="hazelcast.operation.generic.thread.count">${bdb.cluster.thread.pool:8}</hz:property> </hz:properties> <hz:network port="${bdb.cluster.port:3331}" port-auto-increment="true"> <hz:outbound-ports> <hz:ports>3330-3430</hz:ports> </hz:outbound-ports> <hz:join> <hz:multicast enabled="${bdb.cluster.multicast.enabled:false}" multicast-timeout-seconds="${bdb.cluster.connect.timeout:10}"> <!--hz:trusted-interfaces> <hz:interface>${bdb.cluster.members}</hz:interface> </hz:trusted-interfaces--> </hz:multicast> <hz:tcp-ip enabled="${bdb.cluster.tcp.enabled:true}" connection-timeout-seconds="${bdb.cluster.connect.timeout:10}"> <hz:members>${bdb.cluster.members:localhost}</hz:members> </hz:tcp-ip> <hz:aws enabled="${bdb.cluster.aws.enabled:false}" connection-timeout-seconds="${bdb.cluster.connect.timeout:10}"/> </hz:join> </hz:network> <hz:executor-service name="sys-exec-pool" pool-size="${bdb.cluster.thread.pool:8}" /> <hz:executor-service name="hz:async" pool-size="${bdb.cluster.thread.pool:8}" /> <hz:executor-service name="hz:client" pool-size="${bdb.cluster.thread.pool:8}" /> <hz:executor-service name="hz:query" pool-size="${bdb.cluster.thread.pool:8}" /> <hz:serialization> <hz:data-serializable-factories> <hz:data-serializable-factory factory-id="2000" class-name="com.bagri.server.hazelcast.serialize.SystemSerializationFactory"/> <hz:data-serializable-factory factory-id="3000" class-name="com.bagri.server.hazelcast.serialize.TaskSerializationFactory"/> </hz:data-serializable-factories> <!--hz:portable-factories> <hz:portable-factory factory-id="1" class-name="com.bagri.client.hazelcast.serialize.PortableFactoryImpl"/> </hz:portable-factories--> <hz:serializers> <hz:serializer type-class="com.bagri.core.system.DataType" class-name="com.bagri.client.hazelcast.serialize.system.DataTypeSerializer"/> <hz:serializer type-class="com.bagri.core.system.Module" class-name="com.bagri.client.hazelcast.serialize.system.ModuleSerializer"/> <hz:serializer type-class="com.bagri.core.system.Library" class-name="com.bagri.client.hazelcast.serialize.system.LibrarySerializer"/> <hz:serializer type-class="com.bagri.core.system.Function" class-name="com.bagri.client.hazelcast.serialize.system.FunctionSerializer"/> <hz:serializer type-class="com.bagri.core.system.Parameter" class-name="com.bagri.client.hazelcast.serialize.system.ParameterSerializer"/> <hz:serializer type-class="com.bagri.core.system.Node" class-name="com.bagri.client.hazelcast.serialize.system.NodeSerializer"/> <hz:serializer type-class="com.bagri.core.system.Schema" class-name="com.bagri.client.hazelcast.serialize.system.SchemaSerializer"/> <hz:serializer type-class="com.bagri.core.system.Collection" class-name="com.bagri.client.hazelcast.serialize.system.CollectionSerializer"/> <hz:serializer type-class="com.bagri.core.system.Fragment" class-name="com.bagri.client.hazelcast.serialize.system.FragmentSerializer"/> <hz:serializer type-class="com.bagri.core.system.Resource" class-name="com.bagri.client.hazelcast.serialize.system.ResourceSerializer"/> <hz:serializer type-class="com.bagri.core.system.Index" class-name="com.bagri.client.hazelcast.serialize.system.IndexSerializer"/> <hz:serializer type-class="com.bagri.core.system.Role" class-name="com.bagri.client.hazelcast.serialize.system.RoleSerializer"/> <hz:serializer type-class="com.bagri.core.system.User" class-name="com.bagri.client.hazelcast.serialize.system.UserSerializer"/> <hz:serializer type-class="com.bagri.core.system.Permission" class-name="com.bagri.client.hazelcast.serialize.system.PermissionSerializer"/> <hz:serializer type-class="com.bagri.core.system.TriggerAction" class-name="com.bagri.client.hazelcast.serialize.system.TriggerActionSerializer"/> <hz:serializer type-class="com.bagri.core.system.JavaTrigger" class-name="com.bagri.client.hazelcast.serialize.system.JavaTriggerSerializer"/> <hz:serializer type-class="com.bagri.core.system.XQueryTrigger" class-name="com.bagri.client.hazelcast.serialize.system.XQueryTriggerSerializer"/> <hz:serializer type-class="com.bagri.core.system.DataFormat" class-name="com.bagri.client.hazelcast.serialize.system.DataFormatSerializer"/> <hz:serializer type-class="com.bagri.core.system.DataStore" class-name="com.bagri.client.hazelcast.serialize.system.DataStoreSerializer"/> </hz:serializers> </hz:serialization> <hz:member-attributes> <hz:attribute name="bdb.cluster.node.name">${bdb.cluster.node.name:first}</hz:attribute> <hz:attribute name="bdb.cluster.node.role">server</hz:attribute> <hz:attribute name="bdb.cluster.node.schemas">${bdb.cluster.node.schemas}</hz:attribute> <hz:attribute name="bdb.node.instance">${bdb.node.instance}</hz:attribute> </hz:member-attributes> <hz:lite-member enabled="true"/> </hz:config> </hz:hazelcast> <hz:executorService id="sys-exec-pool" name="sys-exec-pool" instance-ref="hzInstance"/> <bean id="configService" class="com.bagri.server.hazelcast.config.SystemConfig"> <constructor-arg value="${bdb.config.filename}" /> </bean> <!--bean id="accessService" class="com.bagri.server.hazelcast.config.AccessConfig"> <constructor-arg value="${bdb.access.filename}" /> </bean--> <bean id="accBridge" class="com.bagri.server.hazelcast.impl.AccessManagementBridge"> <property name="hazelcastInstance" ref="hzInstance"/> </bean> </beans>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy