public class StorageClusterHeartBeatJob extends Object
checkClusterHeartBeat() for more details.| Constructor and Description |
|---|
StorageClusterHeartBeatJob() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkClusterHeartBeat()
Runs periodically to verify that the server can connect to the storage cluster.
|
void |
scheduleJob() |
public void scheduleJob()
public void checkClusterHeartBeat()
Runs periodically to verify that the server can connect to the storage cluster. If the server cannot connect to any nodes in the cluster, the server will be put into maintenance mode until a connection can be made to the cluster.
While client requests are made using CQL commands going over the native transport layer introduced in Cassandra 1.2, connectivity is checked via JMX. The JMX call is made to determine whether or not the native transport is running. Trying to do the check using the CQL driver gets complicated and introduces some non-trivial overhead due to the fact that the driver is async.
Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.