org.hyperic.sigar.vmware
Class VM
java.lang.Object
   org.hyperic.sigar.vmware.VM
org.hyperic.sigar.vmware.VM
- public class VM 
- extends java.lang.Object
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
EXECUTION_STATE_ON
public static final int EXECUTION_STATE_ON
- See Also:
- Constant Field Values
EXECUTION_STATE_OFF
public static final int EXECUTION_STATE_OFF
- See Also:
- Constant Field Values
EXECUTION_STATE_SUSPENDED
public static final int EXECUTION_STATE_SUSPENDED
- See Also:
- Constant Field Values
EXECUTION_STATE_STUCK
public static final int EXECUTION_STATE_STUCK
- See Also:
- Constant Field Values
EXECUTION_STATE_UNKNOWN
public static final int EXECUTION_STATE_UNKNOWN
- See Also:
- Constant Field Values
EXECUTION_STATES
public static final java.lang.String[] EXECUTION_STATES
POWEROP_MODE_HARD
public static final int POWEROP_MODE_HARD
- See Also:
- Constant Field Values
POWEROP_MODE_SOFT
public static final int POWEROP_MODE_SOFT
- See Also:
- Constant Field Values
POWEROP_MODE_TRYSOFT
public static final int POWEROP_MODE_TRYSOFT
- See Also:
- Constant Field Values
PRODUCT_WS
public static final int PRODUCT_WS
- See Also:
- Constant Field Values
PRODUCT_GSX
public static final int PRODUCT_GSX
- See Also:
- Constant Field Values
PRODUCT_ESX
public static final int PRODUCT_ESX
- See Also:
- Constant Field Values
PRODUCT_SERVER
public static final int PRODUCT_SERVER
- See Also:
- Constant Field Values
PRODUCT_UNKNOWN
public static final int PRODUCT_UNKNOWN
- See Also:
- Constant Field Values
GSX
public static final java.lang.String GSX
- See Also:
- Constant Field Values
ESX
public static final java.lang.String ESX
- See Also:
- Constant Field Values
SERVER
public static final java.lang.String SERVER
- See Also:
- Constant Field Values
PRODUCTS
public static final java.lang.String[] PRODUCTS
PLATFORM_WINDOWS
public static final int PLATFORM_WINDOWS
- See Also:
- Constant Field Values
PLATFORM_LINUX
public static final int PLATFORM_LINUX
- See Also:
- Constant Field Values
PLATFORM_VMNIX
public static final int PLATFORM_VMNIX
- See Also:
- Constant Field Values
PLATFORM_UNKNOWN
public static final int PLATFORM_UNKNOWN
- See Also:
- Constant Field Values
PLATFORMS
public static final java.lang.String[] PLATFORMS
PRODINFO_PRODUCT
public static final int PRODINFO_PRODUCT
- See Also:
- Constant Field Values
PRODINFO_PLATFORM
public static final int PRODINFO_PLATFORM
- See Also:
- Constant Field Values
PRODINFO_BUILD
public static final int PRODINFO_BUILD
- See Also:
- Constant Field Values
PRODINFO_VERSION_MAJOR
public static final int PRODINFO_VERSION_MAJOR
- See Also:
- Constant Field Values
PRODINFO_VERSION_MINOR
public static final int PRODINFO_VERSION_MINOR
- See Also:
- Constant Field Values
PRODINFO_VERSION_REVISION
public static final int PRODINFO_VERSION_REVISION
- See Also:
- Constant Field Values
PERM_READ
public static final int PERM_READ
- See Also:
- Constant Field Values
PERM_WRITE
public static final int PERM_WRITE
- See Also:
- Constant Field Values
PERM_EXECUTE
public static final int PERM_EXECUTE
- See Also:
- Constant Field Values
LOADED
public static final boolean LOADED
VM
public VM()
connect
public void connect(ConnectParams params,
                    java.lang.String config,
                    boolean mks)
             throws VMwareException
- 
- Throws:
- VMwareException
 
connect
public void connect(ConnectParams params,
                    java.lang.String config)
             throws VMwareException
- 
- Throws:
- VMwareException
 
disconnect
public void disconnect()
- 
 
isConnected
public boolean isConnected()
- 
 
getExecutionState
public int getExecutionState()
                      throws VMwareException
- 
- Throws:
- VMwareException
 
getRemoteConnections
public int getRemoteConnections()
                         throws VMwareException
- 
- Throws:
- VMwareException
 
getUptime
public int getUptime()
              throws VMwareException
- 
- Throws:
- VMwareException
 
getHeartbeat
public int getHeartbeat()
                 throws VMwareException
- 
- Throws:
- VMwareException
 
