@Override
public void run(ShutdownResponse parameter) {
// Nothing to do...
}
};
ShutdownRequest request = ShutdownRequest.newBuilder()
.setSenderSite(this.catalog_site.getId())
.setExitStatus(exit_status)
.build();
if (debug.val)
LOG.debug(String.format("Sending %s to %d remote sites",
request.getClass().getSimpleName(), this.num_sites));
for (int site_id = 0; site_id < this.num_sites; site_id++) {
if (site_id == this.local_site_id) continue;
this.channels[site_id].shutdown(new ProtoRpcController(), request, callback);
if (debug.val)
LOG.debug(String.format("Sent %s to %s",
request.getClass().getSimpleName(),
HStoreThreadManager.formatSiteName(site_id)));
} // FOR
ThreadUtil.sleep(2000);
}