|
||||||||
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_4_2.ProcessWaitResult
public enum ProcessWaitResult
Process waiting results. Depending on the process waiting flags (for
more information see ProcessWaitForFlag
) the waiting result
can vary based on the processes' current status.
To wait for a gust process to terminate after it has been
created by IGuestSession.processCreate(String,List,List,List,Long)
or IGuestSession.processCreateEx(String,List,List,List,Long,org.virtualbox_4_2.ProcessPriority,List)
one would specify ProcessWaitResult_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 | |
---|---|
Error
Error while executing the process. |
|
None
No result was returned. |
|
Start
The process has been started. |
|
Status
The process has changed its status. |
|
StdErr
Data on stderr became available for reading. |
|
StdIn
The process signalled that stdin became available for writing and that the process awaits input now. |
|
StdOut
Data on stdout became available for reading. |
|
Terminate
The process has been terminated. |
|
Timeout
The waiting operation timed out. |
|
WaitFlagNotSupported
A 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
IProcess.waitFor(Long,Long)
call.
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 |