com.vmware.vim25.mo
Class VirtualMachineSnapshot

java.lang.Object
  extended by com.vmware.vim25.mo.ManagedObject
      extended by com.vmware.vim25.mo.VirtualMachineSnapshot

public class VirtualMachineSnapshot
extends ManagedObject

The managed object class corresponding to the one defined in VI SDK API reference.

Author:
Steve JIN (sjin@vmware.com)

Constructor Summary
VirtualMachineSnapshot(ServerConnection sc, ManagedObjectReference mor)
           
 
Method Summary
 VirtualMachineSnapshot[] getChildSnapshot()
           
 VirtualMachineConfigInfo getConfig()
           
 Task removeSnapshot_Task(boolean removeChildren)
           
 Task removeSnapshot_Task(boolean removeChildren, Boolean consolidate)
           
 void renameSnapshot(String name, String description)
           
 Task revertToSnapshot_Task(HostSystem host)
           
 Task revertToSnapshot_Task(HostSystem host, Boolean suppressPowerOn)
           
 
Methods inherited from class com.vmware.vim25.mo.ManagedObject
convertMors, getCurrentProperty, getDatastores, getFilter, getHosts, getManagedObject, getManagedObjects, getManagedObjects, getMOR, getNetworks, getPropertiesByPaths, getPropertyByPath, getResourcePools, getScheduledTasks, getServerConnection, getTasks, getViews, getVimService, getVms, retrieveObjectProperties, setMOR, setServerConnection, toString, waitForValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VirtualMachineSnapshot

public VirtualMachineSnapshot(ServerConnection sc,
                              ManagedObjectReference mor)
Method Detail

getChildSnapshot

public VirtualMachineSnapshot[] getChildSnapshot()
Since:
SDK4.1

getConfig

public VirtualMachineConfigInfo getConfig()

removeSnapshot_Task

public Task removeSnapshot_Task(boolean removeChildren)
                         throws TaskInProgress,
                                RuntimeFault,
                                RemoteException
Throws:
TaskInProgress
RuntimeFault
RemoteException

removeSnapshot_Task

public Task removeSnapshot_Task(boolean removeChildren,
                                Boolean consolidate)
                         throws TaskInProgress,
                                RuntimeFault,
                                RemoteException
Throws:
TaskInProgress
RuntimeFault
RemoteException

renameSnapshot

public void renameSnapshot(String name,
                           String description)
                    throws InvalidName,
                           RuntimeFault,
                           RemoteException
Throws:
InvalidName
RuntimeFault
RemoteException

revertToSnapshot_Task

public Task revertToSnapshot_Task(HostSystem host)
                           throws VmConfigFault,
                                  TaskInProgress,
                                  FileFault,
                                  InvalidState,
                                  InsufficientResourcesFault,
                                  RuntimeFault,
                                  RemoteException
Throws:
VmConfigFault
TaskInProgress
FileFault
InvalidState
InsufficientResourcesFault
RuntimeFault
RemoteException

revertToSnapshot_Task

public Task revertToSnapshot_Task(HostSystem host,
                                  Boolean suppressPowerOn)
                           throws VmConfigFault,
                                  TaskInProgress,
                                  FileFault,
                                  InvalidState,
                                  InsufficientResourcesFault,
                                  RuntimeFault,
                                  RemoteException
Throws:
VmConfigFault
TaskInProgress
FileFault
InvalidState
InsufficientResourcesFault
RuntimeFault
RemoteException


Copyright © 2011-2012. All Rights Reserved.