com.vmware.vim25.mo.samples.perf.PrintPerfMgr.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vijava Show documentation
Show all versions of vijava Show documentation
Java API for accessing VMWare web services API
The newest version!
???? 2 ? -com/vmware/vim25/mo/samples/perf/PrintPerfMgr java/lang/Object ()V Code
LineNumberTable LocalVariableTable this /Lcom/vmware/vim25/mo/samples/perf/PrintPerfMgr; main ([Ljava/lang/String;)V
Exceptions java/lang/Exception java/lang/System out Ljava/io/PrintStream; 4Usage: java PrintPerfMgr
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
! + , - getPerformanceManager *()Lcom/vmware/vim25/mo/PerformanceManager; / ***Print All Descriptions:
1 3 2 &com/vmware/vim25/mo/PerformanceManager 4 5 getDescription +()Lcom/vmware/vim25/PerformanceDescription;
7 8 9 printPerfDescription ,(Lcom/vmware/vim25/PerformanceDescription;)V ; #
***Print All Historical Intervals:
1 = > ? getHistoricalInterval "()[Lcom/vmware/vim25/PerfInterval;
A B C printPerfIntervals #([Lcom/vmware/vim25/PerfInterval;)V E
***Print All Perf Counters:
1 G H I getPerfCounter %()[Lcom/vmware/vim25/PerfCounterInfo;
K L M printPerfCounters &([Lcom/vmware/vim25/PerfCounterInfo;)V
! O P Q getServerConnection (()Lcom/vmware/vim25/mo/ServerConnection;
S U T $com/vmware/vim25/mo/ServerConnection V logout args [Ljava/lang/String; si %Lcom/vmware/vim25/mo/ServiceInstance; perfMgr (Lcom/vmware/vim25/mo/PerformanceManager; pd )Lcom/vmware/vim25/PerformanceDescription; pis [Lcom/vmware/vim25/PerfInterval; pcis #[Lcom/vmware/vim25/PerfCounterInfo;
StackMapTable e java/lang/StringBuilder g
PerfInterval #
d &
d j k l append (I)Ljava/lang/StringBuilder;
d n o p toString ()Ljava/lang/String; r java/lang/StringBuffer
q u Name:
w y x com/vmware/vim25/PerfInterval z p getName
d | k } -(Ljava/lang/String;)Ljava/lang/StringBuilder;
q k ? ,(Ljava/lang/String;)Ljava/lang/StringBuffer; ?
Key:
w ? ? ? getKey ()I ?
Level:
w ? ? ? getLevel ()Ljava/lang/Integer;
d ? k ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ?
SamplingPeriod:
w ? ? ? getSamplingPeriod ?
Length:
w ? ? ? getLength ?
Enabled:
w ? ? ? isEnabled ()Z
d ? k ? (Z)Ljava/lang/StringBuilder;
? ? (Ljava/lang/Object;)V i I sb Ljava/lang/StringBuffer;
? ? ? com/vmware/vim25/PerfCounterInfo
? ? ? ? getGroupInfo '()Lcom/vmware/vim25/ElementDescription;
? ? ? #com/vmware/vim25/ElementDescription ? p
? ? ? java/lang/String ? ? valueOf &(Ljava/lang/Object;)Ljava/lang/String; ? .
? ? ? ? getNameInfo
? ? ? ?
getRollupType $()Lcom/vmware/vim25/PerfSummaryType; ? PerfCounter: ? Level:
? ? ?
StatsType:
? ? ? ? getStatsType "()Lcom/vmware/vim25/PerfStatsType; ? UnitInfo:
? ? ? ? getUnitInfo perfCounter Ljava/lang/String;
? ? ? 'com/vmware/vim25/PerformanceDescription ? ? getCounterType (()[Lcom/vmware/vim25/ElementDescription;
? ? ? printElementDescriptions )([Lcom/vmware/vim25/ElementDescription;)V
? ? ? ? eds &[Lcom/vmware/vim25/ElementDescription;
statsTypes
? ? ? printElementDescription ((Lcom/vmware/vim25/ElementDescription;)V ? Label:
? ? ? p getLabel ? Summary:
? ? ? p
getSummary ed %Lcom/vmware/vim25/ElementDescription;
SourceFile PrintPerfMgr.java ! / *? ?
.
l*?? ? ? ?? !Y? #Y*2? %*2*2? 'L+? *M? .? ,? 0N-? 6? :? ,? <:? @? D? ,? F:? J+? N? R?
J 2 4 6 9 : $ 9 ( <