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

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

The newest version!
????2R4com/vmware/vim25/mo/samples/perf/RealtimePerfMonitorjava/lang/Object()VCode
	LineNumberTableLocalVariableTablethis6Lcom/vmware/vim25/mo/samples/perf/RealtimePerfMonitor;main([Ljava/lang/String;)V
Exceptionsjava/lang/Exception	java/lang/SystemoutLjava/io/PrintStream;DUsage: java RealtimePerfMonitor    
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;:java/lang/StringBuilder<Virtual Machine 
9&
9?@Aappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;C cannot be found.
9EFGtoString()Ljava/lang/String;
!IJKgetServerConnection(()Lcom/vmware/vim25/mo/ServerConnection;
MON$com/vmware/vim25/mo/ServerConnectionPlogout
!RSTgetPerformanceManager*()Lcom/vmware/vim25/mo/PerformanceManager;
VXW&com/vmware/vim25/mo/PerformanceManagerYZqueryPerfProviderSummaryK(Lcom/vmware/vim25/mo/ManagedEntity;)Lcom/vmware/vim25/PerfProviderSummary;
\^]$com/vmware/vim25/PerfProviderSummary_`getRefreshRate()Ljava/lang/Integer;
bdcjava/lang/IntegerefintValue()I
bhijvalueOf(I)Ljava/lang/Integer;
VlmnqueryAvailablePerfMetric?(Lcom/vmware/vim25/mo/ManagedEntity;Ljava/util/Calendar;Ljava/util/Calendar;Ljava/lang/Integer;)[Lcom/vmware/vim25/PerfMetricId;
pqrcreatePerfQuerySpecg(Lcom/vmware/vim25/mo/ManagedEntity;[Lcom/vmware/vim25/PerfMetricId;II)Lcom/vmware/vim25/PerfQuerySpec;tcom/vmware/vim25/PerfQuerySpec
Vvwx	queryPerfK([Lcom/vmware/vim25/PerfQuerySpec;)[Lcom/vmware/vim25/PerfEntityMetricBase;
z{|
displayValues+([Lcom/vmware/vim25/PerfEntityMetricBase;)V~Sleeping 60 seconds...
???java/lang/Thread??sleep(J)Vargs[Ljava/lang/String;si%Lcom/vmware/vim25/mo/ServiceInstance;vmnameLjava/lang/String;vm#Lcom/vmware/vim25/mo/ManagedEntity;perfMgr(Lcom/vmware/vim25/mo/PerformanceManager;pps&Lcom/vmware/vim25/PerfProviderSummary;refreshRateIpmis [Lcom/vmware/vim25/PerfMetricId;qSpec Lcom/vmware/vim25/PerfQuerySpec;pValues([Lcom/vmware/vim25/PerfEntityMetricBase;
StackMapTable?java/lang/String?!com/vmware/vim25/mo/ManagedEntity???
s	
????getMOR+()Lcom/vmware/vim25/ManagedObjectReference;
s???	setEntity,(Lcom/vmware/vim25/ManagedObjectReference;)V
b??(I)V
s???setMaxSample(Ljava/lang/Integer;)V?csv
s?? 	setFormat
s???
setIntervalIdme	metricIds	maxSampleinterval
???%com/vmware/vim25/PerfEntityMetricBase??	getEntity
???'com/vmware/vim25/ManagedObjectReference?GgetType
??i?&(Ljava/lang/Object;)Ljava/lang/String;?:
???G	get_value?Entity:?!com/vmware/vim25/PerfEntityMetric
???printPerfMetric&(Lcom/vmware/vim25/PerfEntityMetric;)V?$com/vmware/vim25/PerfEntityMetricCSV
???printPerfMetricCSV)(Lcom/vmware/vim25/PerfEntityMetricCSV;)V?,UnExpected sub-type of PerfEntityMetricBase.valuesi
entityDesc
????getValue&()[Lcom/vmware/vim25/PerfMetricSeries;
????
getSampleInfo$()[Lcom/vmware/vim25/PerfSampleInfo;?Sampling Times and Intervales:?
Sample time: 
???com/vmware/vim25/PerfSampleInfo??getTimestamp()Ljava/util/Calendar;
???java/util/Calendar??getTime()Ljava/util/Date;
9?@?-(Ljava/lang/Object;)Ljava/lang/StringBuilder;?Sample interval (sec):
?fgetInterval
9@(I)Ljava/lang/StringBuilder;Sample values:Perf counter ID:

!com/vmware/vim25/PerfMetricSeries
getId!()Lcom/vmware/vim25/PerfMetricId;
com/vmware/vim25/PerfMetricIdfgetCounterIdDevice instance ID:
GgetInstance$com/vmware/vim25/PerfMetricIntSeries
?()[J
?i (J)Ljava/lang/String;" 
$% print'Total:)$com/vmware/vim25/PerfMetricSeriesCSV+
CSV value:
(-?Gpem#Lcom/vmware/vim25/PerfEntityMetric;vals$[Lcom/vmware/vim25/PerfMetricSeries;infos"[Lcom/vmware/vim25/PerfSampleInfo;jval&Lcom/vmware/vim25/PerfMetricIntSeries;longs[Jk&Lcom/vmware/vim25/PerfMetricSeriesCSV;138?SampleInfoCSV:
?ABGgetSampleInfoCSV
?D?E)()[Lcom/vmware/vim25/PerfMetricSeriesCSV;GPerfCounterId:
(JCSV sample values:pems&Lcom/vmware/vim25/PerfEntityMetricCSV;csvs'[Lcom/vmware/vim25/PerfMetricSeriesCSV;N
SourceFileRealtimePerfMonitor.java!/*??
6
	
?*??????!Y?#Y*2?%*2*2?'L*2M?*Y+?,?03,?5N-?&??9Y;?=,?>B?>?D?+?H?L?+?Q:-?U:?[?a6-?g?k:-?o:?sYS?u:		?	?y?}?h?h?????
?#:<>AB$A(D,E0F4E7G:F=E>IBKRLZK]MdNeQkTsU}XY?X?\?[?`?a?`?b?d?f?g?^f
???(???,???>???k]??sU??}K???<???1?????	?5?U!???1	?!??V\?s??qr?6?sY??:*?????bY????????bY?????
n	oru&w3y46??6??6??6??	-??{|*2???̶>?DM??9YϷ=,?>?D?*2?љ*2?Ѹӧ *2?י*2?׸٧?ݶ?*?????
2~??)?-?C?L?X?a?m?u~~? ??|??-H?????R????eF*??L*??M??>????9Y?=,2??????D???9Y??=,2????D??,?	,??????>?Ӳ?9Y?=+2?	???D???9Y?=+2?	??>?D?+2??]+2?:?:6?$??9Y/??=!?>?D?#????ڲ?9Y&?=???D??/+2?(?&+2?(:??9Y*?=?,?>?D??+?	+???)?
~??
???#?2?5?A?M?P?]?f?k?x??????????????????????????8?E?\	F./A01
<23I??h?4??R56?K78?,9?5:?'
?;<;?	?
?[= ?#+?	???i??9Y>?=*?@?>?D?*?CL=?A??9YF?=+2?H???D???9YI?=+2?,?>?D??+?????
6
?
????$?1?@?C?P?\?_?h? iKLJMN!G???
?$O=PQ




© 2015 - 2024 Weber Informatics LLC | Privacy Policy