com.amazonaws.services.elasticbeanstalk.model.ApplicationDescription Java Examples
The following examples show how to use
com.amazonaws.services.elasticbeanstalk.model.ApplicationDescription.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DeployAppToBeanstalkTests.java From aws-ant-tasks with Apache License 2.0 | 6 votes |
@After public void tearDown() throws InterruptedException { bcClient.terminateEnvironment(new TerminateEnvironmentRequest() .withEnvironmentName(TEST_ENVIRONMENTNAME)); AWSTestUtils.waitForEnvironmentToTransitionToStateAndHealth( TEST_ENVIRONMENTNAME, EnvironmentStatus.Terminated, null, bcClient); bcClient.deleteApplication(new DeleteApplicationRequest(TEST_APPNAME)); while (true) { DescribeApplicationsResult appResult = bcClient .describeApplications(); boolean appNameFound = false; for (ApplicationDescription appdesc : appResult.getApplications()) { if (appdesc.getApplicationName().equals(TEST_APPNAME)) { appNameFound = true; break; } } if (!appNameFound) { break; } } }
Example #2
Source File: AWSEBDeploymentBuilder.java From awseb-deployment-plugin with Apache License 2.0 | 4 votes |
public FormValidation doValidateCredentials( @QueryParameter("credentialId") final String credentialId, @QueryParameter final String awsRegion) { for (String value : Arrays.asList(credentialId, awsRegion)) { if (value.contains("$")) { return FormValidation.warning("Validation skipped due to parameter usage ('$')"); } } StringWriter stringWriter = new StringWriter(); PrintWriter w = new PrintWriter(stringWriter, true); try { w.printf("<ul>%n"); w.printf("<li>Building Client (credentialId: '%s', region: '%s')</li>%n", Util.escape(credentialId), Util.escape(awsRegion)); AWSClientFactory factory = AWSClientFactory.getClientFactory(credentialId, awsRegion); AmazonS3Client amazonS3 = factory.getService(AmazonS3Client.class); String s3Endpoint = factory.getEndpointFor(amazonS3); w.printf("<li>Testing Amazon S3 Service (endpoint: %s)</li>%n", Util.escape(s3Endpoint)); w.printf("<li>Buckets Found: %d</li>%n", amazonS3.listBuckets().size()); AWSElasticBeanstalkClient awsElasticBeanstalk = factory.getService(AWSElasticBeanstalkClient.class); String awsEBEndpoint = factory.getEndpointFor(awsElasticBeanstalk); w.printf("<li>Testing AWS Elastic Beanstalk Service (endpoint: %s)</li>%n", Util.escape(awsEBEndpoint)); List<String> applicationList = Lists.transform(awsElasticBeanstalk.describeApplications().getApplications(), new Function<ApplicationDescription, String>() { @Override public String apply(ApplicationDescription input) { return input.getApplicationName(); } }); w.printf("<li>Applications Found: %d (%s)</li>%n", applicationList.size(), Util.escape(StringUtils.join(applicationList, ", "))); w.printf("</ul>%n"); return FormValidation.okWithMarkup(stringWriter.toString()); } catch (Exception exc) { return FormValidation.error(exc, "Failure"); } }
Example #3
Source File: EbsVH.java From pacbot with Apache License 2.0 | 2 votes |
/** * Gets the app. * * @return the app */ public ApplicationDescription getApp() { return app; }
Example #4
Source File: EbsVH.java From pacbot with Apache License 2.0 | 2 votes |
/** * Sets the app. * * @param app the new app */ public void setApp(ApplicationDescription app) { this.app = app; }