@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.ActionListener
VIUsage
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}]
ConnectedVimServiceBase.ConnectionExceptionPROP_ME_NAME, SVC_INST_NAME| Constructor and Description |
|---|
VIUsage() |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent event) |
void |
displayUsage() |
void |
run() |
void |
setCountername(java.lang.String countername) |
void |
setHostname(java.lang.String hostname) |
basicConnectionFromConnection, connect, disconnect, getServiceInstanceReference, setConnection, setHostConnection@Option(name="hostname") public void setHostname(java.lang.String hostname)
@Option(name="counter") public void setCountername(java.lang.String countername)
public void displayUsage()
throws java.lang.reflect.InvocationTargetException,
java.lang.NoSuchMethodException,
java.lang.IllegalAccessException,
java.lang.InterruptedException
java.lang.reflect.InvocationTargetExceptionjava.lang.NoSuchMethodExceptionjava.lang.IllegalAccessExceptionjava.lang.InterruptedExceptionpublic void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed in interface java.awt.event.ActionListener@Action
public void run()
throws java.lang.reflect.InvocationTargetException,
java.lang.NoSuchMethodException,
java.lang.IllegalAccessException,
java.lang.InterruptedException
java.lang.reflect.InvocationTargetExceptionjava.lang.NoSuchMethodExceptionjava.lang.IllegalAccessExceptionjava.lang.InterruptedException