public void terminateProcessInGuest(GuestAuthentication auth, long pid) throws GuestOperationsFault, InvalidState, TaskInProgress, RuntimeFault, RemoteException { getVimService().terminateProcessInGuest(getMOR(), vm.getMOR(), auth, pid); } }
long pid = -1; try { pid = gpm.startProgramInGuest(creds, spec); System.out.println("pid: " + pid); Thread.sleep(3000); creds.password = newPassword; while (true) { GuestProcessInfo[] infoList = gpm.listProcessesInGuest(creds, new long[] { pid }); GuestProcessInfo info = infoList[0]; if (info.getExitCode() == null) {
long pid = gpm.startProgramInGuest(npa, spec); this.logger.fine("pid: " + pid);
public GuestProcessManager getProcessManager(VirtualMachine vm) { ManagedObjectReference mor = (ManagedObjectReference) getCurrentProperty("processManager"); return new GuestProcessManager(getServerConnection(), mor, vm); }
public long startProgramInGuest(GuestAuthentication auth, GuestProgramSpec spec) throws GuestOperationsFault, InvalidState, TaskInProgress, FileFault, RuntimeFault, RemoteException { return getVimService().startProgramInGuest(getMOR(), vm.getMOR(), auth, spec); }
public String[] readEnvironmentVariableInGuest(GuestAuthentication auth, String[] names) throws GuestOperationsFault, InvalidState, TaskInProgress, RuntimeFault, RemoteException { return getVimService().readEnvironmentVariableInGuest(getMOR(), vm.getMOR(), auth, names); }
public GuestProcessInfo[] listProcessesInGuest(GuestAuthentication auth, long[] pids) throws GuestOperationsFault, InvalidState, TaskInProgress, RuntimeFault, RemoteException { return getVimService().listProcessesInGuest(getMOR(), vm.getMOR(), auth, pids); }