All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vmware.vim25.mo.samples.vm.MigrateVM.class Maven / Gradle / Ivy

The newest version!
????2?(com/vmware/vim25/mo/samples/vm/MigrateVMjava/lang/Object()VCode
	LineNumberTableLocalVariableTablethis*Lcom/vmware/vim25/mo/samples/vm/MigrateVM;main([Ljava/lang/String;)V
Exceptionsjava/lang/Exception	java/lang/SystemoutLjava/io/PrintStream;DUsage: java MigrateVM     
java/io/PrintStream println(Ljava/lang/String;)V
"#$exit(I)V&#com/vmware/vim25/mo/ServiceInstance(java/net/URL
'* 
%,-6(Ljava/net/URL;Ljava/lang/String;Ljava/lang/String;Z)V
%/01
getRootFolder()Lcom/vmware/vim25/mo/Folder;3&com/vmware/vim25/mo/InventoryNavigator
256&(Lcom/vmware/vim25/mo/ManagedEntity;)V8VirtualMachine
2:;<searchManagedEntityI(Ljava/lang/String;Ljava/lang/String;)Lcom/vmware/vim25/mo/ManagedEntity;>"com/vmware/vim25/mo/VirtualMachine@
HostSystemBcom/vmware/vim25/mo/HostSystem
ADEF	getParent%()Lcom/vmware/vim25/mo/ManagedEntity;H#com/vmware/vim25/mo/ComputeResourceJjava/lang/StringLcpuNsoftware
%PQRqueryVMotionCompatibility?(Lcom/vmware/vim25/mo/VirtualMachine;[Lcom/vmware/vim25/mo/HostSystem;[Ljava/lang/String;)[Lcom/vmware/vim25/HostVMotionCompatibility;
TVU)com/vmware/vim25/HostVMotionCompatibilityWXgetCompatibility()[Ljava/lang/String;Z"CPU/software NOT compatible. Exit.
%\]^getServerConnection(()Lcom/vmware/vim25/mo/ServerConnection;
`ba$com/vmware/vim25/mo/ServerConnectionclogout
GefggetResourcePool$()Lcom/vmware/vim25/mo/ResourcePool;	ikj+com/vmware/vim25/VirtualMachineMovePrioritylmhighPriority-Lcom/vmware/vim25/VirtualMachineMovePriority;	oqp)com/vmware/vim25/VirtualMachinePowerStaters	poweredOn+Lcom/vmware/vim25/VirtualMachinePowerState;
=uvwmigrateVM_Task?(Lcom/vmware/vim25/mo/ResourcePool;Lcom/vmware/vim25/mo/HostSystem;Lcom/vmware/vim25/VirtualMachineMovePriority;Lcom/vmware/vim25/VirtualMachinePowerState;)Lcom/vmware/vim25/mo/Task;
y{zcom/vmware/vim25/mo/Task|}	waitForMe()Ljava/lang/String;success?
VMotioned!?VMotion failed!
y???getTaskInfo()Lcom/vmware/vim25/TaskInfo;
???com/vmware/vim25/TaskInfo??getError)()Lcom/vmware/vim25/LocalizedMethodFault;
???%com/vmware/vim25/LocalizedMethodFault??getFault ()Lcom/vmware/vim25/MethodFault;
??(Ljava/lang/Object;)Vargs[Ljava/lang/String;vmnameLjava/lang/String;newHostNamesi%Lcom/vmware/vim25/mo/ServiceInstance;
rootFolderLcom/vmware/vim25/mo/Folder;vm$Lcom/vmware/vim25/mo/VirtualMachine;newHost Lcom/vmware/vim25/mo/HostSystem;cr%Lcom/vmware/vim25/mo/ComputeResource;checksvmcs,[Lcom/vmware/vim25/HostVMotionCompatibility;compstaskLcom/vmware/vim25/mo/Task;infoLcom/vmware/vim25/TaskInfo;
StackMapTable??com/vmware/vim25/mo/Folder?
SourceFileMigrateVM.java!/*??
3
	?
?*?????!*2L*2M?%Y?'Y*2?)*2*2?+N-?.:?2Y?47+?9?=:?2Y?4?,?9?A:?C?G:?IYKSYMS:-?AYS?O:		2?S:
?
???Y?-?[?_??d?h?n?t:?x~????? ?????:???????-?[?_?
?+79;>?AB/A3D9E=F?EBGEFHEMHQISHVJYI\HaKkM{O~P?O?N?R?S?U?V?W?Z?[?\?Z?^?`?d?e?f?h?i?
?????????3???9???M???a???k???{????p??	?g??
?:??????2???II%?=AG????(y??




© 2015 - 2024 Weber Informatics LLC | Privacy Policy