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

com.vmware.vim25.mo.samples.storage.SearchDatastore.class Maven / Gradle / Ivy

The newest version!
????2U3com/vmware/vim25/mo/samples/storage/SearchDatastorejava/lang/Object()VCode
	LineNumberTableLocalVariableTablethis5Lcom/vmware/vim25/mo/samples/storage/SearchDatastore;main([Ljava/lang/String;)V
Exceptionsjava/lang/Exception	java/lang/SystemoutLjava/io/PrintStream;7Usage: java SearchDatastore   
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+
10.20.143.205-[storage1 (2)]
!/01
getRootFolder()Lcom/vmware/vim25/mo/Folder;3&com/vmware/vim25/mo/InventoryNavigator
256&(Lcom/vmware/vim25/mo/ManagedEntity;)V8
HostSystem
2:;<searchManagedEntityI(Ljava/lang/String;Ljava/lang/String;)Lcom/vmware/vim25/mo/ManagedEntity;>com/vmware/vim25/mo/HostSystem@Host not found
!BCDgetServerConnection(()Lcom/vmware/vim25/mo/ServerConnection;
FHG$com/vmware/vim25/mo/ServerConnectionIlogout
=KLMgetDatastoreBrowser,()Lcom/vmware/vim25/mo/HostDatastoreBrowser;O%print out the names of the datastores
QSR(com/vmware/vim25/mo/HostDatastoreBrowserTU
getDatastores"()[Lcom/vmware/vim25/mo/Datastore;Wjava/lang/StringBuilderY
datastore[
V&
V\]^append(I)Ljava/lang/StringBuilder;`]:
Vb]c-(Ljava/lang/String;)Ljava/lang/StringBuilder;
VefgtoString()Ljava/lang/String;
ikjcom/vmware/vim25/mo/DatastorelmgetInfo"()Lcom/vmware/vim25/DatastoreInfo;oName:
qsrcom/vmware/vim25/DatastoreInfotggetNamev
FreeSpace:
qxyzgetFreeSpace()J
V|]}(J)Ljava/lang/StringBuilder;MaxFileSize:
q??zgetMaxFileSize?print out supported query types
Q???getSupportedType()[Lcom/vmware/vim25/FileQuery;?
FileQuery[?]=
???getClass()Ljava/lang/Class;
?s?java/lang/Class?/com/vmware/vim25/HostDatastoreBrowserSearchSpec
?	?com/vmware/vim25/FileQuery? com/vmware/vim25/VmDiskFileQuery
?	
????setQuery ([Lcom/vmware/vim25/FileQuery;)V?com/vmware/vim25/FileQueryFlags
?	
????setFileSize(Z)V
????setModification
????
setDetails$(Lcom/vmware/vim25/FileQueryFlags;)V
???java/lang/Boolean??valueOf(Z)Ljava/lang/Boolean;
????setSearchCaseInsensitive(Ljava/lang/Boolean;)V?java/lang/String?sdk*.*
???setMatchPattern
Q???searchDatastoreSubFolders_Task_(Ljava/lang/String;Lcom/vmware/vim25/HostDatastoreBrowserSearchSpec;)Lcom/vmware/vim25/mo/Task;
???com/vmware/vim25/mo/Task?g	waitForMe?success
????getTaskInfo()Lcom/vmware/vim25/TaskInfo;
???com/vmware/vim25/TaskInfo??	getResult()Ljava/lang/Object;?9com/vmware/vim25/ArrayOfHostDatastoreBrowserSearchResults
????$getHostDatastoreBrowserSearchResults7()[Lcom/vmware/vim25/HostDatastoreBrowserSearchResults;?
Folder:
???2com/vmware/vim25/HostDatastoreBrowserSearchResults?g
getFolderPath
????getFile()[Lcom/vmware/vim25/FileInfo;?Path:
???com/vmware/vim25/FileInfo?ggetPath?	FileSize:
????getFileSize()Ljava/lang/Long;
V?]?-(Ljava/lang/Object;)Ljava/lang/StringBuilder;?	Modified:
????getModification()Ljava/util/Calendar;
???java/util/Calendar?getTime()Ljava/util/Date;com/vmware/vim25/VmDiskFileInfo
printExtraDiskFileInfo$(Lcom/vmware/vim25/VmDiskFileInfo;)Vargs[Ljava/lang/String;si%Lcom/vmware/vim25/mo/ServiceInstance;hostnameLjava/lang/String;
datastorePath
rootFolderLcom/vmware/vim25/mo/Folder;host Lcom/vmware/vim25/mo/HostSystem;hdb*Lcom/vmware/vim25/mo/HostDatastoreBrowser;ds [Lcom/vmware/vim25/mo/Datastore;iIdi Lcom/vmware/vim25/DatastoreInfo;fqs[Lcom/vmware/vim25/FileQuery;hdbss1Lcom/vmware/vim25/HostDatastoreBrowserSearchSpec;fqf!Lcom/vmware/vim25/FileQueryFlags;taskLcom/vmware/vim25/mo/Task;objLjava/lang/Object;results5[Lcom/vmware/vim25/HostDatastoreBrowserSearchResults;result4Lcom/vmware/vim25/HostDatastoreBrowserSearchResults;fis[Lcom/vmware/vim25/FileInfo;j
StackMapTable.com/vmware/vim25/mo/Folder%)4CapacityKB:
67?
getCapacityKb9ControllerType:
;<ggetControllerType>	DiskType:
@AggetDiskTypeCDiskExtents:
EFGgetDiskExtents()[Ljava/lang/String;
?I?J&(Ljava/lang/Object;)Ljava/lang/String;L 
NO printinfo!Lcom/vmware/vim25/VmDiskFileInfo;exts
SourceFileSearchDatastore.java!/*??
8
	6?*??????!Y?#Y*2?%*2*2?'L*M,N+?.::?2Y?47,?9?=:????+?A?E??J:?N??P:6?z??VYX?Z?[_?a?d?2?h:	??VYn?Z	?p?a?d???VYu?Z	?w?{?d???VY~?Z	???{?d???????????:6	?0??VY??Z	?[??a	2?????a?d??	?	???ɻ?Y??:		??Y??Y??S????Y??:

??
??	
??	????	??Y?S??-	??:??Ȧ??ʶ?:?ԙ??Զ?:
6??
2:??VYڷZ?ܶa?d???:6?v??VY?Z2??a?d???VY?Z2???d???VY??Z2??????d?2??2?????????
???J+?A?E?
.K<>@CD$C(F+G.I4J7L;M=L@MFLKOPQXR_S`VgXoYvZ|\?]?^?_?`?Zcdeg+h<g?eOlVkXmkntozp?q?r?s?u?v?u?w?y?z?~?}?~?|????????????????+?9?<?H?Y?\?g?r?????????(m	
+j.g
4a7^g.vy??N	?=	X=	t!
?? !??"#??$%
????&'??()??*+??P,!??-=?Q/?v??0,???,!??-=Q/0???1?-?2?o???????VY3?Z*?5??d???VY8?Z*?:?a?d???VY=?Z*???a?d??B?*?DL=?"??VY+2?H?ZK?a?d?M?+???ޱ
.??'?1?4?N?W?\?a?}??? ?PQ\+R^(+
?a,ST




© 2015 - 2024 Weber Informatics LLC | Privacy Policy