com.vmware.vim25.mo.samples.event.QueryHistoricalEvents.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 ? 7com/vmware/vim25/mo/samples/event/QueryHistoricalEvents java/lang/Object ()V Code
LineNumberTable LocalVariableTable this 9Lcom/vmware/vim25/mo/samples/event/QueryHistoricalEvents; main ([Ljava/lang/String;)V
Exceptions java/lang/Exception java/lang/System out Ljava/io/PrintStream; =Usage: java QueryHistoricalEvents
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
! + , - getEventManager $()Lcom/vmware/vim25/mo/EventManager; / com/vmware/vim25/EventFilterSpec
.
2 4 3 com/vmware/vim25/mo/EventManager 5 6 createCollectorForEvents O(Lcom/vmware/vim25/EventFilterSpec;)Lcom/vmware/vim25/mo/EventHistoryCollector;
8 : 9 )com/vmware/vim25/mo/EventHistoryCollector ; <
getLatestPage ()[Lcom/vmware/vim25/Event;
> ? @ printEvents ([Lcom/vmware/vim25/Event;I)V B
Before Latest Page:
8 D E resetCollector
8 G H I readPreviousEvents (I)[Lcom/vmware/vim25/Event;
! K L M getServerConnection (()Lcom/vmware/vim25/mo/ServerConnection;
O Q P $com/vmware/vim25/mo/ServerConnection R logout args [Ljava/lang/String; si %Lcom/vmware/vim25/mo/ServiceInstance; evtMgr "Lcom/vmware/vim25/mo/EventManager; eventFilter "Lcom/vmware/vim25/EventFilterSpec; ehc +Lcom/vmware/vim25/mo/EventHistoryCollector; total I
latestEvts [Lcom/vmware/vim25/Event; events
StackMapTable T ` f java/lang/StringBuilder h Event[
e &
e k l m append (I)Ljava/lang/StringBuilder; o ]=
e q l r -(Ljava/lang/String;)Ljava/lang/StringBuilder;
t u v getClass ()Ljava/lang/Class;
x z y java/lang/Class { | getName ()Ljava/lang/String;
e ~ | toString ? Event:
? ? ? com/vmware/vim25/Event ? ? getCreatedTime ()Ljava/util/Calendar;
? ? ? java/util/Calendar ? ? getTime ()Ljava/util/Date;
e ? l ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; i
SourceFile QueryHistoricalEvents.java ! / *? ?
-
? ?*?? ? ? ?? !Y? #Y*2? %*2*2? 'L+? *M,? c? .Y? 0N,-? 1:6? 7:? =? ? ?`6? A? ? C2? F:? ? ? =?`6???+? J? N?
f 1 3 5 8 9 $ 8 ( ; - = 1 ? 9 A > @ @ C C E J F P G a I i J n M w N | P R ? S ? K ? V ? W R ? S T ( q U V - l W X 9 X Y Z @ Q [ \ C N ] ^ J G _ ` w a ` b Q ? K c ! 2 . 8 d ? c ! 2 . 8 d ? d? c ! 2 ? @ ? V=? M? ? eYg? i`? jn? p*2? s? w? p? }? ? ? eY?? i*2? ?? ?? ?? }? ?*?????
[ ] . ^ L [ U ` V a ` V ] ^ S ? ^ b ? ? I ? ?