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

com.vmware.vim25.mo.samples.perf.GetMultiPerf.class Maven / Gradle / Ivy

The newest version!
????2[-com/vmware/vim25/mo/samples/perf/GetMultiPerfjava/lang/Object()VCode
	LineNumberTableLocalVariableTablethis/Lcom/vmware/vim25/mo/samples/perf/GetMultiPerf;main([Ljava/lang/String;)V
Exceptionsjava/lang/Exception	java/lang/SystemoutLjava/io/PrintStream;=Usage: java GetMultiPerf    
java/io/PrintStream println(Ljava/lang/String;)V"#com/vmware/vim25/mo/ServiceInstance$java/net/URL
#& 
!()6(Ljava/net/URL;Ljava/lang/String;Ljava/lang/String;Z)V+&com/vmware/vim25/mo/InventoryNavigator
!-./
getRootFolder()Lcom/vmware/vim25/mo/Folder;
*12&(Lcom/vmware/vim25/mo/ManagedEntity;)V4VirtualMachine
*678searchManagedEntityI(Ljava/lang/String;Ljava/lang/String;)Lcom/vmware/vim25/mo/ManagedEntity;:"com/vmware/vim25/mo/VirtualMachine<java/lang/StringBuilder>Virtual Machine 
;&
;ABCappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;E cannot be found.
;GHItoString()Ljava/lang/String;
!KLMgetServerConnection(()Lcom/vmware/vim25/mo/ServerConnection;
OQP$com/vmware/vim25/mo/ServerConnectionRlogout
!TUVgetPerformanceManager*()Lcom/vmware/vim25/mo/PerformanceManager;
XZYjava/lang/Integer[\valueOf(I)Ljava/lang/Integer;
^`_&com/vmware/vim25/mo/PerformanceManagerabqueryAvailablePerfMetric?(Lcom/vmware/vim25/mo/ManagedEntity;Ljava/util/Calendar;Ljava/util/Calendar;Ljava/lang/Integer;)[Lcom/vmware/vim25/PerfMetricId;
!defcurrentTime()Ljava/util/Calendar;hcom/vmware/vim25/PerfQuerySpec
g	
9klm
getRuntime.()Lcom/vmware/vim25/VirtualMachineRuntimeInfo;
oqp*com/vmware/vim25/VirtualMachineRuntimeInforsgetHost+()Lcom/vmware/vim25/ManagedObjectReference;
guvw	setEntity,(Lcom/vmware/vim25/ManagedObjectReference;)V
gyz{setMetricId#([Lcom/vmware/vim25/PerfMetricId;)V}normal
g? 	setFormat
g???
setIntervalId(Ljava/lang/Integer;)V
???java/util/Calendar??clone()Ljava/lang/Object;
????roll(II)V?start:
????getTime()Ljava/util/Date;
;?B?-(Ljava/lang/Object;)Ljava/lang/StringBuilder;
g???setStartTime(Ljava/util/Calendar;)V?end:
g???
setEndTime
^???queryPerfCompositeH(Lcom/vmware/vim25/PerfQuerySpec;)Lcom/vmware/vim25/PerfCompositeMetric;
???$com/vmware/vim25/PerfCompositeMetric??	getEntity)()Lcom/vmware/vim25/PerfEntityMetricBase;
???printPerfMetric*(Lcom/vmware/vim25/PerfEntityMetricBase;)V
????getChildEntity*()[Lcom/vmware/vim25/PerfEntityMetricBase;args[Ljava/lang/String;si%Lcom/vmware/vim25/mo/ServiceInstance;vmnameLjava/lang/String;vm$Lcom/vmware/vim25/mo/VirtualMachine;perfMgr(Lcom/vmware/vim25/mo/PerformanceManager;perfIntervalIpmis [Lcom/vmware/vim25/PerfMetricId;curTimeLjava/util/Calendar;qSpec Lcom/vmware/vim25/PerfQuerySpec;	startTimeendTimepv&Lcom/vmware/vim25/PerfCompositeMetric;pembs([Lcom/vmware/vim25/PerfEntityMetricBase;i
StackMapTable?java/lang/String???
???%com/vmware/vim25/PerfEntityMetricBase?s
???'com/vmware/vim25/ManagedObjectReference?IgetType
??[?&(Ljava/lang/Object;)Ljava/lang/String;?:
???I	get_value?Entity:?!com/vmware/vim25/PerfEntityMetric
???&(Lcom/vmware/vim25/PerfEntityMetric;)V?$com/vmware/vim25/PerfEntityMetricCSV
???printPerfMetricCSV)(Lcom/vmware/vim25/PerfEntityMetricCSV;)V?,UnExpected sub-type of PerfEntityMetricBase.val'Lcom/vmware/vim25/PerfEntityMetricBase;
entityDesc
????getValue&()[Lcom/vmware/vim25/PerfMetricSeries;
????
getSampleInfo$()[Lcom/vmware/vim25/PerfSampleInfo;?Sampling Times and Intervales:
sample time: 
com/vmware/vim25/PerfSampleInfofgetTimestampsample interval (sec):
	
getInterval()I
;
B(I)Ljava/lang/StringBuilder;
Sample values:Perf counter ID:
!com/vmware/vim25/PerfMetricSeriesgetId!()Lcom/vmware/vim25/PerfMetricId;
com/vmware/vim25/PerfMetricIdgetCounterIdDevice instance ID:
!"IgetInstance$$com/vmware/vim25/PerfMetricIntSeries
#&?'()[J
?)[*(J)Ljava/lang/String;, 
./ print1Total:3$com/vmware/vim25/PerfMetricSeriesCSV5
CSV value:
27?Ipem#Lcom/vmware/vim25/PerfEntityMetric;vals$[Lcom/vmware/vim25/PerfMetricSeries;infos"[Lcom/vmware/vim25/PerfSampleInfo;j&Lcom/vmware/vim25/PerfMetricIntSeries;longs[Jk&Lcom/vmware/vim25/PerfMetricSeriesCSV;;=AHSampleInfoCSV:
?JKIgetSampleInfoCSV
?M?N)()[Lcom/vmware/vim25/PerfMetricSeriesCSV;PPerfCounterId:
2SCSV sample values:pems&Lcom/vmware/vim25/PerfEntityMetricCSV;csvs'[Lcom/vmware/vim25/PerfMetricSeriesCSV;W
SourceFileGetMultiPerf.java!/*??
7
	^*??????!Y?#Y*2?%*2*2?'L*2M?*Y+?,?03,?5?9N-?&??;Y=??,?@D?@?F?+?J?N?+?S:6-?W?]:+?c:?gY?i:-?j?n?t?x|?~?W??????:		?????;Y???	?????F?	??????:

?????;Y???
?????F?
????:?0??????:6
?
2???
?
????+?J?N?
?/;=?BC$B(E,F0G4F7H:G=FAJELUM]L`NgOhRnTsWuX}W?Z?\?]?_?`?a?c?d?e?f?h?i?jkm$n)p1q8r>tFrVw]x?^??(6??,2??A??n???s???????????????????	?l??
$:??8??;??
?@?X!?9???!?9^??g????
????e?;Y*?Ҷָ۷?޶@*?Ҷ?@?FL??;Y??+?@?F?*??
*???*??
*??????
*
|} |$~:A?K?R?\?d?e??$A???
?K???fG*??L*??M???>?@??;Y???,2??????F???;Y??,2???F??,?	,??????>?Ӳ?;Y??+2????F???;Y??+2?? ?@?F?+2?#?]+2?#:?%:6?$??;Y/?(??+?@?F?-????ڲ?;Y0?????F??/+2?2?&+2?2:??;Y4???6?@?F??+?	+???)?
~??
???#?2?5?B?N?Q?^?g?l?y???????????????????????
???9?F?\	G89B:;
=<=J??i?>??R???K@A?,B??C?'
?DE




© 2015 - 2024 Weber Informatics LLC | Privacy Policy