Software: Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.12 with Suhosin-Patch mod_ssl/2.2.8 OpenSSL/0.9.8g. PHP/5.2.4-2ubuntu5.12 uname -a: Linux forum.circlefusion.com 2.6.24-19-server #1 SMP Wed Jun 18 15:18:00 UTC 2008 i686 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/lib/vmware-tools/GuestSDK/vmGuestLibJava/doc/ drwxr-xr-x |
Viewing file: overview-summary.html (7.27 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
VMware Guest API
See:
These Java classes provide support for using the VMware Guest API in a Java programming environment. Please see the VMware Guest SDK documentation for an overview and detailed description of the VMware Guest API. The following code demonstrates how to use the API from within a Java program: try { VMGuestLibInterface handle = VMGuestLibHandle.open(); // First refresh the information for this handle handle.updateInfo(); // Query and print some information long hostProcessorMhz = handle.getHostProcessorSpeed(); long vmMemSizeMB = handle.getMemSizeMB(); BigInteger elapsedMs = handle.getElapsedMs(); System.out.println("Host physical processor speed (mhz): " + hostProcessorMhz); System.out.println("Configured memory size (MB): " + vmMemSizeMB); System.out.println("Elapsed uptime (ms): " + elapsedMs); // We're done with the handle, so close it handle.close(); // No further operations are allowed on a handle once it has been // closed, so this will generate an exception handle.updateInfo(); } catch (VMGuestLibErrorException e) { System.err.println("VMGuestLib API Error: " + e); } To use the VMware Guest API from within a Java program, the class archive and JNI support library must be available to the Java environment along with the VMware Guest API run-time component library. The specific files required depend on the guest operating system, as summarized in the following table:
|
|
||||||||
PREV NEXT | FRAMES NO FRAMES |
:: Command execute :: | |
--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0053 ]-- |