当前位置: 首页>>代码示例>>Java>>正文


Java UpdateEnvironmentResult类代码示例

本文整理汇总了Java中com.amazonaws.services.elasticbeanstalk.model.UpdateEnvironmentResult的典型用法代码示例。如果您正苦于以下问题:Java UpdateEnvironmentResult类的具体用法?Java UpdateEnvironmentResult怎么用?Java UpdateEnvironmentResult使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


UpdateEnvironmentResult类属于com.amazonaws.services.elasticbeanstalk.model包,在下文中一共展示了UpdateEnvironmentResult类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: uploadWar

import com.amazonaws.services.elasticbeanstalk.model.UpdateEnvironmentResult; //导入依赖的package包/类
public void uploadWar(String warFile, String versionLabel, String applicationName, String envName, int timeout) {

        prepareWar(new File(warFile), versionLabel, applicationName);
        journal.log(Level.INFO, ">> Uploading War file!");
        while(timeout-- > 0){
            System.out.print("-");
            try {
                Thread.sleep(1000);
            } catch (InterruptedException ex) {
                Logger.getLogger(BeanstalkConnector.class.getName()).log(Level.SEVERE, null, ex);
            }
            try{

                UpdateEnvironmentResult updateEnvironment
                        = beanstalkClient.updateEnvironment(new UpdateEnvironmentRequest()
                        .withEnvironmentName(envName)
                        .withVersionLabel(versionLabel));
                journal.log(Level.INFO, ">> War uploaded!");
                break;
            }
            catch(com.amazonaws.AmazonServiceException e){

            }

        }

    }
 
开发者ID:SINTEF-9012,项目名称:cloudml,代码行数:28,代码来源:BeanstalkConnector.java

示例2: update

import com.amazonaws.services.elasticbeanstalk.model.UpdateEnvironmentResult; //导入依赖的package包/类
/**
 * Update this environment with a new version.
 * @param version The version to update to
 */
public void update(final Version version) {
    final UpdateEnvironmentResult res = this.client.updateEnvironment(
        new UpdateEnvironmentRequest()
            .withEnvironmentId(this.eid)
            .withVersionLabel(version.label())
    );
    Logger.info(
        this,
        "Environment '%s' updated to '%s'",
        res.getEnvironmentId(), res.getVersionLabel()
    );
}
 
开发者ID:jcabi,项目名称:jcabi-beanstalk-maven-plugin,代码行数:17,代码来源:Environment.java

示例3: dump

import com.amazonaws.services.elasticbeanstalk.model.UpdateEnvironmentResult; //导入依赖的package包/类
public static void dump(UpdateEnvironmentResult uer, Log log) {
    log.info("  ApplicationName : " + uer.getApplicationName());
    log.info("  EnvironmentId   : " + uer.getEnvironmentId());
    log.info("  EnvironmentName : " + uer.getEnvironmentName());
    log.info("  VersionLabel    : " + uer.getVersionLabel());
    log.info("  Status          : " + uer.getStatus());
    log.info("  Health          : " + uer.getHealth());
}
 
开发者ID:pglass,项目名称:awspush-maven-plugin,代码行数:9,代码来源:Util.java


注:本文中的com.amazonaws.services.elasticbeanstalk.model.UpdateEnvironmentResult类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。