Package org.jclouds.cloudsigma.compute.options

Examples of org.jclouds.cloudsigma.compute.options.CloudSigmaTemplateOptions


   }

   @Provides
   @Singleton
   protected TemplateOptions templateOptions() {
      return new CloudSigmaTemplateOptions();
   }
View Full Code Here


   @Override
   public NodeAndInitialCredentials<ServerInfo> createNodeWithGroupEncodedIntoName(String tag, String name, Template template) {
      long bootSize = (long) (template.getHardware().getVolumes().get(0).getSize() * 1024 * 1024 * 1024l);
      AffinityType affinityType = AffinityType.HDD;
      if (template.getOptions() instanceof CloudSigmaTemplateOptions) {
         CloudSigmaTemplateOptions options = CloudSigmaTemplateOptions.class.cast(template.getOptions());
         affinityType = options.getDiskDriveAffinity();
      }
      logger.debug(">> imaging boot drive source(%s) bytes(%d) affinityType(%s)",
         template.getImage().getId(), bootSize, affinityType);
      DriveInfo drive = client.cloneDrive(template.getImage().getId(), template.getImage().getId(),
         new CloneDriveOptions().size(bootSize).affinity(affinityType));
View Full Code Here

   @Override
   public NodeAndInitialCredentials<ServerInfo> createNodeWithGroupEncodedIntoName(String tag, String name, Template template) {
      long bootSize = (long) (template.getHardware().getVolumes().get(0).getSize() * 1024 * 1024 * 1024l);
      AffinityType affinityType = AffinityType.HDD;
      if (template.getOptions() instanceof CloudSigmaTemplateOptions) {
         CloudSigmaTemplateOptions options = CloudSigmaTemplateOptions.class.cast(template.getOptions());
         affinityType = options.getDiskDriveAffinity();
      }
      logger.debug(">> imaging boot drive source(%s) bytes(%d) affinityType(%s)",
         template.getImage().getId(), bootSize, affinityType);
      DriveInfo drive = client.cloneDrive(template.getImage().getId(), template.getImage().getId(),
         new CloneDriveOptions().size(bootSize).affinity(affinityType));
View Full Code Here

   }

   @Provides
   @Singleton
   protected TemplateOptions templateOptions() {
      return new CloudSigmaTemplateOptions();
   }
View Full Code Here

   @Override
   public NodeAndInitialCredentials<ServerInfo> createNodeWithGroupEncodedIntoName(String tag, String name, Template template) {
      long bootSize = (long) (template.getHardware().getVolumes().get(0).getSize() * 1024 * 1024 * 1024l);
      AffinityType affinityType = AffinityType.HDD;
      if (template.getOptions() instanceof CloudSigmaTemplateOptions) {
         CloudSigmaTemplateOptions options = CloudSigmaTemplateOptions.class.cast(template.getOptions());
         affinityType = options.getDiskDriveAffinity();
      }
      logger.debug(">> imaging boot drive source(%s) bytes(%d) affinityType(%s)",
         template.getImage().getId(), bootSize, affinityType);
      DriveInfo drive = client.cloneDrive(template.getImage().getId(), template.getImage().getId(),
         new CloneDriveOptions().size(bootSize).affinity(affinityType));
View Full Code Here

   @Override
   public NodeAndInitialCredentials<ServerInfo> createNodeWithGroupEncodedIntoName(String tag, String name, Template template) {
      long bootSize = (long) (template.getHardware().getVolumes().get(0).getSize() * 1024 * 1024 * 1024l);
      AffinityType affinityType = AffinityType.HDD;
      if (template.getOptions() instanceof CloudSigmaTemplateOptions) {
         CloudSigmaTemplateOptions options = CloudSigmaTemplateOptions.class.cast(template.getOptions());
         affinityType = options.getDiskDriveAffinity();
      }
      logger.debug(">> imaging boot drive source(%s) bytes(%d) affinityType(%s)",
         template.getImage().getId(), bootSize, affinityType);
      DriveInfo drive = client.cloneDrive(template.getImage().getId(), template.getImage().getId(),
         new CloneDriveOptions().size(bootSize).affinity(affinityType));
View Full Code Here

   }

   @Provides
   @Singleton
   protected TemplateOptions templateOptions() {
      return new CloudSigmaTemplateOptions();
   }
View Full Code Here

   }

   @Provides
   @Singleton
   protected TemplateOptions templateOptions() {
      return new CloudSigmaTemplateOptions();
   }
View Full Code Here

TOP

Related Classes of org.jclouds.cloudsigma.compute.options.CloudSigmaTemplateOptions

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.