我们正在将应用程序从较旧的 gridgain 4 代码库迁移到 gridgain 6。在旧应用程序中,我们根据网格属性键 "com.mycompany.workgroup" 对节点进行分区。新版本没有 topologySpi 配置属性或 GridAttributesTopologySpi 。
推荐的方法或替代方法是什么?
提供的任何示例是否满足我的要求?也许我在浏览它们时错过了一些东西。
谢谢
<beans profile="default">
<bean id="workerGrid"
class="org.gridgain.grid.GridSpringBean">
<property name="configuration">
<bean parent="abstractGridConfiguration">
<property name="gridName" value="${grid.name}-worker"/>
<property name="userAttributes">
<map merge="true">
<entry key="com.mycompany.master" value="false"/>
</map>
</property>
<property name="topologySpi">
<bean class="org.gridgain.grid.spi.topology.attributes.GridAttributesTopologySpi">
<property name="attributes">
<map>
<entry key="com.mycompany.workgroup" value="${grid.workgroup}"/>
</map>
</property>
</bean>
</property>
</bean>
</property>
</bean>