Package com.vmware.events
Class VMEventHistoryCollectorMonitor
- java.lang.Object
-
- com.vmware.connection.ConnectedVimServiceBase
-
- com.vmware.events.VMEventHistoryCollectorMonitor
-
@Sample(name="vmevent-history-collector-monitor", description="This sample is responsible for creating EventHistoryCollector filtered for a single VM and monitoring Events using the latestPage attribute of the EventHistoryCollector.") public class VMEventHistoryCollectorMonitor extends ConnectedVimServiceBaseVMEventHistoryCollectorMonitor This sample is responsible for creating EventHistoryCollector filtered for a single VM and monitoring Events using the latestPage attribute of the EventHistoryCollector. Parameters: url [required] : url of the web service username [required] : username for the authentication password [required] : password for the authentication vmname [required] : virtual machine name Command Line: run.bat com.vmware.events.VMEventHistoryCollectorMonitor --url [webserviceurl] --username [username] --password [password] --vmname [vm name]
-
-
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 VMEventHistoryCollectorMonitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()voidsetVmName(java.lang.String name)-
Methods inherited from class com.vmware.connection.ConnectedVimServiceBase
basicConnectionFromConnection, connect, disconnect, getServiceInstanceReference, setConnection, setHostConnection
-
-
-
-
Method Detail
-
setVmName
@Option(name="vmname", description="virtual machine name") public void setVmName(java.lang.String name)
-
run
@Action public void run() throws com.vmware.vim25.RuntimeFaultFaultMsg, com.vmware.vim25.InvalidPropertyFaultMsg, com.vmware.vim25.InvalidStateFaultMsg- Throws:
com.vmware.vim25.RuntimeFaultFaultMsgcom.vmware.vim25.InvalidPropertyFaultMsgcom.vmware.vim25.InvalidStateFaultMsg
-
-