Examples of CloudProvider


Examples of com.streamreduce.connections.CloudProvider

        return newNode;
    }

    public ComputeService getComputeService(ConnectionResponseDTO cloud) {
        CloudProvider provider = (CloudProvider) ConnectionUtils.getProviderFromId(CloudProvider.TYPE,
                cloud.getProviderId());
        Properties overrides = new Properties();

        // Choose from only Amazon provided AMIs
        overrides.setProperty(AWSEC2Constants.PROPERTY_EC2_AMI_QUERY,
                "owner-id=137112412989;state=available;image-type=machine");
        overrides.setProperty(AWSEC2Constants.PROPERTY_EC2_CC_AMI_QUERY, "");

        // Inject the SSH implementation
        Iterable<Module> modules = ImmutableSet.<Module>of(new SshjSshClientModule());

        return new ComputeServiceContextFactory().createContext(provider.getComputeId(),
                cloudProperties.getString("nodeable.aws.accessKeyId"), cloudProperties.getString("nodeable.aws.secretKey"), modules,
                overrides).getComputeService();
    }
View Full Code Here

Examples of org.springframework.roo.addon.cloud.providers.CloudProvider

        .getFocusedModuleName());
  }

  @Override
  public void installProvider(CloudProviderId prov, String configuration) {
    CloudProvider provider = null;
    for (CloudProvider tmpProvider : providers) {
      if (prov.is(tmpProvider)) {
        provider = tmpProvider;
        break;
      }
    }
    if (provider == null) {
      throw new RuntimeException("Provider '".concat(prov.getId())
          .concat("' not found'"));
    }
    provider.setup(configuration);

  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.