Package com.abiquo.server.core.cloud

Examples of com.abiquo.server.core.cloud.VirtualMachineTaskDto


    *           the enterprise soft limits are reached.
    * @return The list of tasks corresponding to the deploy process of each
    *         virtual machine in the appliance.
    */
   public VirtualMachineTask[] deploy(final boolean forceEnterpriseSoftLimits) {
      VirtualMachineTaskDto force = new VirtualMachineTaskDto();
      force.setForceEnterpriseSoftLimits(forceEnterpriseSoftLimits);

      AcceptedRequestDto<String> response = context.getApi().getCloudApi().deployVirtualAppliance(unwrap(), force);

      AsyncTask<?, ?>[] tasks = getTasks(response);
      return Arrays.copyOf(tasks, tasks.length, VirtualMachineTask[].class);
View Full Code Here


    *           contains imported virtual machines.
    * @return The list of tasks corresponding to the undeploy process of each
    *         virtual machine in the appliance.
    */
   public VirtualMachineTask[] undeploy(final boolean forceUndeploy) {
      VirtualMachineTaskDto force = new VirtualMachineTaskDto();
      force.setForceUndeploy(forceUndeploy);

      AcceptedRequestDto<String> response = context.getApi().getCloudApi().undeployVirtualAppliance(unwrap(), force);

      AsyncTask<?, ?>[] tasks = getTasks(response);
      return Arrays.copyOf(tasks, tasks.length, VirtualMachineTask[].class);
View Full Code Here

      tier.addLink(new RESTLink("edit", "http://localhost/api/cloud/virtualdatacenters/1/tiers/1"));
      return tier;
   }

   public static VirtualMachineTaskDto deployOptions() {
      VirtualMachineTaskDto deploy = new VirtualMachineTaskDto();
      deploy.setForceEnterpriseSoftLimits(false);
      return deploy;

   }
View Full Code Here

      return deploy;

   }

   public static VirtualMachineTaskDto undeployOptions() {
      VirtualMachineTaskDto deploy = new VirtualMachineTaskDto();
      deploy.setForceUndeploy(true);
      return deploy;
   }
View Full Code Here

   public VirtualMachineTask deploy() {
      return deploy(false);
   }

   public VirtualMachineTask deploy(final boolean forceEnterpriseSoftLimits) {
      VirtualMachineTaskDto force = new VirtualMachineTaskDto();
      force.setForceEnterpriseSoftLimits(forceEnterpriseSoftLimits);

      AcceptedRequestDto<String> response = context.getApi().getCloudApi().deployVirtualMachine(unwrap(), force);

      return getTask(response).asVirtualMachineTask();
   }
View Full Code Here

   public VirtualMachineTask undeploy() {
      return undeploy(false);
   }

   public VirtualMachineTask undeploy(final boolean forceUndeploy) {
      VirtualMachineTaskDto force = new VirtualMachineTaskDto();
      force.setForceUndeploy(forceUndeploy);

      AcceptedRequestDto<String> response = context.getApi().getCloudApi().undeployVirtualMachine(unwrap(), force);

      return getTask(response).asVirtualMachineTask();
   }
View Full Code Here

   public VirtualMachineTask deploy() {
      return deploy(false);
   }

   public VirtualMachineTask deploy(final boolean forceEnterpriseSoftLimits) {
      VirtualMachineTaskDto force = new VirtualMachineTaskDto();
      force.setForceEnterpriseSoftLimits(forceEnterpriseSoftLimits);

      AcceptedRequestDto<String> response = context.getApi().getCloudApi().deployVirtualMachine(unwrap(), force);

      return getTask(response).asVirtualMachineTask();
   }
View Full Code Here

   public VirtualMachineTask undeploy() {
      return undeploy(false);
   }

   public VirtualMachineTask undeploy(final boolean forceUndeploy) {
      VirtualMachineTaskDto force = new VirtualMachineTaskDto();
      force.setForceUndeploy(forceUndeploy);

      AcceptedRequestDto<String> response = context.getApi().getCloudApi().undeployVirtualMachine(unwrap(), force);

      return getTask(response).asVirtualMachineTask();
   }
View Full Code Here

      tier.addLink(new RESTLink("edit", "http://localhost/api/cloud/virtualdatacenters/1/tiers/1"));
      return tier;
   }

   public static VirtualMachineTaskDto deployOptions() {
      VirtualMachineTaskDto deploy = new VirtualMachineTaskDto();
      deploy.setForceEnterpriseSoftLimits(false);
      return deploy;

   }
View Full Code Here

      return deploy;

   }

   public static VirtualMachineTaskDto undeployOptions() {
      VirtualMachineTaskDto deploy = new VirtualMachineTaskDto();
      deploy.setForceUndeploy(true);
      return deploy;
   }
View Full Code Here

TOP

Related Classes of com.abiquo.server.core.cloud.VirtualMachineTaskDto

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.