com.caucho.bootjni
Class JniProcess

java.lang.Object
  extended by java.lang.Process
      extended by com.caucho.bootjni.JniProcess

@Module
public class JniProcess
extends java.lang.Process

Resin's bootstrap class.


Constructor Summary
JniProcess()
           
 
Method Summary
 void chown(java.lang.String path, java.lang.String user, java.lang.String group)
           
 boolean clearSaveOnExec()
           
 JniProcess create(java.util.ArrayList<java.lang.String> args, java.util.HashMap<java.lang.String,java.lang.String> env, java.lang.String chroot, java.lang.String pwd, java.lang.String user, java.lang.String group)
           
 void destroy()
           
 int exitValue()
           
 java.io.InputStream getErrorStream()
           
static int getFdMax()
           
 java.io.InputStream getInputStream()
           
 java.io.OutputStream getOutputStream()
           
 int getPid()
           
 java.lang.String getTroubleshootMessage()
           
 boolean isEnabled()
           
 boolean isNativeBootAvailable()
           
static int setFdMax()
           
 int waitFor()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JniProcess

public JniProcess()
Method Detail

create

public JniProcess create(java.util.ArrayList<java.lang.String> args,
                         java.util.HashMap<java.lang.String,java.lang.String> env,
                         java.lang.String chroot,
                         java.lang.String pwd,
                         java.lang.String user,
                         java.lang.String group)

isEnabled

public boolean isEnabled()

getTroubleshootMessage

public java.lang.String getTroubleshootMessage()

getOutputStream

public java.io.OutputStream getOutputStream()
Specified by:
getOutputStream in class java.lang.Process

getInputStream

public java.io.InputStream getInputStream()
Specified by:
getInputStream in class java.lang.Process

getErrorStream

public java.io.InputStream getErrorStream()
Specified by:
getErrorStream in class java.lang.Process

getPid

public int getPid()

chown

public void chown(java.lang.String path,
                  java.lang.String user,
                  java.lang.String group)

waitFor

public int waitFor()
Specified by:
waitFor in class java.lang.Process

exitValue

public int exitValue()
Specified by:
exitValue in class java.lang.Process

destroy

public void destroy()
Specified by:
destroy in class java.lang.Process

isNativeBootAvailable

public boolean isNativeBootAvailable()

clearSaveOnExec

public boolean clearSaveOnExec()

getFdMax

public static int getFdMax()

setFdMax

public static int setFdMax()