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

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

The newest version!
????2?&com/vmware/vim25/mo/samples/vm/CloneVMjava/lang/Object()VCode
	LineNumberTableLocalVariableTablethis(Lcom/vmware/vim25/mo/samples/vm/CloneVM;main([Ljava/lang/String;)V
Exceptionsjava/lang/Exception	java/lang/SystemoutLjava/io/PrintStream;DUsage: java CloneVM     
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@java/lang/StringBuilderBNo VM 
?*
?EFGappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;I found
?KLMtoString()Ljava/lang/String;
%OPQgetServerConnection(()Lcom/vmware/vim25/mo/ServerConnection;
SUT$com/vmware/vim25/mo/ServerConnectionVlogoutX(com/vmware/vim25/VirtualMachineCloneSpec
W	[+com/vmware/vim25/VirtualMachineRelocateSpec
Z	
W^_`setLocation0(Lcom/vmware/vim25/VirtualMachineRelocateSpec;)V
Wbcd
setPowerOn(Z)V
WfgdsetTemplate
=ijk	getParent%()Lcom/vmware/vim25/mo/ManagedEntity;mcom/vmware/vim25/mo/Folder
=opqcloneVM_Taskt(Lcom/vmware/vim25/mo/Folder;Ljava/lang/String;Lcom/vmware/vim25/VirtualMachineCloneSpec;)Lcom/vmware/vim25/mo/Task;s,Launching the VM clone task. Please wait ...
uwvcom/vmware/vim25/mo/TaskxM	waitForMezsuccess|VM got cloned successfully.~Failure -: VM cannot be clonedargs[Ljava/lang/String;vmnameLjava/lang/String;	cloneNamesi%Lcom/vmware/vim25/mo/ServiceInstance;
rootFolderLcom/vmware/vim25/mo/Folder;vm$Lcom/vmware/vim25/mo/VirtualMachine;	cloneSpec*Lcom/vmware/vim25/VirtualMachineCloneSpec;taskLcom/vmware/vim25/mo/Task;status
StackMapTable??java/lang/String
SourceFileCloneVM.java!/*??
/
	?	?*?????!*2L*2M?%Y?'Y*2?)*2*2?+N-?.:?2Y?47+?9?=:?&???YA?C+?DH?D?J?-?N?R??WY?Y:?ZY?\?]?a?e?h?l,?n:?r??t:y??{???}??
?!357:;=>/=3@9A=B?ABCEBHAMERGmHtIuM|L~N?O?P?R?S?R?T?W?X?Z?^?`\	????????3???9???M???~T???*??????)?b???%l=?SWu???




© 2015 - 2024 Weber Informatics LLC | Privacy Policy