Package com.vmware.general
Class GetCurrentTime
- java.lang.Object
-
- com.vmware.connection.ConnectedVimServiceBase
-
- com.vmware.general.GetCurrentTime
-
@Sample(name="get-current-time", description="This sample gets the current time of the vSphere Server") public class GetCurrentTime extends ConnectedVimServiceBaseGetCurrentTime This sample gets the current time of the vSphere Server Parameters: url [required] : url of the web service username [required] : username for the authentication password [required] : password for the authentication Command Line: run.bat com.vmware.general.GetCurrentTime --url [webservicesurl] --username [Username] --password [password]
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vmware.connection.ConnectedVimServiceBase
ConnectedVimServiceBase.ConnectionException
-
-
Field Summary
-
Fields inherited from class com.vmware.connection.ConnectedVimServiceBase
PROP_ME_NAME, SVC_INST_NAME
-
-
Constructor Summary
Constructors Constructor Description GetCurrentTime()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgetCurrentTime()This method retrieves the current time from the server and prints it.-
Methods inherited from class com.vmware.connection.ConnectedVimServiceBase
basicConnectionFromConnection, connect, disconnect, getServiceInstanceReference, setConnection, setHostConnection
-
-