Beispiel #1
0
class ClusterMan:

    # Constructor for the Cluster Manager class
    def __init__(self, nodes_file):
        self.nodes = Nodes(nodes_file=nodes_file)
        self.multi_client = MultiClient(self.nodes)

    # Execute a command on all nodes
    def execute_command(self, command):
        return self.multi_client.execute_command(command)
Beispiel #2
0
 def __init__(self, nodes_file):
     self.nodes = Nodes(nodes_file=nodes_file)
     self.multi_client = MultiClient(self.nodes)