Quantcast
Channel: How can I check if a hazelcast cluster is alive from a java client? - Stack Overflow
Browsing all 5 articles
Browse latest View live

Answer by crusy for How can I check if a hazelcast cluster is alive from a...

As isRunning()may be true even if cluster is down, I'd go for the following approach (a mixture of @konstantin-zyubin's answer and this). This doesn't need an event-listener, which is an advantage in...

View Article



Answer by Konstantin Ziubin for How can I check if a hazelcast cluster is...

I have found a more reliable way to check hazelcast availability, because client.getLifecycleService().isRunning()when you use async reconnection mode is always return true, as was...

View Article

Answer by magiccrafter for How can I check if a hazelcast cluster is alive...

You can use the LifecycleService.isRunning() method as well:HazelcastInstance hzInstance = HazelcastClient.newHazelcastClient();hzInstance.getLifecycleService().isRunning()

View Article

Answer by pveentjer for How can I check if a hazelcast cluster is alive from...

The simplest way would be the register a LifecycleListener to the client HazelcastInstance: HazelcastInstance client = HazelcastClient.newHazelcastClient();...

View Article

How can I check if a hazelcast cluster is alive from a java client?

We use hazelcast in client-server mode. The hazelcast cluster contains 2 hazelcast nodes and we have about 25 clients connected to the cluster. What I am lookin for now is a simple check that tries to...

View Article

Browsing all 5 articles
Browse latest View live




Latest Images