Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   *  Copyright (C) 2010-2011 Oracle Corporation
   *  This file is part of the VirtualBox SDK, as available from
   *  This library is free software; you can
   *  redistribute it and/or modify it under the terms of the GNU Lesser General
   *  Public License as published by the Free Software Foundation, in version 2.1
   *  as it comes in the "COPYING.LIB" file of the VirtualBox SDK distribution.
  *  This library is distributed in the hope that it will be useful, but WITHOUT
  *  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  *  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
  *  License for more details.
  * DO NOT EDIT! This is a generated file.
  * Generated from: src/VBox/Main/idl/VirtualBox.xidl (VirtualBox's interface definitions in XML)
  * Generator: src/VBox/Main/glue/glue-java.xsl
 package org.virtualbox_4_2;
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 org.virtualbox_4_2.IGuestSession#processCreate(String , List , List , List , Long ) or org.virtualbox_4_2.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}
 public enum ProcessWaitResult {

No result was returned. Not being used.
The process has been started.
The process has been terminated.
The process has changed its status. The status then can be retrieved via IProcess.getStatus().
Error while executing the process.
The waiting operation timed out. This also will happen when no event has been occured matching the current waiting flags in a IProcess.waitFor(java.lang.Long,java.lang.Long) call.
The process signalled that stdin became available for writing and that the process awaits input now.
Data on stdout became available for reading.
Data on stderr became available for reading.
A waiting flag specified in the IProcess.waitFor(java.lang.Long,java.lang.Long) call is not supported by the guest.
     private final int value;
    ProcessWaitResult(int v) {
         = v;
    public int value() {
        return ;
    public static ProcessWaitResult fromValue(long v) {
        for (ProcessWaitResult c: ProcessWaitResult.values()) {
            if (c.value == (int)v) {
                return c;
        throw new IllegalArgumentException(Long.toString(v));
    public static ProcessWaitResult fromValue(String v) {
        return valueOf(ProcessWaitResult.classv);
New to GrepCode? Check out our FAQ X