예제 #1
0
def do_ip(args):
    for a, b in Cluster().ip():
        print(a, "=>", b)
예제 #2
0
def do_ls(args):
    Cluster().ls()
예제 #3
0
def do_lsn(args):
    Cluster().lsn()
예제 #4
0
def do_open(args):
    node_number = args.pop_parameter()
    Cluster().open(node_number)
예제 #5
0
def do_stop(args):
    Cluster().stop()
예제 #6
0
def do_start(args):
    Cluster().start()
예제 #7
0
def do_rm(args):
    Cluster().rm()
예제 #8
0
def do_new(args):
    clustername = args.pop_parameter()
    qtt = int(args.pop_parameter())
    outfolder = args.pop_parameter() if args.has_next() else "."

    Cluster().new(clustername, qtt, outfolder)