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

com.vmware.vim25.mo.samples.ext.ExtMgrUtil.class Maven / Gradle / Ivy

The newest version!
????2Q*com/vmware/vim25/mo/samples/ext/ExtMgrUtiljava/lang/Object()VCode
	LineNumberTableLocalVariableTablethis,Lcom/vmware/vim25/mo/samples/ext/ExtMgrUtil;main([Ljava/lang/String;)V
Exceptionsjava/lang/Exception	java/lang/SystemoutLjava/io/PrintStream;-Usage: java ExtMgrUtil [properties_file_path]
java/io/PrintStream println(Ljava/lang/String;)V"MSince no properties file is specified, we will search for it in current path.$extension.properties
&'(readProperties*(Ljava/lang/String;)Ljava/util/Properties;
*+,exit(I)V.java/net/URL0url
243java/util/Properties56getProperty&(Ljava/lang/String;)Ljava/lang/String;
-8 :userName<password>	operation@keyStrB#com/vmware/vim25/mo/ServiceInstance
ADE6(Ljava/net/URL;Ljava/lang/String;Ljava/lang/String;Z)V
AGHIgetExtensionManager(()Lcom/vmware/vim25/mo/ExtensionManager;Kregister
MONjava/lang/StringPQequalsIgnoreCase(Ljava/lang/String;)Z
SUT$com/vmware/vim25/mo/ExtensionManagerVW
findExtension0(Ljava/lang/String;)Lcom/vmware/vim25/Extension;Yjava/lang/StringBuilder[Plugin key: 
X8
X^_`append-(Ljava/lang/String;)Ljava/lang/StringBuilder;b$ is used. Please try with a new key.
XdeftoString()Ljava/lang/String;
hijcreateExtensionObject4(Ljava/util/Properties;)Lcom/vmware/vim25/Extension;
SlmnregisterExtension(Lcom/vmware/vim25/Extension;)VpPlugin: r" has been successfully registered.tupdate
SvwnupdateExtensiony has been successfully updated.{@The plugin doesn't exist. Please register it before updating it.}listall
S??getExtensionList()[Lcom/vmware/vim25/Extension;
???printAllExtensions ([Lcom/vmware/vim25/Extension;)V?
unregister
S?? unregisterExtension?% has been successfully un-registered.?* does NOT exist. No need to unregister it.?find? is registered.? can NOT be found.?*Operation is not valide. Please try again.
A???getServerConnection(()Lcom/vmware/vim25/mo/ServerConnection;
???$com/vmware/vim25/mo/ServerConnection?logoutargs[Ljava/lang/String;filenameLjava/lang/String;propsLjava/util/Properties;Ljava/net/URL;si%Lcom/vmware/vim25/mo/ServiceInstance;extMgr&Lcom/vmware/vim25/mo/ExtensionManager;extLcom/vmware/vim25/Extension;
StackMapTable?
2	?java/io/FileInputStream
?8
2???load(Ljava/io/InputStream;)V?Properties file ?% does NOT exist. Please double check.
???close
???java/io/IOException?printStackTrace?3Please check the parameters in the properties file ?java/io/FileNotFoundExceptionfisLjava/io/FileInputStream;fnfeLjava/io/FileNotFoundException;ioeLjava/io/IOException;?java/lang/Throwable?
companyStr?descStr?extUrl?
adminEmail?version?com/vmware/vim25/Description
?	
??? setLabel
??? 
setSummary?$com/vmware/vim25/ExtensionServerInfo
?	
????setDescription!(Lcom/vmware/vim25/Description;)V
??? setUrl
??? 
setCompany?com.vmware.vim.viClientScripts
??? setType
???
setAdminEmail?$com/vmware/vim25/ExtensionClientInfo
?	
??
??
??
??? 
setVersion
??com/vmware/vim25/Extension
	
	setServer*([Lcom/vmware/vim25/ExtensionServerInfo;)V
	
	setClient*([Lcom/vmware/vim25/ExtensionClientInfo;)V
?
 setKey
?
java/util/CalendargetInstance()Ljava/util/Calendar;
setLastHeartbeatTime(Ljava/util/Calendar;)VdescriptionLcom/vmware/vim25/Description;esi&Lcom/vmware/vim25/ExtensionServerInfo;eci&Lcom/vmware/vim25/ExtensionClientInfo;"There are totally 
X$_%(I)Ljava/lang/StringBuilder;' plugin(s) registered.)
 --- Plugin # + --- -Key: 
/0fgetKey2	Version: 
45f
getVersion7Registration Time: 
9:getLastHeartbeatTime
<=>getTime()Ljava/util/Date;
X@_A-(Ljava/lang/Object;)Ljava/lang/StringBuilder;CConfiguration URL: 
EFG	getServer)()[Lcom/vmware/vim25/ExtensionServerInfo;
?IJfgetUrlexts[Lcom/vmware/vim25/Extension;iI
SourceFileExtMgrUtil.java!/*??
3
	??L*?????!?#L?*2L+?%M,??)?-Y,/?1?7N,9?1:,;?1:,=?1:,??1:?AY-?C:?F:	J?L?X	?R?"??XYZ?\?]a?]?c??B,?g:
	
?k??XYo?\?]q?]?c??s?L?D	?R?/,?g:
	
?u??XYo?\?]x?]?c??ֲz???|?L?	?~??????L?R	?R?)	????XYo?\?]??]?c??|??XYo?\?]??]?c??]??L?K	?R?"??XYo?\?]??]?c??*??XYo?\?]??]?c??????????
?:89;=?C!G&H*J.N<ODPLQTR\T`UfTkVrX|Z?\?]?\?a?b?c?d?c?g?i?k?l?mnmrv&x1z;|E~L]?ek?|?????????????????????????z??????&???<?0?D?:?L?<?T?>?\?@?k???r{??	?#??
?&??
?A?M?2?v
?M2-MMMMAS(?92'(:??2Y??LM??Y*??M+??Y*?????jN??XY??\*?]??]?c?,?,???:?N-????XY÷\*?]?c?,?,???:?:,?,???:?,?,???:+?
"?BFI?
M?lps?
>wMhw}???????
z??
??"?#?3?;?>?B?I?K?M?N?R?^?e?h?l?s?u?w?y?}?????????????4??????
???#*??N)?????"M2???&M2????M2???%M2????M2???M2????M2?J?ij??*϶1L*Ѷ1M*??1N*Ӷ1:*ն1:*׶1:??Y??:-??,?߻?Y??:????+?????MYS????Y??:		+??	??	??	??	??Y?:

??YS?
??Y	S?
?
-?

?
??
?
v?????%?-?6?<?B?K?R?Y?_?f?t?}?????????????????????????p??????????@????%???-???6?K?}f 	?;??
??FȲ?XY!?\*??#&?]?c??
???#?B?^?z????????????????KL ?MN??#???	OP




© 2015 - 2024 Weber Informatics LLC | Privacy Policy