Package com.abiquo.server.core.cloud

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


    * @param snapshotName
    *           The name of the snapshot.
    * @return The task reference to the snapshot process.
    */
   public VirtualMachineTemplateTask snapshot(final String snapshotName) {
      VirtualMachineInstanceDto snapshotConfig = new VirtualMachineInstanceDto();
      snapshotConfig.setInstanceName(snapshotName);

      AcceptedRequestDto<String> response = context.getApi().getCloudApi()
            .snapshotVirtualMachine(target, snapshotConfig);

      return getTask(response).asVirtualMachineTemplateTask();
View Full Code Here


                              normalize(VirtualMachineInstanceDto.MEDIA_TYPE))).build());

      VirtualMachineDto vm = new VirtualMachineDto();
      vm.addLink(new RESTLink("instance",
            "http://localhost/api/admin/virtualdatacenters/1/virtualappliances/1/virtualmachines/1/action/instance"));
      VirtualMachineInstanceDto snapshotConfig = new VirtualMachineInstanceDto();
      snapshotConfig.setInstanceName("foo");

      AcceptedRequestDto<String> taskRef = api.snapshotVirtualMachine(vm, snapshotConfig);
      assertNotNull(taskRef);
   }
View Full Code Here

    * @param snapshotName
    *           The name of the snapshot.
    * @return The task reference to the snapshot process.
    */
   public VirtualMachineTemplateTask snapshot(final String snapshotName) {
      VirtualMachineInstanceDto snapshotConfig = new VirtualMachineInstanceDto();
      snapshotConfig.setInstanceName(snapshotName);

      AcceptedRequestDto<String> response = context.getApi().getCloudApi()
            .snapshotVirtualMachine(target, snapshotConfig);

      return getTask(response).asVirtualMachineTemplateTask();
View Full Code Here

                              normalize(VirtualMachineInstanceDto.MEDIA_TYPE))).build());

      VirtualMachineDto vm = new VirtualMachineDto();
      vm.addLink(new RESTLink("instance",
            "http://localhost/api/admin/virtualdatacenters/1/virtualappliances/1/virtualmachines/1/action/instance"));
      VirtualMachineInstanceDto snapshotConfig = new VirtualMachineInstanceDto();
      snapshotConfig.setInstanceName("foo");

      AcceptedRequestDto<String> taskRef = api.snapshotVirtualMachine(vm, snapshotConfig);
      assertNotNull(taskRef);
   }
View Full Code Here

TOP

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

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.