getToolsLastActive
public int getToolsLastActive()
                       throws VMwareException
- 
- Throws:
- VMwareException
 
getRunAsUser
public java.lang.String getRunAsUser()
                              throws VMwareException
- 
- Throws:
- VMwareException
 
getPermissions
public int getPermissions()
                   throws VMwareException
- 
- Throws:
- VMwareException
 
getPermissionsString
public java.lang.String getPermissionsString()
- 
 
canRead
public boolean canRead()
- 
 
canWrite
public boolean canWrite()
- 
 
canExecute
public boolean canExecute()
- 
 
getConfig
public java.lang.String getConfig(java.lang.String key)
                           throws VMwareException
- 
- Throws:
- VMwareException
 
getResource
public java.lang.String getResource(java.lang.String key)
                             throws VMwareException
- 
- Throws:
- VMwareException
 
getGuestInfo
public java.lang.String getGuestInfo(java.lang.String key)
                              throws VMwareException
- 
- Throws:
- VMwareException
 
setGuestInfo
public void setGuestInfo(java.lang.String key,
                         java.lang.String value)
                  throws VMwareException
- 
- Throws:
- VMwareException
 
getProductInfo
public int getProductInfo(int type)
                   throws VMwareException
- 
- Throws:
- VMwareException
 
getPid
public long getPid()
            throws VMwareException
- 
- Throws:
- VMwareException
 
getId
public int getId()
          throws VMwareException
- 
- Throws:
- VMwareException
 
getVersion
public java.lang.String getVersion()
                            throws VMwareException
- 
- Throws:
- VMwareException
 
getFullVersion
public java.lang.String getFullVersion()
                                throws VMwareException
- 
- Throws:
- VMwareException
 
getDisplayName
public java.lang.String getDisplayName()
- 
 
getGuestOS
public java.lang.String getGuestOS()
- 
 
getMemSize
public java.lang.String getMemSize()
- 
 
getProductName
public java.lang.String getProductName()
- 
 
getProductPlatform
public java.lang.String getProductPlatform()
- 
 
isOn
public boolean isOn()
- 
 
isOff
public boolean isOff()
- 
 
isSuspended
public boolean isSuspended()
- 
 
isStuck
public boolean isStuck()
- 
 
isESX
public boolean isESX()
- 
 
isGSX
public boolean isGSX()
- 
 
start
public void start(int mode)
           throws VMwareException
- 
- Throws:
- VMwareException
 
start
public void start()
           throws VMwareException
- 
- Throws:
- VMwareException
 
stop
public void stop(int mode)
          throws VMwareException
- 
- Throws:
- VMwareException
 
stop
public void stop()
          throws VMwareException
- 
- Throws:
- VMwareException
 
reset
public void reset(int mode)
           throws VMwareException
- 
- Throws:
- VMwareException
 
reset
public void reset()
           throws VMwareException
- 
- Throws:
- VMwareException
 
suspend
public void suspend(int mode)
             throws VMwareException
- 
- Throws:
- VMwareException
 
suspend
public void suspend()
             throws VMwareException
- 
- Throws:
- VMwareException
 
resume
public void resume(int mode)
            throws VMwareException
- 
- Throws:
- VMwareException
 
resume
public void resume()
            throws VMwareException
- 
- Throws:
- VMwareException
 
createSnapshot
public void createSnapshot(java.lang.String name,
                           java.lang.String description,
                           boolean quiesce,
                           boolean memory)
                    throws VMwareException
- 
- Throws:
- VMwareException
 
revertToSnapshot
public void revertToSnapshot()
                      throws VMwareException
- 
- Throws:
- VMwareException
 
removeAllSnapshots
public void removeAllSnapshots()
                        throws VMwareException
- 
- Throws:
- VMwareException
 
hasSnapshot
public boolean hasSnapshot()
                    throws VMwareException
- 
- Throws:
- VMwareException
 
saveScreenshot
public void saveScreenshot(java.lang.String name)
                    throws VMwareException
- 
- Throws:
- VMwareException
 
deviceConnect
public void deviceConnect(java.lang.String device)
                   throws VMwareException
- 
- Throws:
- VMwareException
 
deviceDisconnect
public void deviceDisconnect(java.lang.String device)
                      throws VMwareException
- 
- Throws:
- VMwareException
 
deviceIsConnected
public boolean deviceIsConnected(java.lang.String device)
                          throws VMwareException
- 
- Throws:
- VMwareException
 
dispose
public void dispose()
- 
 
finalize
protected void finalize()
- 
- Overrides:
- finalizein class- java.lang.Object
 
- 
 
Copyright ? 2004-2009 Hyperic. All Rights Reserved.