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

com.vmware.vim25.mo.samples.vm.GetUpdates.class Maven / Gradle / Ivy

The newest version!
????2?)com/vmware/vim25/mo/samples/vm/GetUpdatesjava/lang/Object()VCode
	LineNumberTableLocalVariableTablethis+Lcom/vmware/vim25/mo/samples/vm/GetUpdates;main([Ljava/lang/String;)V
Exceptionsjava/lang/Exception*com/vmware/vim25/mo/util/CommandLineParser
constructOptions(()[Lcom/vmware/vim25/mo/util/OptionSpec;
<([Lcom/vmware/vim25/mo/util/OptionSpec;[Ljava/lang/String;)Vurl
 !
get_option&(Ljava/lang/String;)Ljava/lang/String;#username%password'vmname)#com/vmware/vim25/mo/ServiceInstance+java/net/URL
*-.(Ljava/lang/String;)V
(016(Ljava/net/URL;Ljava/lang/String;Ljava/lang/String;Z)V
(345
getRootFolder()Lcom/vmware/vim25/mo/Folder;7&com/vmware/vim25/mo/InventoryNavigator
69:&(Lcom/vmware/vim25/mo/ManagedEntity;)V<VirtualMachine
6>?@searchManagedEntityI(Ljava/lang/String;Ljava/lang/String;)Lcom/vmware/vim25/mo/ManagedEntity;B"com/vmware/vim25/mo/VirtualMachine	DFEjava/lang/SystemGHoutLjava/io/PrintStream;Jjava/lang/StringBuilderLVirtual Machine 
I-
IOPQappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;S
 Not Found
IUVWtoString()Ljava/lang/String;
Y[Zjava/io/PrintStream\.println^[Ljava/lang/String;`java/lang/Stringbnamedruntime
fhg.com/vmware/vim25/mo/util/PropertyCollectorUtilijbuildPropertySpecArray6([[Ljava/lang/String;)[Lcom/vmware/vim25/PropertySpec;
lmncreateObjectSpecsC(Lcom/vmware/vim25/mo/ManagedObject;)[Lcom/vmware/vim25/ObjectSpec;p#com/vmware/vim25/PropertyFilterSpec
o	
ostu
setPropSet#([Lcom/vmware/vim25/PropertySpec;)V
owxysetObjectSet!([Lcom/vmware/vim25/ObjectSpec;)V
({|}getPropertyCollector)()Lcom/vmware/vim25/mo/PropertyCollector;
??%com/vmware/vim25/mo/PropertyCollector??createFilterL(Lcom/vmware/vim25/PropertyFilterSpec;Z)Lcom/vmware/vim25/mo/PropertyFilter;?java/io/BufferedReader?java/io/InputStreamReader	D???inLjava/io/InputStream;
???(Ljava/io/InputStream;)V
???(Ljava/io/Reader;)V?
???checkForUpdates0(Ljava/lang/String;)Lcom/vmware/vim25/UpdateSet;
???com/vmware/vim25/UpdateSet??getFilterSet*()[Lcom/vmware/vim25/PropertyFilterUpdate;
???handleUpdate(Lcom/vmware/vim25/UpdateSet;)V
???W
getVersion?version is:?No update is present!?#
Press  to check for updates?(Enter 'exit'  to exit the program
???WreadLine
_??Wtrim?exit
_???equalsIgnoreCase(Ljava/lang/String;)Z
???"com/vmware/vim25/mo/PropertyFilter?destroyPropertyFilter
(???getServerConnection(()Lcom/vmware/vim25/mo/ServerConnection;
???$com/vmware/vim25/mo/ServerConnection?logoutargsclp,Lcom/vmware/vim25/mo/util/CommandLineParser;urlStrLjava/lang/String;si%Lcom/vmware/vim25/mo/ServiceInstance;
rootFolderLcom/vmware/vim25/mo/Folder;vm$Lcom/vmware/vim25/mo/VirtualMachine;typeInfo[[Ljava/lang/String;pSpecs [Lcom/vmware/vim25/PropertySpec;oSpecs[Lcom/vmware/vim25/ObjectSpec;pSpec%Lcom/vmware/vim25/PropertyFilterSpec;pc'Lcom/vmware/vim25/mo/PropertyCollector;pf$Lcom/vmware/vim25/mo/PropertyFilter;consoleLjava/io/BufferedReader;versionupdateLcom/vmware/vim25/UpdateSet;
StackMapTable?com/vmware/vim25/mo/Folder????com/vmware/vim25/ObjectSpec
?	
???!com/vmware/vim25/mo/ManagedObject??getMOR+()Lcom/vmware/vim25/ManagedObjectReference;
????setObj,(Lcom/vmware/vim25/ManagedObjectReference;)V	???java/lang/Boolean??FALSELjava/lang/Boolean;
????setSkip(Ljava/lang/Boolean;)Vmo#Lcom/vmware/vim25/mo/ManagedObject;java/util/ArrayList
	
%com/vmware/vim25/PropertyFilterUpdate	
getObjectSet"()[Lcom/vmware/vim25/ObjectUpdate;

com/vmware/vim25/ObjectUpdate?getObj
'com/vmware/vim25/ManagedObjectReferenceWgetType
_equals(Ljava/lang/Object;)Z
add
HostSystem
 !size()I#Virtual Machine updates:
%&'iterator()Ljava/util/Iterator;)+*java/util/Iterator,-next()Ljava/lang/Object;
/01handleObjectUpdate"(Lcom/vmware/vim25/ObjectUpdate;)V)345hasNext()Z7
Host updates:	vmUpdatesLjava/util/ArrayList;hostUpdatespfus([Lcom/vmware/vim25/PropertyFilterUpdate;iIous [Lcom/vmware/vim25/ObjectUpdate;jvmiLjava/util/Iterator;<@
GHIgetChangeSet$()[Lcom/vmware/vim25/PropertyChange;
I	
LMNgetKind%()Lcom/vmware/vim25/ObjectUpdateKind;
IPPQ-(Ljava/lang/Object;)Ljava/lang/StringBuilder;SData:
UVW
handleChanges%([Lcom/vmware/vim25/PropertyChange;)VoUpdateLcom/vmware/vim25/ObjectUpdate;"[Lcom/vmware/vim25/PropertyChange;
\^]com/vmware/vim25/PropertyChange_WgetName
\ab-getVal
\defgetOp%()Lcom/vmware/vim25/PropertyChangeOp;	hji!com/vmware/vim25/PropertyChangeOpklremove#Lcom/vmware/vim25/PropertyChangeOp;n  Property Name: psummary.quickStatsr)com/vmware/vim25/VirtualMachineQuickStats
qtuvgetOverallCpuUsage()Ljava/lang/Integer;xunavailable
zU{java/lang/Integer
q}~vgetHostMemoryUsage?   Guest Status: 
q???getGuestHeartbeatStatus(()Lcom/vmware/vim25/ManagedEntityStatus;
?U?$com/vmware/vim25/ManagedEntityStatus?   CPU Load %: ?   Memory Load %: ?*com/vmware/vim25/HostListSummaryQuickStats
?t
???vgetOverallMemoryUsage?*com/vmware/vim25/VirtualMachineRuntimeInfo?   Power State: 
????
getPowerState-()Lcom/vmware/vim25/VirtualMachinePowerState;
?U?)com/vmware/vim25/VirtualMachinePowerState?   Connection State: 
????getConnectionState2()Lcom/vmware/vim25/VirtualMachineConnectionState;
?U?.com/vmware/vim25/VirtualMachineConnectionState
????getBootTime()Ljava/util/Calendar;?   Boot Time: 
???java/util/Calendar??getTime()Ljava/util/Date;
????getMemoryOverhead()Ljava/lang/Long;?   Memory Overhead: ? com/vmware/vim25/HostRuntimeInfo
????.()Lcom/vmware/vim25/HostSystemConnectionState;
?U?*com/vmware/vim25/HostSystemConnectionState
???   
U?Property Name: ? value removed.changesvalueLjava/lang/Object;opvmqs+Lcom/vmware/vim25/VirtualMachineQuickStats;cpumemoryhsqs,Lcom/vmware/vim25/HostListSummaryQuickStats;vmri,Lcom/vmware/vim25/VirtualMachineRuntimeInfo;bTimeLjava/util/Calendar;	mOverheadLjava/lang/Long;hri"Lcom/vmware/vim25/HostRuntimeInfo;Z?java/lang/Long?#com/vmware/vim25/mo/util/OptionSpec?String?Name of the virtual machine
???L(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;)V
SourceFileGetUpdates.java!/*??
K
	X?Y?*?L+?M+"?N+$?:+&?:?(Y?*Y,?,-?/:?2:?6Y?8;?=?A:? ?C?IYK?M?NR?N?T?X??]Y?_Y;SYaSYcSS:		?e:
?k:?oY?q:
?r?v?z:

?~:??Y??Y??????:?:
??:?1???)????:?C?IY??M?N?T?X??C??X?C??X?C??X???????????????±
?!PQRS"T*V?WFX[Z`\|]}d?f?g?h?i?j?l?m?o?p?s?t?vwx"|*2?:?J?O?W??X?^L??E??>#?"6%?*.'????F??[???????	????
????????????
?????v???r???[???e?}	]____(?A?h]____(?A???o??_?;?mnd$??Y??Y??SL+2*???+2????+?
???"?$?????޻Y?L?Y?M*??N6?^-2?:6?D2??;??+2?W?!2????
,2?W??????-????+??,?C"?X+?$:??(??.?2???,??,?C6?X,?$:??(??.?2???
^?????$?*?=?J?^?h?s?}?????????????????????\	????89?:9?;<e=>$O?@'LA>?BC?BC?G??D?E?
??D)?	?)?	01g'*?FL?C?IY?J*?K?OR?N?T?X+?T?
??"?&?'XY"?ZVWo??b????y?lQ???ii???Q???`???H??0??X????G??? ???E?? ???c??Y?_hqG_?_G_?R??G_?_G_?1?x???#???Q"?
A
??Y??Y&????S?

??




© 2015 - 2024 Weber Informatics LLC | Privacy Policy