oio.cli.zk package
Submodules
oio.cli.zk.client module
-
oio.cli.zk.client.
make_client
(instance)[source]
oio.cli.zk.set module
-
class
oio.cli.zk.set.
ElectionCmdMixin
[source] Bases:
object
Base class for election subcommands
-
get_params
(parsed_args)[source]
-
iterate_groups
(parsed_args, non_leaf=False)[source]
-
log
= <logging.Logger object>
-
patch_parser
(parser)[source]
-
-
class
oio.cli.zk.set.
ElectionReset
(app, app_args, cmd_name=None)[source] Bases:
oio.cli.zk.set.ElectionCmdMixin
,cliff.lister.Lister
Mass-reset elections.
-
get_parser
(prog_name)[source] Return an
argparse.ArgumentParser
.
-
log
= <logging.Logger object>
-
take_action
(parsed_args)[source] Return a tuple containing the column names and an iterable containing the data to be listed.
-
-
class
oio.cli.zk.set.
ElectionSmudge
(app, app_args, cmd_name=None)[source] Bases:
oio.cli.zk.set.ElectionCmdMixin
,cliff.lister.Lister
Putrefies elections with the addition of fake nodes.
-
get_parser
(prog_name)[source] Return an
argparse.ArgumentParser
.
-
log
= <logging.Logger object>
-
take_action
(parsed_args)[source] Return a tuple containing the column names and an iterable containing the data to be listed.
-
-
class
oio.cli.zk.set.
ElectionStat
(app, app_args, cmd_name=None)[source] Bases:
oio.cli.zk.set.ElectionCmdMixin
,cliff.lister.Lister
Dump election nodes.
-
get_parser
(prog_name)[source] Return an
argparse.ArgumentParser
.
-
log
= <logging.Logger object>
-
take_action
(parsed_args)[source] Return a tuple containing the column names and an iterable containing the data to be listed.
-
-
class
oio.cli.zk.set.
HierarchyArmageddon
(app, app_args, cmd_name=None)[source] Bases:
oio.cli.zk.set.ElectionCmdMixin
,oio.cli.Command
Remove the hierarchy tree in the Zookeeper ensembles
-
get_parser
(prog_name)[source] Return an
argparse.ArgumentParser
.
-
log
= <logging.Logger object>
-
take_action
(parsed_args)[source] Override to do something useful.
The returned value will be returned by the program.
-
-
class
oio.cli.zk.set.
HierarchyBootstrap
(app, app_args, cmd_name=None)[source] Bases:
oio.cli.zk.set.ElectionCmdMixin
,oio.cli.Command
Create the election tree in the Zookeeper ensembles.
-
get_parser
(prog_name)[source] Return an
argparse.ArgumentParser
.
-
log
= <logging.Logger object>
-
take_action
(parsed_args)[source] Override to do something useful.
The returned value will be returned by the program.
-