// -------------------------------
// SHUTDOWN
// TODO: Execute as a regular sysproc transaction
// -------------------------------
if (catalog_proc.getName().equalsIgnoreCase("@Shutdown")) {
ClientResponseImpl cresponse = new ClientResponseImpl(
-1,
client_handle,
-1,
Status.OK,
HStoreConstants.EMPTY_RESULT,
"");
this.responseSend(cresponse, clientCallback, EstTime.currentTimeMillis(), 0);
// Non-blocking....
Exception error = new Exception("Shutdown command received at " + this.getSiteName());
this.hstore_coordinator.shutdownCluster(error);
return (true);
}
// -------------------------------
// QUIESCE
// -------------------------------
// else if (catalog_proc.getName().equals("@Quiesce")) {
// // Tell the queue manager ahead of time to wipe out everything!
// this.txnQueueManager.clearQueues();
// return (false);
// }
// -------------------------------
// EXECUTOR STATUS
// -------------------------------
else if (catalog_proc.getName().equalsIgnoreCase("@ExecutorStatus")) {
if (this.status_monitor != null) {
this.status_monitor.printStatus();
RingBufferAppender appender = RingBufferAppender.getRingBufferAppender(LOG);
if (appender != null) appender.dump(System.err);
}
ClientResponseImpl cresponse = new ClientResponseImpl(
-1,
client_handle,
-1,
Status.OK,
HStoreConstants.EMPTY_RESULT,