def cassandra(info, name, config_schema):
    if info:
        print("Deploy and manage Cassandra clusters")
    if name:
        cu.set_fwk_name(name)
    if config_schema:
        print_schema()
Beispiel #2
0
def cassandra(info, name, config_schema):
    if info:
        print("Deploy and manage Cassandra clusters")
    if name:
        cu.set_fwk_name(name)
    if config_schema:
        print_schema()
def connection(name, address, dns):
    """Provides connection information"""
    if name:
        cu.set_fwk_name(name)

    if (address and dns) or (not address and not dns):
        response = nodes_api.connection()
    elif address:
        response = nodes_api.connection_address()
    else:
        response = nodes_api.connection_dns()
    cu.print_json(response)
Beispiel #4
0
def connection(name, address, dns):
    """Provides connection information"""
    if name:
        cu.set_fwk_name(name)

    if (address and dns) or (not address and not dns):
        response = nodes_api.connection()
    elif address:
        response = nodes_api.connection_address()
    else:
        response = nodes_api.connection_dns()
    cu.print_json(response)
def repair(name):
    """Perform primary range repair."""
    if name:
        cu.set_fwk_name(name)
def cleanup(name):
    """Cleanup old token mappings"""
    if name:
        cu.set_fwk_name(name)
def restore(name):
    """Restore Cassandra cluster from backup"""
    if name:
        cu.set_fwk_name(name)
def backup(name):
    """Backup Cassandra data"""
    if name:
        cu.set_fwk_name(name)
def seeds(name):
    """Retrieve seed node information"""
    if name:
        cu.set_fwk_name(name)
    cu.print_json(seeds_api.seeds())
def node(name):
    """Manage Cassandra nodes"""
    if name:
        cu.set_fwk_name(name)
Beispiel #11
0
def repair(name):
    """Perform primary range repair."""
    if name:
        cu.set_fwk_name(name)
Beispiel #12
0
def cleanup(name):
    """Cleanup old token mappings"""
    if name:
        cu.set_fwk_name(name)
Beispiel #13
0
def restore(name):
    """Restore Cassandra cluster from backup"""
    if name:
        cu.set_fwk_name(name)
Beispiel #14
0
def backup(name):
    """Backup Cassandra data"""
    if name:
        cu.set_fwk_name(name)
Beispiel #15
0
def seeds(name):
    """Retrieve seed node information"""
    if name:
        cu.set_fwk_name(name)
    cu.print_json(seeds_api.seeds())
Beispiel #16
0
def node(name):
    """Manage Cassandra nodes"""
    if name:
        cu.set_fwk_name(name)