class documentation

class _RunWhileDaemonsStoppedHelper(object):

View In Hierarchy

Helper class for RunWhileDaemonsStopped to simplify state management

Method __init__ Initializes this class.
Method Call Call function while all daemons are stopped.
Instance Variable cluster_name Undocumented
Instance Variable debug Undocumented
Instance Variable exclude_daemons Undocumented
Instance Variable feedback_fn Undocumented
Instance Variable master_node Undocumented
Instance Variable nonmaster_nodes Undocumented
Instance Variable online_nodes Undocumented
Instance Variable ssh Undocumented
Instance Variable ssh_ports Undocumented
Instance Variable verbose Undocumented
Method _RunCmd Runs a command on the local or a remote machine.
def __init__(self, feedback_fn, cluster_name, master_node, online_nodes, ssh_ports, exclude_daemons, debug, verbose):

Initializes this class.

Parameters
feedback_fn:callableFeedback function
cluster_name:stringCluster name
master_node:string @param master_node Master node nameUndocumented
online_nodes:listList of names of online nodes
ssh_ports:listList of SSH ports of online nodes
exclude_daemons:list of stringlist of daemons that will be restarted on master after all others are shutdown
debug:booleanshow debug output
verbose:boolesnshow verbose output
def Call(self, fn, *args):

Call function while all daemons are stopped.

Parameters
fn:callableFunction to be called
*argsUndocumented
cluster_name =

Undocumented

debug =

Undocumented

exclude_daemons =

Undocumented

feedback_fn =

Undocumented

master_node =

Undocumented

nonmaster_nodes =

Undocumented

online_nodes =

Undocumented

ssh =

Undocumented

ssh_ports =

Undocumented

verbose =

Undocumented

def _RunCmd(self, node_name, cmd):

Runs a command on the local or a remote machine.

Parameters
node_name:stringMachine name
cmd:listCommand