| 
 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||
java.lang.Objectjava.lang.Enum<ProcessWaitResult>
org.virtualbox_7_1.ProcessWaitResult
public enum ProcessWaitResult
Process waiting results. Depending on the process waiting flags (for
more information seeProcessWaitForFlag) the waiting result
can vary based on the processes' current status.
To wait for a guest process to terminate after it has been
created byIGuestSession.processCreate(String,List,String,List,List,Long)orIGuestSession.processCreateEx(String,List,String,List,List,Long,org.virtualbox_7_1.ProcessPriority,List)one would specify ProcessWaitFor_Terminate.
If a guest process has been started with ProcessCreateFlag_WaitForStdOut
a client can wait with ProcessWaitResult_StdOut for new data to arrive on
stdout; same applies for ProcessCreateFlag_WaitForStdErr and
ProcessWaitResult_StdErr.
Interface ID: {40719CBE-F192-4FE9-A231-6697B3C8E2B4}
| Enum Constant Summary | |
|---|---|
| ErrorError while executing the process. | |
| NoneNo result was returned. | |
| StartThe process has been started. | |
| StatusThe process has changed its status. | |
| StdErrData on stderr became available for reading. | |
| StdInThe process signalled that stdin became available for writing. | |
| StdOutData on stdout became available for reading. | |
| TerminateThe process has been terminated. | |
| TimeoutThe waiting operation timed out. | |
| WaitFlagNotSupportedA waiting flag specified in the IProcess.waitFor(Long,Long)call
is not supported by the guest. | |
| Method Summary | |
|---|---|
| static ProcessWaitResult | fromValue(long v) | 
| static ProcessWaitResult | fromValue(java.lang.String v) | 
|  int | value() | 
| static ProcessWaitResult | valueOf(java.lang.String name)Returns the enum constant of this type with the specified name. | 
| static ProcessWaitResult[] | values()Returns an array containing the constants of this enum type, in the order they are declared. | 
| Methods inherited from class java.lang.Enum | 
|---|
| clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf | 
| Methods inherited from class java.lang.Object | 
|---|
| getClass, notify, notifyAll, wait, wait, wait | 
| Enum Constant Detail | 
|---|
public static final ProcessWaitResult None
public static final ProcessWaitResult Start
public static final ProcessWaitResult Terminate
public static final ProcessWaitResult Status
IProcess.getStatus().
public static final ProcessWaitResult Error
public static final ProcessWaitResult Timeout
public static final ProcessWaitResult StdIn
public static final ProcessWaitResult StdOut
public static final ProcessWaitResult StdErr
public static final ProcessWaitResult WaitFlagNotSupported
IProcess.waitFor(Long,Long)call
is not supported by the guest.
| Method Detail | 
|---|
public static ProcessWaitResult[] values()
for (ProcessWaitResult c : ProcessWaitResult.values()) System.out.println(c);
public static ProcessWaitResult valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic int value()
public static ProcessWaitResult fromValue(long v)
public static ProcessWaitResult fromValue(java.lang.String v)
| 
 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||