Apache Ignite:Global Lock

时间:2017-02-14 13:01:44

标签: ignite

ignite是否提供任何方法来检查一个指定的键是否被全局锁定(在另一个VM中)?

1 个答案:

答案 0 :(得分:1)

目前,没有开箱即用的方法来进行此类检查,但您可以向主节点发送给定密钥的闭包,并检查它是否已锁定。 本地检查可以通过<script type="text/javascript"> $(document).ready(function() { $('#map_container').click(function() { $(this).find("iframe").css('pointer-events', 'auto'); }); }); </script> <div id="map_container" title="Click on the map to interact"> <iframe style="pointer-events: none;" src="https://www.google.com/maps/embed/v1/place?key=YOURKEY&q=YOURADDRESS" allowfullscreen> </iframe> </div> 方法完成。 关于如何将闭包发送到主节点,请参阅:https://apacheignite.readme.io/docs/affinity-collocation#collocating-compute-with-data