Package com.vmware.performance
Class VIUsage
- java.lang.Object
-
- com.vmware.connection.ConnectedVimServiceBase
-
- com.vmware.performance.VIUsage
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.util.EventListener
@Sample(name="vi-usage", description="This sample creates a GUI for graphical representation of the counters") public class VIUsage extends ConnectedVimServiceBase implements java.awt.event.ActionListenerVIUsage This sample creates a GUI for graphical representation of the counters 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 counter [required] : Full counter name in dotted notation (group.counter.rollup) e.g. cpu.usage.none Command Line: run.bat com.vmware.performance.VIUsage --url [webserviceurl] --username [username] --password [password] --host [host name] --counter [Counter_type {group.counter.rollup}]
-
-
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 VIUsage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent event)voiddisplayUsage()voidrun()voidsetCountername(java.lang.String countername)voidsetHostname(java.lang.String hostname)-
Methods inherited from class com.vmware.connection.ConnectedVimServiceBase
basicConnectionFromConnection, connect, disconnect, getServiceInstanceReference, setConnection, setHostConnection
-
-
-
-
Method Detail
-
setHostname
@Option(name="hostname") public void setHostname(java.lang.String hostname)
-
setCountername
@Option(name="counter") public void setCountername(java.lang.String countername)
-
displayUsage
public void displayUsage() throws java.lang.reflect.InvocationTargetException, java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.InterruptedException- Throws:
java.lang.reflect.InvocationTargetExceptionjava.lang.NoSuchMethodExceptionjava.lang.IllegalAccessExceptionjava.lang.InterruptedException
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent event)
- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener
-
run
@Action public void run() throws java.lang.reflect.InvocationTargetException, java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.InterruptedException- Throws:
java.lang.reflect.InvocationTargetExceptionjava.lang.NoSuchMethodExceptionjava.lang.IllegalAccessExceptionjava.lang.InterruptedException
-
-