Package org.jclouds.aws.ec2

Examples of org.jclouds.aws.ec2.AWSEC2ProviderMetadata$Builder


   protected String provider = "aws-ec2";

   @Override
   public AWSEC2ProviderMetadata createProviderMetadata(){
      return new AWSEC2ProviderMetadata();
   }
View Full Code Here


   protected String provider = "aws-ec2";

   @Override
   public AWSEC2ProviderMetadata createProviderMetadata() {
      return new AWSEC2ProviderMetadata();
   }
View Full Code Here

   protected String provider = "aws-ec2";

   @Override
   public AWSEC2ProviderMetadata createProviderMetadata() {
      return new AWSEC2ProviderMetadata();
   }
View Full Code Here

      try {
         cloudWatchContext = ContextBuilder.newBuilder(new AWSCloudWatchProviderMetadata())
                                           .credentials(accessKeyId, secretKey)
                                           .build();
         awsEC2Context = ContextBuilder.newBuilder(new AWSEC2ProviderMetadata())
                                       .credentials(accessKeyId, secretKey)
                                       .build(ComputeServiceContext.class);

         // Get all nodes
         Set<? extends ComputeMetadata> allNodes = awsEC2Context.getComputeService().listNodes();
View Full Code Here

   protected String provider = "aws-ec2";

   @Override
   public AWSEC2ProviderMetadata createProviderMetadata(){
      return new AWSEC2ProviderMetadata();
   }
View Full Code Here

      try {
         cloudWatchContext = ContextBuilder.newBuilder(new AWSCloudWatchProviderMetadata())
                                           .credentials(accessKeyId, secretKey)
                                           .build();
         awsEC2Context = ContextBuilder.newBuilder(new AWSEC2ProviderMetadata())
                                       .credentials(accessKeyId, secretKey)
                                       .build(ComputeServiceContext.class);

         // Get all nodes
         Set<? extends ComputeMetadata> allNodes = awsEC2Context.getComputeService().listNodes();
View Full Code Here

   protected String provider = "aws-ec2";

   @Override
   public AWSEC2ProviderMetadata createProviderMetadata() {
      return new AWSEC2ProviderMetadata();
   }
View Full Code Here

    if (clusterSpec.getProvider().equals("ec2")) {
      // This code (or something like it) may be added to jclouds (see
      // http://code.google.com/p/jclouds/issues/detail?id=336).
      // Until then we need this temporary workaround.
      String region = EC2Utils.parseHandle(Iterables.get(nodes, 0).getId())[0];
      EC2Client ec2Client = EC2Client.class.cast(
          computeServiceContext.getProviderSpecificContext().getApi());
      String groupName = "jclouds#" + clusterSpec.getClusterName();
      for (String cidr : cidrs) {
        for (int port : ports) {
          ec2Client.getSecurityGroupServices()
            .authorizeSecurityGroupIngressInRegion(region, groupName,
                IpProtocol.TCP, port, port, cidr);
        }
      }
    }
View Full Code Here

    if (clusterSpec.getProvider().equals("ec2")) {
      // This code (or something like it) may be added to jclouds (see
      // http://code.google.com/p/jclouds/issues/detail?id=336).
      // Until then we need this temporary workaround.
      String region = EC2Utils.parseHandle(Iterables.get(instances, 0).getId())[0];
      EC2Client ec2Client = EC2Client.class.cast(
          computeServiceContext.getProviderSpecificContext().getApi());
      String groupName = "jclouds#" + clusterSpec.getClusterName() + "#" + region;
      for (String cidr : cidrs) {
        for (int port : ports) {
          ec2Client.getSecurityGroupServices()
            .authorizeSecurityGroupIngressInRegion(region, groupName,
                IpProtocol.TCP, port, port, cidr);
        }
      }
    }
View Full Code Here

    if (clusterSpec.getProvider().equals("ec2")) {
      // This code (or something like it) may be added to jclouds (see
      // http://code.google.com/p/jclouds/issues/detail?id=336).
      // Until then we need this temporary workaround.
      String region = EC2Utils.parseHandle(Iterables.get(nodes, 0).getId())[0];
      EC2Client ec2Client = EC2Client.class.cast(
          computeServiceContext.getProviderSpecificContext().getApi());
      String groupName = "jclouds#" + clusterSpec.getClusterName() + "#" + region;
      for (String cidr : cidrs) {
        for (int port : ports) {
          ec2Client.getSecurityGroupServices()
            .authorizeSecurityGroupIngressInRegion(region, groupName,
                IpProtocol.TCP, port, port, cidr);
        }
      }
    }
View Full Code Here

TOP

Related Classes of org.jclouds.aws.ec2.AWSEC2ProviderMetadata$Builder

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.