Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
でクラスターに接続したとします
HFactory.getOrCreateCluster(cluster, address)
まだ接続しているかどうかを後で確認する方法はありますか? 彼らのjavadocを調べても、それを行う明白な方法はないようです。
1 つのオプションとして、try-catch ステートメント内でクラスターに対して単純なクエリを実行し、それが適切に返されるかどうか、または例外がスローされるかどうかを確認することが考えられます。