本文整理汇总了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){
}
}
}
示例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()
);
}
示例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());
}