com.Prominic.runtime
Class DefaultUnixProcess

java.lang.Object
  extended by com.Prominic.runtime.DefaultUnixProcess
All Implemented Interfaces:
NProcess

public class DefaultUnixProcess
extends java.lang.Object
implements NProcess

Insert the type's description here. Creation date: (8/17/2001 3:43:28 PM)


Field Summary
private  UnixProcess process
           
private  boolean running
           
private  java.io.InputStream stderr
           
private  java.io.OutputStream stdin
           
private  java.io.InputStream stdout
           
 
Constructor Summary
DefaultUnixProcess()
          DefaultUnixProcess constructor comment.
DefaultUnixProcess(UnixProcess process)
          DefaultUnixProcess constructor comment.
 
Method Summary
 void addProcessEventListener(ProcessEventListener listener)
          Insert the method's description here.
 void destroy()
          Insert the method's description here.
 int exitValue()
          Insert the method's description here.
 void finalize()
          Insert the method's description here.
 java.io.InputStream getErrorStream()
          Insert the method's description here.
 java.io.InputStream getInputStream()
          Insert the method's description here.
 java.io.OutputStream getOutputStream()
          Insert the method's description here.
 int getPid()
          Insert the method's description here.
protected  UnixProcess getProcess()
          Insert the method's description here.
 boolean isRunning()
          Insert the method's description here.
 void removeProcessEventListener(ProcessEventListener listener)
          Insert the method's description here.
protected  void setProcess(UnixProcess newProcess)
          Insert the method's description here.
 void signal(int signal)
          Insert the method's description here.
 void waitFor()
          Insert the method's description here.
 void waitFor(long time)
          Insert the method's description here.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

process

private UnixProcess process

running

private boolean running

stdin

private java.io.OutputStream stdin

stdout

private java.io.InputStream stdout

stderr

private java.io.InputStream stderr
Constructor Detail

DefaultUnixProcess

public DefaultUnixProcess()
DefaultUnixProcess constructor comment.


DefaultUnixProcess

public DefaultUnixProcess(UnixProcess process)
DefaultUnixProcess constructor comment.

Method Detail

addProcessEventListener

public void addProcessEventListener(ProcessEventListener listener)
                             throws java.lang.IllegalThreadStateException
Insert the method's description here. Creation date: (8/17/2001 3:43:28 PM)

Specified by:
addProcessEventListener in interface NProcess
Parameters:
listener - com.Prominic.jdi.spawning.ProcessEventListener
Throws:
java.lang.IllegalThreadStateException

destroy

public void destroy()
Insert the method's description here. Creation date: (8/17/2001 4:53:33 PM)

Specified by:
destroy in interface NProcess

exitValue

public int exitValue()
              throws java.lang.IllegalThreadStateException,
                     java.lang.InterruptedException,
                     java.io.IOException,
                     java.io.FileNotFoundException,
                     java.lang.SecurityException,
                     UnixRuntimeException
Insert the method's description here. Creation date: (8/17/2001 3:43:28 PM)

Specified by:
exitValue in interface NProcess
Returns:
int
Throws:
java.io.IOException - The exception description.
java.lang.IllegalThreadStateException
java.lang.InterruptedException
java.io.FileNotFoundException
java.lang.SecurityException
UnixRuntimeException

finalize

public void finalize()
              throws java.lang.Throwable
Insert the method's description here. Creation date: (8/28/2001 1:13:07 PM)

Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable - The exception description.

getErrorStream

public java.io.InputStream getErrorStream()
                                   throws java.io.IOException
Insert the method's description here. Creation date: (8/17/2001 3:43:28 PM)

Specified by:
getErrorStream in interface NProcess
Returns:
java.io.InputStream
Throws:
java.io.IOException - The exception description.

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Insert the method's description here. Creation date: (8/17/2001 3:43:28 PM)

Specified by:
getInputStream in interface NProcess
Returns:
java.io.InputStream
Throws:
java.io.IOException - The exception description.

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
Insert the method's description here. Creation date: (8/17/2001 3:43:28 PM)

Specified by:
getOutputStream in interface NProcess
Returns:
java.io.OutputStream
Throws:
java.io.IOException - The exception description.

getPid

public int getPid()
           throws java.lang.IllegalThreadStateException
Insert the method's description here. Creation date: (8/17/2001 4:57:35 PM)

Specified by:
getPid in interface NProcess
Returns:
int
Throws:
java.lang.IllegalThreadStateException - The exception description.

getProcess

protected UnixProcess getProcess()
Insert the method's description here. Creation date: (8/17/2001 5:00:26 PM)

Returns:
com.Prominic.runtime.UnixProcess

isRunning

public boolean isRunning()
Insert the method's description here. Creation date: (8/17/2001 3:43:28 PM)

Specified by:
isRunning in interface NProcess
Returns:
boolean

removeProcessEventListener

public void removeProcessEventListener(ProcessEventListener listener)
Insert the method's description here. Creation date: (8/17/2001 3:43:28 PM)

Specified by:
removeProcessEventListener in interface NProcess
Parameters:
listener - com.Prominic.jdi.spawning.ProcessEventListener

setProcess

protected void setProcess(UnixProcess newProcess)
Insert the method's description here. Creation date: (8/17/2001 5:00:26 PM)

Parameters:
newProcess - com.Prominic.runtime.UnixProcess

signal

public void signal(int signal)
            throws java.io.IOException
Insert the method's description here. Creation date: (8/17/2001 3:43:28 PM)

Specified by:
signal in interface NProcess
Parameters:
signal - int
Throws:
java.io.IOException - The exception description.

waitFor

public void waitFor()
             throws java.lang.InterruptedException
Insert the method's description here. Creation date: (8/17/2001 3:43:28 PM)

Specified by:
waitFor in interface NProcess
Parameters:
time - int
Throws:
java.lang.InterruptedException - The exception description.

waitFor

public void waitFor(long time)
             throws java.lang.InterruptedException
Insert the method's description here. Creation date: (8/17/2001 3:43:28 PM)

Specified by:
waitFor in interface NProcess
Parameters:
time - int
Throws:
java.lang.InterruptedException - The exception description.