com.vmware.apputils
Class ClientUtil

java.lang.Object
  extended by com.vmware.apputils.ClientUtil

public class ClientUtil
extends java.lang.Object


Constructor Summary
ClientUtil(AppUtil c)
           
 
Method Summary
 int getIntInput(java.lang.String prompt, int defaultVal)
           
 long getLongInput(java.lang.String prompt, long defaultVal)
           
 java.lang.String getStrInput(java.lang.String prompt)
           
 void logException(java.lang.Exception e)
          Log the Exception - fault or otherwise TODO: Enhance to handle different detail contents.
 void logFault(com.vmware.vim.MethodFault mf)
          Log a fault.
 void printUsage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientUtil

public ClientUtil(AppUtil c)
Method Detail

printUsage

public void printUsage()

getIntInput

public int getIntInput(java.lang.String prompt,
                       int defaultVal)
                throws java.lang.Exception
Throws:
java.lang.Exception

getLongInput

public long getLongInput(java.lang.String prompt,
                         long defaultVal)
                  throws java.lang.Exception
Throws:
java.lang.Exception

getStrInput

public java.lang.String getStrInput(java.lang.String prompt)
                             throws java.lang.Exception
Throws:
java.lang.Exception

logException

public void logException(java.lang.Exception e)
Log the Exception - fault or otherwise TODO: Enhance to handle different detail contents.


logFault

public void logFault(com.vmware.vim.MethodFault mf)
Log a fault.