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

com.vmware.vim25.mo.samples.event.QueryEvents.class Maven / Gradle / Ivy

The newest version!
????2!-com/vmware/vim25/mo/samples/event/QueryEventsjava/lang/Object()VCode
	LineNumberTableLocalVariableTablethis/Lcom/vmware/vim25/mo/samples/event/QueryEvents;main([Ljava/lang/String;)V
Exceptionsjava/lang/Exception	java/lang/SystemoutLjava/io/PrintStream;3Usage: java QueryEvents   
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;
/10 com/vmware/vim25/mo/EventManager23getLatestEvent()Lcom/vmware/vim25/Event;
567
printEvent(Lcom/vmware/vim25/Event;)V9 com/vmware/vim25/EventFilterSpec
8	<java/lang/String>VmFailedToPowerOnEvent@HostConnectionLostEvent
8BCsetTypeEerrorGwarning
8IJsetCategoryL(com/vmware/vim25/EventFilterSpecByEntity
K	
!OPQ
getRootFolder()Lcom/vmware/vim25/mo/Folder;
SUTcom/vmware/vim25/mo/FolderVWgetMOR+()Lcom/vmware/vim25/ManagedObjectReference;
KYZ[	setEntity,(Lcom/vmware/vim25/ManagedObjectReference;)V	]_^/com/vmware/vim25/EventFilterSpecRecursionOption`achildren1Lcom/vmware/vim25/EventFilterSpecRecursionOption;
KcdesetRecursion4(Lcom/vmware/vim25/EventFilterSpecRecursionOption;)Vg&com/vmware/vim25/EventFilterSpecByTime
f	
!jklcurrentTime()Ljava/util/Calendar;
npojava/util/Calendarqrroll(IZ)V
ftuvsetBeginTime(Ljava/util/Calendar;)V
8xyzsetTime+(Lcom/vmware/vim25/EventFilterSpecByTime;)V|*com/vmware/vim25/EventFilterSpecByUsername
{	
{??
setSystemUser(Z)V?
administrator
{??setUserList
/???queryEvents=(Lcom/vmware/vim25/EventFilterSpec;)[Lcom/vmware/vim25/Event;?java/lang/StringBuilder?
Event #
?&
????append(I)Ljava/lang/StringBuilder;
????toString()Ljava/lang/String;
!???getServerConnection(()Lcom/vmware/vim25/mo/ServerConnection;
???$com/vmware/vim25/mo/ServerConnection?logoutargs[Ljava/lang/String;si%Lcom/vmware/vim25/mo/ServiceInstance;evtMgr"Lcom/vmware/vim25/mo/EventManager;latestEventLcom/vmware/vim25/Event;efs"Lcom/vmware/vim25/EventFilterSpec;eFilter*Lcom/vmware/vim25/EventFilterSpecByEntity;tFilter(Lcom/vmware/vim25/EventFilterSpecByTime;	startTimeLjava/util/Calendar;uFilter,Lcom/vmware/vim25/EventFilterSpecByUsername;events[Lcom/vmware/vim25/Event;iI
StackMapTable??com/vmware/vim25/Event?
???getClass()Ljava/lang/Class;
???java/lang/Class??getName
;???lastIndexOf(I)I
;???	substring(I)Ljava/lang/String;?Type:
????-(Ljava/lang/String;)Ljava/lang/StringBuilder;?Key:
????getKey()I?ChainId:
????
getChainId?User:
????getUserName?Time:
???lgetCreatedTime
n???getTime()Ljava/util/Date;
????-(Ljava/lang/Object;)Ljava/lang/StringBuilder;?FormattedMessage:
????getFullFormattedMessage
????
getDatacenter,()Lcom/vmware/vim25/DatacenterEventArgument;?Datacenter:
???(com/vmware/vim25/DatacenterEventArgument?W
???getComputeResource1()Lcom/vmware/vim25/ComputeResourceEventArgument;ComputeResource:
-com/vmware/vim25/ComputeResourceEventArgument?W
?	
getHost&()Lcom/vmware/vim25/HostEventArgument;Host:
"com/vmware/vim25/HostEventArgument	W
?getVm$()Lcom/vmware/vim25/VmEventArgument;VM:
 com/vmware/vim25/VmEventArgumentWevttypeNameLjava/lang/String;lastDot
SourceFileQueryEvents.java!/*??
1
	U*??????!Y?#Y*2?%*2*2?'L+?*M,?.N-?4?8Y?::?;Y=SY?S?A?;YDSYFS?H?KY?M:+?N?R?X?\?b?fY?h:+?i:?m?s?w?{Y?}:?~?;Y?S??,??:	6
?%???Y???
?????	
2?4?
	?
	????+?????
?$579<=$<(@-A2B6E?GLHOGRJeNlMnOzP|QP?T?U?V?W?X?[?Z?\?]?_?b?d?e?bhip??(???-???2???????n????}???w???Y???=??	?2??
?-???!/?8Kfn{?!?67?B*????L+.??=?+`??L???Yͷ?+?϶?????Yҷ?*?Զ???????Yط?*?ڶ???????Yݷ?*?߶϶?????Y??*?????????Y??*??϶??*??????Y???*???????*??? ???Y??*???????*?? ???Y??*??
????*?? ???Y??*???????
fqrsuw2xKydz}{?|?}?|?~??????????????????$?A? B?:3???;??### 




© 2015 - 2024 Weber Informatics LLC | Privacy Policy