Package org.jclouds.ec2.domain

Examples of org.jclouds.ec2.domain.RunningInstance


      protected Builder(){
         id("greenqloud-compute")
         .name("Greenqloud Compute Cloud")
               .apiMetadata(
                     new EC2ApiMetadata().toBuilder()
                            .defaultModules(ImmutableSet.<Class<? extends Module>>of(EC2RestClientModule.class, EC2ResolveImagesModule.class, GreenQloudComputeComputeServiceContextModule.class))
                            .build())
         .homepage(URI.create("http://www.greenqloud.com"))
         .console(URI.create("https://manage.greenqloud.com"))
         .linkedServices("greenqloud-compute", "greenqloud-storage")
View Full Code Here


                m1_xlarge().build(),
                m2_2xlarge().build());
    }

    public EC2HardwareBuilder t1_nano() {
        return new EC2HardwareBuilder("t1.nano")
                .ram(256)
                .processors(ImmutableList.of(new Processor(1, 1)))
                .volumes(ImmutableList.<Volume>of(new VolumeImpl(10.0f, true, true)));
    }
View Full Code Here

                .processors(ImmutableList.of(new Processor(1, 1)))
                .volumes(ImmutableList.<Volume>of(new VolumeImpl(10.0f, true, true)));
    }

    public EC2HardwareBuilder t1_micro() {
        return new EC2HardwareBuilder("t1.micro")
                .ram(512)
                .processors(ImmutableList.of(new Processor(1, 1)))
                .volumes(ImmutableList.<Volume>of(new VolumeImpl(20.0f, true, true)));
    }
View Full Code Here

                .processors(ImmutableList.of(new Processor(1, 1)))
                .volumes(ImmutableList.<Volume>of(new VolumeImpl(20.0f, true, true)));
    }

    public EC2HardwareBuilder t1_milli() {
        return new EC2HardwareBuilder("t1.milli")
                .ram(1024)
                .processors(ImmutableList.of(new Processor(1, 1)))
                .volumes(ImmutableList.<Volume>of(new VolumeImpl(40.0f, true, true)));
    }
View Full Code Here

                .processors(ImmutableList.of(new Processor(1, 1)))
                .volumes(ImmutableList.<Volume>of(new VolumeImpl(40.0f, true, true)));
    }

    public EC2HardwareBuilder m1_small() {
        return new EC2HardwareBuilder("m1.small")
                .ram(2048)
                .processors(ImmutableList.of(new Processor(2, 1)))
                .volumes(ImmutableList.<Volume>of(new VolumeImpl(80.0f, true, true)));
    }
View Full Code Here

                .processors(ImmutableList.of(new Processor(2, 1)))
                .volumes(ImmutableList.<Volume>of(new VolumeImpl(80.0f, true, true)));
    }

    public EC2HardwareBuilder m1_medium() {
        return new EC2HardwareBuilder("m1.medium")
                .ram(4096)
                .processors(ImmutableList.of(new Processor(4, 1)))
                .volumes(ImmutableList.<Volume>of(new VolumeImpl(160.0f, true, true)));
    }
View Full Code Here

                .processors(ImmutableList.of(new Processor(4, 1)))
                .volumes(ImmutableList.<Volume>of(new VolumeImpl(160.0f, true, true)));
    }

    public EC2HardwareBuilder m1_large() {
        return new EC2HardwareBuilder("m1.large")
                .ram(8192)
                .processors(ImmutableList.of(new Processor(8, 1)))
                .volumes(ImmutableList.<Volume>of(new VolumeImpl(320.0f, true, true)));
    }
View Full Code Here

                .processors(ImmutableList.of(new Processor(8, 1)))
                .volumes(ImmutableList.<Volume>of(new VolumeImpl(320.0f, true, true)));
    }

    public EC2HardwareBuilder m1_xlarge() {
        return new EC2HardwareBuilder("m1.xlarge")
                .ram(15872)
                .processors(ImmutableList.of(new Processor(16, 1)))
                .volumes(ImmutableList.<Volume>of(new VolumeImpl(640.0f, true, true)));
    }
View Full Code Here

                .processors(ImmutableList.of(new Processor(16, 1)))
                .volumes(ImmutableList.<Volume>of(new VolumeImpl(640.0f, true, true)));
    }

    public EC2HardwareBuilder m2_2xlarge() {
        return new EC2HardwareBuilder("m2.2xlarge")
                .ram(30720)
                .processors(ImmutableList.of(new Processor(16, 1)))
                .volumes(ImmutableList.<Volume>of(new VolumeImpl(640.0f, true, true)));
    }
View Full Code Here

      }.provideOsVersionMap(new ComputeServiceConstants.ReferenceData(), Guice.createInjector(new GsonModule())
               .getInstance(Json.class));

      // note this method is what mandates the location id as us-east-1
      Set<Image> result = DescribeImagesResponseHandlerTest.parseImages(resource);
      EC2ImageParser parser = new EC2ImageParser(EC2ComputeServiceDependenciesModule.toPortableImageStatus,
               new EC2PopulateDefaultLoginCredentialsForImageStrategy(), map, Suppliers
                        .<Set<? extends Location>> ofInstance(ImmutableSet.<Location> of(defaultLocation)), Suppliers
                        .ofInstance(defaultLocation), new GreenQloudComputeReviseParsedImage(map));
      return Sets.newLinkedHashSet(Iterables.filter(Iterables.transform(result, parser), Predicates.notNull()));
   }
View Full Code Here

TOP

Related Classes of org.jclouds.ec2.domain.RunningInstance

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.