class documentation
class _RunWhileDaemonsStoppedHelper(object):
Helper class for RunWhileDaemonsStopped
to simplify state management
Method | __init__ |
Initializes this class. |
Method |
|
Call function while all daemons are stopped. |
Instance Variable | cluster |
Undocumented |
Instance Variable | debug |
Undocumented |
Instance Variable | exclude |
Undocumented |
Instance Variable | feedback |
Undocumented |
Instance Variable | master |
Undocumented |
Instance Variable | nonmaster |
Undocumented |
Instance Variable | online |
Undocumented |
Instance Variable | ssh |
Undocumented |
Instance Variable | ssh |
Undocumented |
Instance Variable | verbose |
Undocumented |
Method | _ |
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 | Feedback function |
cluster | Cluster name |
master | Undocumented |
online | List of names of online nodes |
ssh | List of SSH ports of online nodes |
exclude | list of daemons that will be restarted on master after all others are shutdown |
debug:boolean | show debug output |
verbose:boolesn | show verbose output |
Call function while all daemons are stopped.
Parameters | |
fn:callable | Function to be called |
*args | Undocumented |