/**
* Send a heartbeat notification message to all the other sites in the cluster.
*/
public void sendHeartbeat() {
HeartbeatRequest request = HeartbeatRequest.newBuilder()
.setSenderSite(this.local_site_id)
.setLastTransactionId(-1) // FIXME
.build();
for (int site_id = 0; site_id < this.num_sites; site_id++) {
if (site_id == this.local_site_id) continue;
if (this.isShuttingDown()) break;
try {
this.channels[site_id].heartbeat(new ProtoRpcController(), request, this.heartbeatCallback);
if (trace.val)
LOG.trace(String.format("Sent %s to %s",
request.getClass().getSimpleName(),
HStoreThreadManager.formatSiteName(site_id)));
} catch (RuntimeException ex) {
// Silently ignore these errors...
}
} // FOR