Class 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.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}]
     
    • Constructor Detail

      • VIUsage

        public VIUsage()
    • 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.InvocationTargetException
        java.lang.NoSuchMethodException
        java.lang.IllegalAccessException
        java.lang.InterruptedException
      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent event)
        Specified by:
        actionPerformed in interface java.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.InvocationTargetException
        java.lang.NoSuchMethodException
        java.lang.IllegalAccessException
        java.lang.InterruptedException