# Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package Yahoo::Vespa::Bin::SetNodeState; use strict; use warnings; use Yahoo::Vespa::ClusterController; use Yahoo::Vespa::ConsoleOutput; use Yahoo::Vespa::ContentNodeSelection; use Yahoo::Vespa::ArgParser; use Yahoo::Vespa::Utils; BEGIN { use base 'Exporter'; our @EXPORT = qw( setNodeState ); } our $wanted_state; our $wanted_state_description; our $nodes_attempted_set; our $success; return 1; # Run the set node state tool sub setNodeState { # (Command line arguments) my ($argsref) = @_; &handleCommandLine($argsref); detectClusterController(); &showSettings(); &execute(); } # Parse command line arguments sub handleCommandLine { # (Command line arguments) my ($args) = @_; my $description = <