简体   繁体   English

Gemfire 区域同步

[英]Gemfire region synchronization

I am using gemfire and currently have a client and a server.我正在使用 gemfire,目前有一个客户端和一个服务器。 Now, the server dinamically creates some subregions in a region and puts some objects in there.现在,服务器动态地在一个区域中创建一些子区域并将一些对象放在那里。 I am trying to retrieve the objects with the client but I can't see the objects or the subregions.我正在尝试使用客户端检索对象,但看不到对象或子区域。 How can I synchronize the regions?如何同步区域? Is there anything else I can do?还有什么我可以做的吗?

FYI, you need to use the DynamicRegionFactory for creating distributed dynamic regions.仅供参考,您需要使用 DynamicRegionFactory 来创建分布式动态区域。 The gemfire docs were pretty clear on that one. gemfire 文档对此非常清楚。

Dynamic regions behave the same as the other regions in your cache and assumes the attributes of its parent region.动态区域的行为与缓存中的其他区域相同,并采用其父区域的属性。 You must begin with non-dynamic parent regions.您必须从非动态父区域开始。 Check if this region is working correctly.检查此区域是否正常工作。 Synchronization should work this is most probably the problem with configurations.同步应该可以工作这很可能是配置的问题。 Use GF monitor to check your regions in distributed system.使用 GF 监视器检查您在分布式系统中的区域。

Another solution is create remote function wich will create regions.另一种解决方案是创建远程 function 将创建区域。 In this case you can create portion regions and root regions.在这种情况下,您可以创建部分区域和根区域。 This solution is used in GemFire modules for Hibernate L2 cache.该解决方案用于 Hibernate L2 缓存的 GemFire 模块。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM