com.vmware.vim25.mo
Class GuestProcessManager

java.lang.Object
  extended by com.vmware.vim25.mo.ManagedObject
      extended by com.vmware.vim25.mo.GuestProcessManager

public class GuestProcessManager
extends ManagedObject

provides APIs to manipulate the guest operating system processes

Since:
SDK5.0
Author:
Steve Jin (http://www.doublecloud.org)

Constructor Summary
GuestProcessManager(ServerConnection sc, ManagedObjectReference mor, VirtualMachine vm)
           
 
Method Summary
 VirtualMachine getVM()
           
 GuestProcessInfo[] listProcessesInGuest(GuestAuthentication auth, long[] pids)
           
 String[] readEnvironmentVariableInGuest(GuestAuthentication auth, String[] names)
           
 long startProgramInGuest(GuestAuthentication auth, GuestProgramSpec spec)
           
 void terminateProcessInGuest(GuestAuthentication auth, long pid)
           
 
Methods inherited from class com.vmware.vim25.mo.ManagedObject
convertMors, getCurrentProperty, getDatastores, getFilter, getHosts, getManagedObject, getManagedObjects, getManagedObjects, getMOR, getNetworks, getPropertiesByPaths, getPropertyByPath, getResourcePools, getScheduledTasks, getServerConnection, getTasks, getViews, getVimService, getVms, retrieveObjectProperties, setMOR, setServerConnection, toString, waitForValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GuestProcessManager

public GuestProcessManager(ServerConnection sc,
                           ManagedObjectReference mor,
                           VirtualMachine vm)
Method Detail

getVM

public VirtualMachine getVM()

listProcessesInGuest

public GuestProcessInfo[] listProcessesInGuest(GuestAuthentication auth,
                                               long[] pids)
                                        throws GuestOperationsFault,
                                               InvalidState,
                                               TaskInProgress,
                                               RuntimeFault,
                                               RemoteException
Throws:
GuestOperationsFault
InvalidState
TaskInProgress
RuntimeFault
RemoteException

readEnvironmentVariableInGuest

public String[] readEnvironmentVariableInGuest(GuestAuthentication auth,
                                               String[] names)
                                        throws GuestOperationsFault,
                                               InvalidState,
                                               TaskInProgress,
                                               RuntimeFault,
                                               RemoteException
Throws:
GuestOperationsFault
InvalidState
TaskInProgress
RuntimeFault
RemoteException

startProgramInGuest

public long startProgramInGuest(GuestAuthentication auth,
                                GuestProgramSpec spec)
                         throws GuestOperationsFault,
                                InvalidState,
                                TaskInProgress,
                                FileFault,
                                RuntimeFault,
                                RemoteException
Throws:
GuestOperationsFault
InvalidState
TaskInProgress
FileFault
RuntimeFault
RemoteException

terminateProcessInGuest

public void terminateProcessInGuest(GuestAuthentication auth,
                                    long pid)
                             throws GuestOperationsFault,
                                    InvalidState,
                                    TaskInProgress,
                                    RuntimeFault,
                                    RemoteException
Throws:
GuestOperationsFault
InvalidState
TaskInProgress
RuntimeFault
RemoteException


Copyright © 2011-2012. All Rights Reserved.