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!
????1?)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;?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()IVirtual Machine updates:
? !iterator()Ljava/util/Iterator;#%$java/util/Iterator&'next()Ljava/lang/Object;
)*+handleObjectUpdate"(Lcom/vmware/vim25/ObjectUpdate;)V#-./hasNext()Z1
Host updates:	vmUpdatesLjava/util/ArrayList;hostUpdatespfus([Lcom/vmware/vim25/PropertyFilterUpdate;iIous [Lcom/vmware/vim25/ObjectUpdate;jvmiLjava/util/Iterator;
?@AgetChangeSet$()[Lcom/vmware/vim25/PropertyChange;
I	
DEFgetKind%()Lcom/vmware/vim25/ObjectUpdateKind;
IHPI-(Ljava/lang/Object;)Ljava/lang/StringBuilder;KData:
MNO
handleChanges%([Lcom/vmware/vim25/PropertyChange;)VoUpdateLcom/vmware/vim25/ObjectUpdate;"[Lcom/vmware/vim25/PropertyChange;
TVUcom/vmware/vim25/PropertyChangeWWgetName
TYZ'getVal
T\]^getOp%()Lcom/vmware/vim25/PropertyChangeOp;	`ba!com/vmware/vim25/PropertyChangeOpcdremove#Lcom/vmware/vim25/PropertyChangeOp;f  Property Name: hsummary.quickStatsj)com/vmware/vim25/VirtualMachineQuickStats
ilmngetOverallCpuUsage()Ljava/lang/Integer;punavailable
rUsjava/lang/Integer
iuvngetHostMemoryUsagex   Guest Status: 
iz{|getGuestHeartbeatStatus(()Lcom/vmware/vim25/ManagedEntityStatus;
~U$com/vmware/vim25/ManagedEntityStatus?   CPU Load %: ?   Memory Load %: ?*com/vmware/vim25/HostListSummaryQuickStats
?l
???ngetOverallMemoryUsage?*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;?#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???[??mnd$??Y??Y??SL+2*???+2???+?
???"?$???????޻?Y??L??Y??M*??N6?^-2??:6?D2??
;??+2?W?!2??
??
,2?W??????-????+??,?C?X+?:??"??(?,???,??,?C0?X,?:??"??(?,???
^?????$?*?=?J?^?h?s?}?????????????????????\	????23?43?56e78$O9:'L;8?<=?<=*+g'*?>L?C?IY?B*?C?GJ?N?T?X+?L?
??"?&?'PQ"?RNO?




© 2015 - 2024 Weber Informatics LLC | Privacy Policy