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

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

The newest version!
????2?&com/vmware/vim25/mo/samples/vm/VMClonejava/lang/Object()VCode
	LineNumberTableLocalVariableTablethis(Lcom/vmware/vim25/mo/samples/vm/VMClone;main([Ljava/lang/String;)V
Exceptionsjava/lang/Exception*com/vmware/vim25/mo/util/CommandLineParser
constructOptions(()[Lcom/vmware/vim25/mo/util/OptionSpec;
<([Lcom/vmware/vim25/mo/util/OptionSpec;[Ljava/lang/String;)Vurl
 !
get_option&(Ljava/lang/String;)Ljava/lang/String;#username%password'	CloneName)vmPath+DatacenterName-#com/vmware/vim25/mo/ServiceInstance/java/net/URL
.12(Ljava/lang/String;)V
,456(Ljava/net/URL;Ljava/lang/String;Ljava/lang/String;Z)V
,789getSearchIndex#()Lcom/vmware/vim25/mo/SearchIndex;
;=<com/vmware/vim25/mo/SearchIndex>?findByInventoryPath7(Ljava/lang/String;)Lcom/vmware/vim25/mo/ManagedEntity;A"com/vmware/vim25/mo/VirtualMachineCcom/vmware/vim25/mo/Datacenter	EGFjava/lang/SystemHIoutLjava/io/PrintStream;KDVirtualMachine or Datacenter path is NOT correct. Pls double check. 
MONjava/io/PrintStreamP2println
BRSTgetVmFolder()Lcom/vmware/vim25/mo/Folder;V(com/vmware/vim25/VirtualMachineCloneSpec
U	Y+com/vmware/vim25/VirtualMachineRelocateSpec
X	
U\]^setLocation0(Lcom/vmware/vim25/VirtualMachineRelocateSpec;)V
U`ab
setPowerOn(Z)V
UdebsetTemplate
@ghicloneVM_Taskt(Lcom/vmware/vim25/mo/Folder;Ljava/lang/String;Lcom/vmware/vim25/VirtualMachineCloneSpec;)Lcom/vmware/vim25/mo/Task;kRLaunching the VM clone task. It might take a while. Please wait for the result ...
moncom/vmware/vim25/mo/Taskpq	waitForMe()Ljava/lang/String;ssuccessu(Virtual Machine got cloned successfully.w+Failure -: Virtual Machine cannot be cloned
y{zjava/rmi/RemoteException|printStackTrace
~{java/net/MalformedURLExceptionargs[Ljava/lang/String;clp,Lcom/vmware/vim25/mo/util/CommandLineParser;urlStrLjava/lang/String;	cloneNamedatacenterNamesi%Lcom/vmware/vim25/mo/ServiceInstance;vm$Lcom/vmware/vim25/mo/VirtualMachine;dc Lcom/vmware/vim25/mo/Datacenter;vmFolderLcom/vmware/vim25/mo/Folder;	cloneSpec*Lcom/vmware/vim25/VirtualMachineCloneSpec;taskLcom/vmware/vim25/mo/Task;statusreLjava/rmi/RemoteException;mue Ljava/net/MalformedURLException;
StackMapTable??java/lang/String?com/vmware/vim25/mo/Folder?#com/vmware/vim25/mo/util/OptionSpec?String?Name of the Datacenter
???L(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;)V?Path to the VM inventory?Name of the Cloneuseroptions&[Lcom/vmware/vim25/mo/util/OptionSpec;
SourceFileVMClone.java!/*??
K
	??Y?*?L+?M+"?N+$?:+&?:+(?:+*?:?,Y?.Y,?0-?3:?6?:?@:	?6?:?B:
	?
??DJ?L?
?Q:?UY?W:?XY?Z?[?_?c	?f:
?Dj?L
?l:r??Dt?L??Dv?L?:?x?
:?}?:?y???y:?~???~
vOQRS"T*U2V:ZO[^\m^w`a?c?e?f?g?h?j?k?m?n?p?t?w?y?{?}????????????#?"?%?*???2?)?:???O???^???	mt??
?Z???Q???,??
????????????w???????,@B?U???????,@B?Um?????????yI~
?	=??K*??Y*????S*??Y(????S*??Y&????S*?
.?????"?(?)?4?:?;?8????




© 2015 - 2024 Weber Informatics LLC | Privacy Policy