2
votes

Supposing I've connected to a cluster with

HFactory.getOrCreateCluster(cluster, address)

Is there a way to check later on whether or not I'm still connected? There doesn't seem to be an obvious way of doing that from looking through their javadocs.

1

1 Answers

1
votes

One option might be to just fire a simple query to the cluster within a try-catch statement and see whether it returns properly, or it throws an exception.