Example #1
0
def do():
    if len(sys.argv)==1:
        help()
        return
    param = sys.argv[1]
    if "installAll" == param:
        commCheck.do()
        commBuild.do()
    elif "stopAll" == param:
        commBuild.end()
    elif "startNode" == param:
        commBuild.startNode()
    elif "stopNode" == param:
        commBuild.stopNode()
    elif "startWeb" == param:
        commBuild.startWeb()
    elif "stopWeb" == param:
        commBuild.stopWeb()
    elif "startManager" == param:
        commBuild.startManager()
    elif "stopManager" == param:
        commBuild.stopManager()
    elif "startFront" == param:
        commBuild.startFront()
    elif "stopFront" == param:
        commBuild.stopFront()
    elif "check"== param:
        commCheck.do()
    elif "help"== param:
        help()
    else:
        paramError()
    return
Example #2
0
def do():
    if len(sys.argv)==1:
        help()
        return
    param = sys.argv[1]
    if "installAll" == param:
        gl.set_install_all()
        commCheck.do()
        commBuild.do()
    elif "startAll" == param:
        commCheck.checkPort()
        commBuild.start()
    elif "stopAll" == param:
        commBuild.end()
    elif "installWeBASE" == param:
        gl.set_visual_deploy()
        commCheck.visual_do()
        commBuild.visual_do()
    elif "startWeBASE" == param:
        commCheck.visualCheckPort()
        commBuild.visualStart()
    elif "stopWeBASE" == param:
        commBuild.visualEnd()
    elif "startNode" == param:
        commBuild.startNode()
    elif "stopNode" == param:
        commBuild.stopNode()
    elif "startWeb" == param:
        commBuild.startWeb()
    elif "stopWeb" == param:
        commBuild.stopWeb()
    elif "startManager" == param:
        commBuild.startManager()
    elif "stopManager" == param:
        commBuild.stopManager()
    elif "startFront" == param:
        commBuild.startFront()
    elif "stopFront" == param:
        commBuild.stopFront()
    elif "startSign" == param:
        commBuild.startSign()
    elif "stopSign" == param:
        commBuild.stopSign()
    elif "check"== param:
        commCheck.do()
    elif "help"== param:
        help()
    else:
        paramError()
    return
Example #3
0
def do():
    if len(sys.argv) == 1:
        help()
        return
    param = sys.argv[1]
    if "startAll" == param:
        commCheck.do()
        commBuild.do()
    elif "stopAll" == param:
        commBuild.end()
    elif "startNode" == param:
        commCheck.checkNodePort()
        commBuild.startNode()
    elif "stopNode" == param:
        commBuild.stopNode()
    elif "startWeb" == param:
        commCheck.checkWebPort()
        commBuild.startWeb()
    elif "stopWeb" == param:
        commBuild.stopWeb()
    elif "startMgr" == param:
        commCheck.checkMgrPort()
        commBuild.startMgr()
    elif "stopMgr" == param:
        commBuild.stopMgr()
    elif "startFront" == param:
        commCheck.checkFrontPort()
        commBuild.startFront()
    elif "stopFront" == param:
        commBuild.stopFront()
    elif "check" == param:
        commCheck.do()
    elif "help" == param:
        help()
    else:
        paramError()
    return