Add a simplified setting to disable shutdown API: action.disable_shutdown, closes #1606.
This commit is contained in:
parent
04a138db5d
commit
97b5c100ce
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue