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

com.vmware.vim25.mo.samples.SetHostTime.class Maven / Gradle / Ivy

The newest version!
????1?'com/vmware/vim25/mo/samples/SetHostTimejava/lang/Object()VCode
	LineNumberTableLocalVariableTablethis)Lcom/vmware/vim25/mo/samples/SetHostTime;main([Ljava/lang/String;)V
Exceptionsjava/lang/Exception	java/lang/SystemoutLjava/io/PrintStream;>Usage: java SetHostTime    
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
!+,-
getRootFolder()Lcom/vmware/vim25/mo/Folder;/&com/vmware/vim25/mo/InventoryNavigator
.12&(Lcom/vmware/vim25/mo/ManagedEntity;)V4
HostSystem
.678searchManagedEntityI(Ljava/lang/String;Ljava/lang/String;)Lcom/vmware/vim25/mo/ManagedEntity;:com/vmware/vim25/mo/HostSystem<java/lang/StringBuilder>Cannot find the host:
;&
;ABCappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;
;EFGtoString()Ljava/lang/String;
!IJKgetServerConnection(()Lcom/vmware/vim25/mo/ServerConnection;
MON$com/vmware/vim25/mo/ServerConnectionPlogout
9RSTgetHostDateTimeSystem*()Lcom/vmware/vim25/mo/HostDateTimeSystem;
VXW&com/vmware/vim25/mo/HostDateTimeSystemYZgetDateTimeInfo%()Lcom/vmware/vim25/HostDateTimeInfo;\The NTP Servers:
^`_!com/vmware/vim25/HostDateTimeInfoabgetNtpConfig"()Lcom/vmware/vim25/HostNtpConfig;
dfecom/vmware/vim25/HostNtpConfiggh	getServer()[Ljava/lang/String;jServer[
;lBm(I)Ljava/lang/StringBuilder;o]:q
Current Time Zone:
^stugetTimeZone/()Lcom/vmware/vim25/HostDateTimeSystemTimeZone;wKey:
y{z+com/vmware/vim25/HostDateTimeSystemTimeZone|GgetKey~Name:
y??GgetName?
GmtOffset:
y???getGmtOffset()I?Description:
y??GgetDescription
!???currentTime()Ljava/util/Calendar;?
Current time:
???java/util/Calendar??getTime()Ljava/util/Date;
;?B?-(Ljava/lang/Object;)Ljava/lang/StringBuilder;
????roll(IZ)V
V???updateDateTime(Ljava/util/Calendar;)V?Current time (after):args[Ljava/lang/String;si%Lcom/vmware/vim25/mo/ServiceInstance;hostnameLjava/lang/String;
rootFolderLcom/vmware/vim25/mo/Folder;host Lcom/vmware/vim25/mo/HostSystem;hdts(Lcom/vmware/vim25/mo/HostDateTimeSystem;info#Lcom/vmware/vim25/HostDateTimeInfo;cfg Lcom/vmware/vim25/HostNtpConfig;svrsiItz-Lcom/vmware/vim25/HostDateTimeSystemTimeZone;curTimeLjava/util/Calendar;
SourceFileSetHostTime.java!/*??
1
	??*??????!Y?#Y*2?%*2*2?'L*2M+?*N:?.Y-?03,?5?9:?!??;Y=??,?@?D?+?H?L??Q:?U:?[??]:?c:6	?*??;Yi??	?kn?@	2?@?D??	?	???ϲp??r:	??;Yv??	?x?@?D???;Y}??	??@?D???;Y???	???k?D???;Y???	???@?D?+??:
??;Y???
?????D?

??
??+??:
??;Y???
?????D?

??
??+?H?L?
?,579<=$<(?,@1A4B8C9B<CBBGELGbHiIjKqMxO?P?Q?R?T?R?W?X?Y?Z]%^?`Ea_cgdnftg?h?g?k?l?n?oz???(}??,y??1t??4q??q4??x-?????????7??	????	E`??
??




© 2015 - 2024 Weber Informatics LLC | Privacy Policy