com.Prominic.runtime
Class UnixRuntime

java.lang.Object
  extended by com.Prominic.runtime.UnixRuntime

public class UnixRuntime
extends java.lang.Object


Field Summary
private static int runningProcesses
           
 
Constructor Summary
UnixRuntime()
           
 
Method Summary
protected static void decrementRunningProcesses()
          Insert the method's description here.
static UnixProcess exec(int uid, int gid, java.lang.String cmd)
          Start an unix process.
static UnixProcess exec(int uid, int gid, java.lang.String[] cmd)
          Start an unix process.
static UnixProcess exec(int uid, int gid, java.lang.String[] cmd, java.lang.String stdoutfilename, java.lang.String stderrfilename, java.lang.String stdinfilename)
          Start an unix process.
static UnixProcess exec(int uid, int gid, java.lang.String cmd, java.lang.String stdoutfilename, java.lang.String stderrfilename, java.lang.String stdinfilename)
          Start an unix process.
static UnixProcess exec(int uid, java.lang.String cmd)
          Start an unix process.
static UnixProcess exec(int uid, java.lang.String[] cmd)
          Start an unix process.
static UnixProcess exec(int uid, java.lang.String[] cmd, java.lang.String stdoutfilename, java.lang.String stderrfilename, java.lang.String stdinfilename)
          Start an unix process.
static UnixProcess exec(int uid, java.lang.String cmd, java.lang.String stdoutfilename, java.lang.String stderrfilename, java.lang.String stdinfilename)
          Start an unix process.
static UnixProcess exec(java.lang.String cmd)
          Start an unix process.
static UnixProcess exec(java.lang.String[] cmd)
          Start an unix process.
static UnixProcess exec(java.lang.String[] cmd, java.lang.String stdoutfilename, java.lang.String stderrfilename, java.lang.String stdinfilename)
          Start an unix process.
static UnixProcess exec(java.lang.String cmd, java.lang.String stdoutfilename, java.lang.String stderrfilename, java.lang.String stdinfilename)
          Start an unix process.
static int getRunningProcesses()
          Insert the method's description here.
protected static int incrementRunningProcesses()
          Insert the method's description here.
static void killProcess(int pid)
          Kills the unix process represented by the pid Creation date: (8/21/2001 1:11:40 PM)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

runningProcesses

private static int runningProcesses
Constructor Detail

UnixRuntime

public UnixRuntime()
Method Detail

decrementRunningProcesses

protected static void decrementRunningProcesses()
Insert the method's description here. Creation date: (10/31/2001 7:11:26 PM)

Parameters:
newRunningProcesses - int

exec

public static UnixProcess exec(java.lang.String[] cmd)
Start an unix process. Creation date: (8/21/2001 1:11:40 PM)

Parameters:
cmd - java.lang.String[] The command
Returns:
com.Prominic.runtime.UnixProcess The started process

exec

public static UnixProcess exec(java.lang.String[] cmd,
                               java.lang.String stdoutfilename,
                               java.lang.String stderrfilename,
                               java.lang.String stdinfilename)
Start an unix process. Creation date: (8/21/2001 1:11:40 PM)

Parameters:
cmd - java.lang.String[] The command
stdoutfilename - java.lang.String The output filename for the process
stderrfilename - java.lang.String The error filename for the process
stdinfilename - java.lang.String The input filename for the process
Returns:
com.Prominic.runtime.UnixProcess The started process

exec

public static UnixProcess exec(int uid,
                               java.lang.String[] cmd)
Start an unix process. Creation date: (8/21/2001 1:11:40 PM)

Parameters:
uid - int The process will be start by the user specified by its uid
cmd - java.lang.String[] The command
Returns:
com.Prominic.runtime.UnixProcess The started process

exec

public static UnixProcess exec(int uid,
                               java.lang.String[] cmd,
                               java.lang.String stdoutfilename,
                               java.lang.String stderrfilename,
                               java.lang.String stdinfilename)
Start an unix process. Creation date: (8/21/2001 1:11:40 PM)

Parameters:
uid - int The process will be start by the user specified by its uid
cmd - java.lang.String[] The command
stdoutfilename - java.lang.String The output filename for the process
stderrfilename - java.lang.String The error filename for the process
stdinfilename - java.lang.String The input filename for the process
Returns:
com.Prominic.runtime.UnixProcess The started process

exec

public static UnixProcess exec(int uid,
                               int gid,
                               java.lang.String[] cmd)
