def __init__(self, module, cmd): NodeToolCmd.__init__(self, module) self.keyspace = module.params['keyspace'] self.table = module.params['table'] self.granularity = module.params['granularity'] self.jobs = module.params['jobs'] cmd = "{0} --granularity {1} --jobs {2}".format( cmd, self.granularity, self.jobs) if self.keyspace is not None: cmd = "{0} {1}".format(cmd, self.keyspace) if self.table is not None: cmd = "{0} {1}".format(cmd, self.table) self.cmd = cmd
def __init__(self, module, cmd): NodeToolCmd.__init__(self, module) self.keyspace = module.params['keyspace'] self.table = module.params['table'] self.extended = module.params['extended'] if self.extended: cmd = "{0} -e".format(cmd) if self.keyspace is not None: cmd = "{0} {1}".format(cmd, self.keyspace) if self.table is not None: if isinstance(self.table, str): cmd = "{0} {1}".format(cmd, self.table) elif isinstance(self.table, list): cmd = "{0} {1}".format(cmd, " ".join(self.table)) self.cmd = cmd
def __init__(self, module): NodeToolCmd.__init__(self, module) self.status_cmd = "describecluster"
def __init__(self, module): NodeToolCmd.__init__(self, module) self.status_cmd = "status"