Package com.abiquo.server.core.cloud

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


      virtualMachine.setHdInBytes(20l);
      return virtualMachine;
   }

   public static VirtualMachineStateDto virtualMachineState() {
      VirtualMachineStateDto state = new VirtualMachineStateDto();
      state.setState(VirtualMachineState.ON);
      return state;
   }
View Full Code Here


    *      example</a>
    * @return The task reference or <code>null</code> if the operation completed
    *         synchronously.
    */
   public VirtualMachineTask changeState(final VirtualMachineState state) {
      VirtualMachineStateDto dto = new VirtualMachineStateDto();
      dto.setState(state);

      AcceptedRequestDto<String> taskRef = context.getApi().getCloudApi().changeVirtualMachineState(target, dto);

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

    *      > http://community.abiquo.com/display/ABI20/VirtualMachineResource#
    *      VirtualMachineResource-Retrievethestateofthevirtualmachine</a>
    * @return Current state of the virtual machine.
    */
   public VirtualMachineState getState() {
      VirtualMachineStateDto stateDto = context.getApi().getCloudApi().getVirtualMachineState(target);
      VirtualMachineState state = stateDto.getState();
      target.setState(state);
      target.setIdState(state.id());
      return state;
   }
View Full Code Here

    *      example</a>
    * @return The task reference or <code>null</code> if the operation completed
    *         synchronously.
    */
   public VirtualMachineTask changeState(final VirtualMachineState state) {
      VirtualMachineStateDto dto = new VirtualMachineStateDto();
      dto.setState(state);

      AcceptedRequestDto<String> taskRef = context.getApi().getCloudApi().changeVirtualMachineState(target, dto);

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

    *      > http://community.abiquo.com/display/ABI20/VirtualMachineResource#
    *      VirtualMachineResource-Retrievethestateofthevirtualmachine</a>
    * @return Current state of the virtual machine.
    */
   public VirtualMachineState getState() {
      VirtualMachineStateDto stateDto = context.getApi().getCloudApi().getVirtualMachineState(target);
      VirtualMachineState state = stateDto.getState();
      target.setState(state);
      target.setIdState(state.id());
      return state;
   }
View Full Code Here

      virtualMachine.setHdInBytes(20l);
      return virtualMachine;
   }

   public static VirtualMachineStateDto virtualMachineState() {
      VirtualMachineStateDto state = new VirtualMachineStateDto();
      state.setState(VirtualMachineState.ON);
      return state;
   }
View Full Code Here

                  "http://localhost/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1/network/configurations"));
      return virtualMachine;
   }

   public static VirtualMachineStateDto virtualMachineState() {
      VirtualMachineStateDto state = new VirtualMachineStateDto();
      state.setState(VirtualMachineState.ON);
      return state;
   }
View Full Code Here

    *      example</a>
    * @return The task reference or <code>null</code> if the operation completed
    *         synchronously.
    */
   public AsyncTask changeState(final VirtualMachineState state) {
      VirtualMachineStateDto dto = new VirtualMachineStateDto();
      dto.setState(state);

      AcceptedRequestDto<String> taskRef = context.getApi().getCloudApi().changeVirtualMachineState(target, dto);

      return getTask(taskRef);
   }
View Full Code Here

    *      > http://community.abiquo.com/display/ABI20/VirtualMachineResource#
    *      VirtualMachineResource-Retrievethestateofthevirtualmachine</a>
    * @return Current state of the virtual machine.
    */
   public VirtualMachineState getState() {
      VirtualMachineStateDto stateDto = context.getApi().getCloudApi().getVirtualMachineState(target);
      VirtualMachineState state = stateDto.getState();
      target.setState(state);
      target.setIdState(state.id());
      return state;
   }
View Full Code Here

TOP

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

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.