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

com.vmware.vim25.mo.samples.QueryMemoryOverhead.class Maven / Gradle / Ivy

The newest version!
????2?/com/vmware/vim25/mo/samples/QueryMemoryOverheadjava/lang/Object()VCode
	LineNumberTableLocalVariableTablethis1Lcom/vmware/vim25/mo/samples/QueryMemoryOverhead;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'hostname)
memorysize+cpucount-#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)V7&com/vmware/vim25/mo/InventoryNavigator
,9:;
getRootFolder()Lcom/vmware/vim25/mo/Folder;
6=>&(Lcom/vmware/vim25/mo/ManagedEntity;)V@
HostSystem
6BCDsearchManagedEntityI(Ljava/lang/String;Ljava/lang/String;)Lcom/vmware/vim25/mo/ManagedEntity;Fcom/vmware/vim25/mo/HostSystemH)com/vmware/vim25/VirtualMachineConfigInfo
G	K1
GMN2setChangeVersion
,PQRcurrentTime()Ljava/util/Calendar;
GTUVsetModified(Ljava/util/Calendar;)VX1com/vmware/vim25/VirtualMachineDefaultPowerOpInfo
W	
G[\]setDefaultPowerOps6(Lcom/vmware/vim25/VirtualMachineDefaultPowerOpInfo;)V_'com/vmware/vim25/VirtualMachineFileInfo
^	
GbcdsetFiles,(Lcom/vmware/vim25/VirtualMachineFileInfo;)Vf'com/vmware/vim25/VirtualMachineFlagInfo
e	
GijksetFlags,(Lcom/vmware/vim25/VirtualMachineFlagInfo;)Vm	Full Name
Gop2setGuestFullNamerId
Gtu2
setGuestIdw com/vmware/vim25/VirtualHardware
v	
z|{java/lang/Integer}~parseInt(Ljava/lang/String;)I
v???setMemoryMB(I)V
v???	setNumCPU
G???setHardware%(Lcom/vmware/vim25/VirtualHardware;)V?OnlyFoeInfo
G??2setName?$12345678-abcd-1234-cdef-123456789abc
G??2setUuid?First
G??2
setVersion
G???setTemplate(Z)V?	Alternate
G??2setAlternateGuestName
E???queryMemoryOverheadEx.(Lcom/vmware/vim25/VirtualMachineConfigInfo;)J
???java/lang/Long??valueOf(J)Ljava/lang/Long;	???java/lang/System??outLjava/io/PrintStream;?4Using queryMemoryOverheadEx API using vmReconfigInfo
???java/io/PrintStream?2println?java/lang/StringBuilder?DMemory overhead necessary to power on a virtual machine with memory 
?1
????append-(Ljava/lang/String;)Ljava/lang/StringBuilder;? MB and cpu count ? -: 
????-(Ljava/lang/Object;)Ljava/lang/StringBuilder;? bytes
????toString()Ljava/lang/String;args[Ljava/lang/String;clp,Lcom/vmware/vim25/mo/util/CommandLineParser;urlStrLjava/lang/String;si%Lcom/vmware/vim25/mo/ServiceInstance;host Lcom/vmware/vim25/mo/HostSystem;vmConfigInfo+Lcom/vmware/vim25/VirtualMachineConfigInfo;calLjava/util/Calendar;defaultInfo3Lcom/vmware/vim25/VirtualMachineDefaultPowerOpInfo;fileInfo)Lcom/vmware/vim25/VirtualMachineFileInfo;flagInfo)Lcom/vmware/vim25/VirtualMachineFlagInfo;	vhardware"Lcom/vmware/vim25/VirtualHardware;overheadLjava/lang/Long;?#com/vmware/vim25/mo/util/OptionSpec?String?Name of the host
???L(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;)V?Integer?Size of the memory?Number of the CPU count
SourceFileQueryMemoryOverhead.java!/*??
5
	?N?Y?*?L+?M+"?N+$?:+&?:+(?:+*?:?,Y?.Y,?0-?3:?6Y?8?<??A?E:	?GY?I:

J?L?O:
?S?WY?Y:
?Z?^Y?`:


?a?eY?g:
?h
l?n
q?s?vY?x:?y??y??
??
???
???
???
??
???	
????:?????????Y?????¶???Ķ???ɶ??˶??
?$9:;<"=*>2?:AOCgEpGwH~I?K?L?N?O?Q?R?T?U?W?X?Y?Z?\?]?^?_`	bcd)eJdMf?N??B??;??4#?",%?*$'?2)?:+?O???g???	p???
~???????????
????????9??	k
;??Y??Y&????SY??Y(????SY??Y*????S?
jkl*m:j??




© 2015 - 2024 Weber Informatics LLC | Privacy Policy