コード例 #1
0
def deployPegaGateway(servername, username, password,
                      applicationDeploymentSourceFolder):
    print 'Deploying Gateway/IAC for server: ' + servername + '...'

    cli = None

    connected = False

    try:
        cli = connectSilent(servername, username, password)
        connected = True

        if cli.getCommandContext().isDomainMode():
            cli.cmd("cd /host=master/core-service=platform-mbean/type=runtime")
        else:
            cli.cmd("cd /core-service=platform-mbean/type=runtime")

        deploymentArtefact = 'prgateway.war'
        deployToServer(servername, username, password,
                       applicationDeploymentSourceFolder, deploymentArtefact)

    except:
        print 'Deploying to server: ' + servername + ' FAILED: '

    finally:
        if (connected): cli.disconnect()

    print 'Deploying Gateway/IAC for server: ' + servername + '...end.'
コード例 #2
0
def deployPegaVBD(servername, username, password,
                  applicationDeploymentSourceFolder):
    print 'Deploying VBD for server: ' + servername + '...'

    try:
        deploymentArtefact = 'vbd.ear'
        deployToServer(servername, username, password,
                       applicationDeploymentSourceFolder, deploymentArtefact)
    except:
        print 'Deploying to server: ' + servername + ' FAILED: '
    finally:
        None

    print 'Deploying VBD for server: ' + servername + '...end.'
コード例 #3
0
def deployPegaPRSYSManage(servername, username, password,
                          applicationDeploymentSourceFolder):
    print 'Deploying PRSYSManage for server: ' + servername + '...'

    try:
        deploymentArtefact = 'prsysmgmt_jboss.ear'
        deployToServer(servername, username, password,
                       applicationDeploymentSourceFolder, deploymentArtefact)
    except:
        print 'Deploying to server: ' + servername + ' FAILED: '

    finally:
        None

    print 'Deploying PRSYSManage for server: ' + servername + '...end.'
コード例 #4
0
def deployPegaPRPC(servername, username, password,
                   applicationDeploymentSourceFolder):
    print 'Deploying PRPC for server: ' + servername + '...'

    try:
        deploymentArtefact = 'prpc_j2ee14_jboss61JBM.ear'
        deployToServer(servername, username, password,
                       applicationDeploymentSourceFolder, deploymentArtefact)
    except:
        print 'Deploying to server: ' + servername + ' FAILED: '

    finally:
        None

    print 'Deploying PRPC for server: ' + servername + '...end.'
コード例 #5
0
def deployPegaMarketingHelp(servername, username, password,
                            applicationDeploymentSourceFolder):
    print 'Deploying MarketingHelp for server: ' + servername + '...'

    cli = None

    try:
        cli = connectSilent(servername, 9999, username, password)
        deploymentArtefact = 'MarketingHelp.war'
        deployToServer(servername, username, password,
                       applicationDeploymentSourceFolder, deploymentArtefact)

    except:
        print 'Install to server: ' + servername + ' FAILED: '

    finally:
        cli.disconnect()

    print 'Deploying MarketingHelp for server: ' + servername + '...end.'