Start an unix process. Creation date: (8/21/2001 1:11:40 PM)

Parameters:
uid - int The process will be start by the user specified by its uid
gid - int The process will be start by the group specified by its gid
cmd - java.lang.String[] The command
Returns:
com.Prominic.runtime.UnixProcess The started process

exec

public static UnixProcess exec(int uid,
                               int gid,
                               java.lang.String[] cmd,
                               java.lang.String stdoutfilename,
                               java.lang.String stderrfilename,
                               java.lang.String stdinfilename)
Start an unix process. Creation date: (8/21/2001 1:11:40 PM)

Parameters:
uid - int The process will be start by the user specified by its uid
gid - int The process will be start by the group specified by its gid
cmd - java.lang.String[] The command
stdoutfilename - java.lang.String The output filename for the process
stderrfilename - java.lang.String The error filename for the process
stdinfilename - java.lang.String The input filename for the process
Returns:
com.Prominic.runtime.UnixProcess The started process

exec

public static UnixProcess exec(int uid,
                               int gid,
                               java.lang.String cmd)
Start an unix process. Creation date: (8/21/2001 1:11:40 PM)

Parameters:
uid - int The process will be start by the user specified by its uid
gid - int The process will be start by the group specified by its gid
cmd - java.lang.String The command
Returns:
com.Prominic.runtime.UnixProcess The started process

exec

public static UnixProcess exec(int uid,
                               int gid,
                               java.lang.String cmd,
                               java.lang.String stdoutfilename,
                               java.lang.String stderrfilename,
                               java.lang.String stdinfilename)
Start an unix process. Creation date: (8/21/2001 1:11:40 PM)

Parameters:
uid - int The process will be start by the user specified by its uid
gid - int The process will be start by the group specified by its gid
cmd - java.lang.String The command
stdoutfilename - java.lang.String The output filename for the process
stderrfilename - java.lang.String The error filename for the process
stdinfilename - java.lang.String The input filename for the process
Returns:
com.Prominic.runtime.UnixProcess The started process

exec

public static UnixProcess exec(int uid,
                               java.lang.String cmd)
Start an unix process. Creation date: (8/21/2001 1:11:40 PM)

Parameters:
uid - int The process will be start by the user specified by its uid
cmd - java.lang.String The command
Returns:
com.Prominic.runtime.UnixProcess The started process

exec

public static UnixProcess exec(int uid,
                               java.lang.String cmd,
                               java.lang.String stdoutfilename,
                               java.lang.String stderrfilename,
                               java.lang.String stdinfilename)
Start an unix process. Creation date: (8/21/2001 1:11:40 PM)

Parameters:
uid - int The process will be start by the user specified by its uid
gid - int The process will be start by the group specified by its gid
cmd - java.lang.String The command
stdoutfilename - java.lang.String The output filename for the process
stderrfilename - java.lang.String The error filename for the process
stdinfilename - java.lang.String The input filename for the process
Returns:
com.Prominic.runtime.UnixProcess The started process

exec

public static UnixProcess exec(java.lang.String cmd)
Start an unix process. Creation date: (8/21/2001 1:11:40 PM)

Parameters:
cmd - java.lang.String The command
Returns:
com.Prominic.runtime.UnixProcess The started process

exec

public static UnixProcess exec(java.lang.String cmd,
                               java.lang.String stdoutfilename,
                               java.lang.String stderrfilename,
                               java.lang.String stdinfilename)
Start an unix process. Creation date: (8/21/2001 1:11:40 PM)

Parameters:
cmd - java.lang.String The command
stdoutfilename - java.lang.String The output filename for the process
stderrfilename - java.lang.String The error filename for the process
stdinfilename - java.lang.String The input filename for the process
Returns:
com.Prominic.runtime.UnixProcess The started process

getRunningProcesses

public static int getRunningProcesses()
Insert the method's description here. Creation date: (10/31/2001 7:13:06 PM)

Returns:
int

incrementRunningProcesses

protected static int incrementRunningProcesses()
Insert the method's description here. Creation date: (10/31/2001 7:11:26 PM)

Returns:
int

killProcess

public static void killProcess(int pid)
                        throws java.lang.SecurityException
Kills the unix process represented by the pid Creation date: (8/21/2001 1:11:40 PM)

Parameters:
pid - int The unix process identifier
Throws:
java.lang.SecurityException - If there aren't the right to kill the process