Add a simplified setting to disable shutdown API: action.disable_shutdown, closes #1606.

This commit is contained in:
Shay Banon 2012-01-12 14:31:37 +02:00
parent 04a138db5d
commit 97b5c100ce
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ public class TransportNodesShutdownAction extends TransportMasterNodeOperationAc
super(settings, transportService, clusterService, threadPool);
this.node = node;
this.clusterName = clusterName;
this.disabled = componentSettings.getAsBoolean("disabled", false);
this.disabled = settings.getAsBoolean("action.disable_shutdown", componentSettings.getAsBoolean("disabled", false));
this.delay = componentSettings.getAsTime("delay", TimeValue.timeValueMillis(200));
this.transportService.registerHandler(NodeShutdownRequestHandler.ACTION, new NodeShutdownRequestHandler());