Package com.vmware.performance
Class VITop
- java.lang.Object
-
- com.vmware.connection.ConnectedVimServiceBase
-
- com.vmware.performance.VITop
-
@Sample(name="vi-top", description="an ESX-Top-like application that lets administrators specify the CPU and memory counters by name to obtain metrics for a specified host") public class VITop extends ConnectedVimServiceBaseVITop This sample is an ESX-Top-like application that lets administrators specify the CPU and memory counters by name to obtain metrics for a specified host Parameters: url [required] : url of the web service username [required] : username for the authentication password [required] : password for the authentication host [required] : name of the host cpu [required] : CPU counter name e.g. usage, ready, guaranteed memory [required] : memory counter name e.g. usage, granted Command Line: run.bat com.vmware.performance.VITop --url [webservice url] --username [user] --password [password] --host [FQDN_host_name] --cpu [cpu_counter_name] --memory [mem_counter_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 VITop()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()voidsetCpu(java.lang.String cpu)voidsetHostname(java.lang.String hostname)voidsetMemory(java.lang.String memory)-
Methods inherited from class com.vmware.connection.ConnectedVimServiceBase
basicConnectionFromConnection, connect, disconnect, getServiceInstanceReference, setConnection, setHostConnection
-
-
-
-
Method Detail
-
setHostname
@Option(name="host", description="name of the host") public void setHostname(java.lang.String hostname)
-
setCpu
@Option(name="cpu", description="CPU counter name [usage|ready|guaranteed]") public void setCpu(java.lang.String cpu)
-
setMemory
@Option(name="memory", description="memory counter name [usage|granted]") public void setMemory(java.lang.String memory)
-
run
@Action public void run() throws com.vmware.vim25.RuntimeFaultFaultMsg, java.lang.reflect.InvocationTargetException, java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.InterruptedException- Throws:
com.vmware.vim25.RuntimeFaultFaultMsgjava.lang.reflect.InvocationTargetExceptionjava.lang.NoSuchMethodExceptionjava.lang.IllegalAccessExceptionjava.lang.InterruptedException
-
-