com.Prominic.runtime
Class NRuntime

java.lang.Object
  extended by com.Prominic.runtime.NRuntime
Direct Known Subclasses:
DefaultNRuntime, DefaultUnixRuntime

public abstract class NRuntime
extends java.lang.Object

Insert the type's description here. Creation date: (8/14/2001 12:13:31 PM)


Field Summary
private static NRuntime runtime
           
 
Constructor Summary
NRuntime()
          Runtime constructor comment.
 
Method Summary
abstract  void chgrp(java.lang.String file, int gid)
          Insert the method's description here.
abstract  void chmod(java.lang.String file, int mode)
          Insert the method's description here.
abstract  void chown(java.lang.String file, int uid)
          Insert the method's description here.
abstract  void chown(java.lang.String file, int uid, int gid)
          Insert the method's description here.
abstract  NProcess exec(int uid, int gid, java.lang.String command)
          Insert the method's description here.
abstract  NProcess exec(int uid, int gid, java.lang.String[] command)
          Insert the method's description here.
abstract  NProcess exec(int uid, int gid, java.lang.String[] command, java.lang.String stdout, java.lang.String stderr, java.lang.String stdin)
           
abstract  NProcess exec(int uid, int gid, java.lang.String command, java.lang.String stdout, java.lang.String stderr, java.lang.String stdin)
          Insert the method's description here.
abstract  NProcess exec(int uid, java.lang.String command)
          Insert the method's description here.
abstract  NProcess exec(int uid, java.lang.String[] command)
          Insert the method's description here.
abstract  NProcess exec(int uid, java.lang.String[] command, java.lang.String stdout, java.lang.String stderr, java.lang.String stdin)
           
abstract  NProcess exec(int uid, java.lang.String command, java.lang.String stdout, java.lang.String stderr, java.lang.String stdin)
          Insert the method's description here.
abstract  NProcess exec(java.lang.String command)
          Insert the method's description here.
abstract  NProcess exec(java.lang.String[] command)
          Insert the method's description here.
abstract  NProcess exec(java.lang.String[] command, java.lang.String stdout, java.lang.String stderr, java.lang.String stdin)
           
abstract  NProcess exec(java.lang.String command, java.lang.String stdout, java.lang.String stderr, java.lang.String stdin)
          Insert the method's description here.
static NRuntime getRuntime()
          Insert the method's description here.
abstract  void killProcess(int pid)
          Insert the method's description here.
static void setRuntime(NRuntime newRuntime)
          Insert the method's description here.
abstract  void signalProcess(int pid, int signal)
          Insert the method's description here.
abstract  int system(java.lang.String cmd)
          Insert the method's description here.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

runtime

private static NRuntime runtime
Constructor Detail

NRuntime

public NRuntime()
Runtime constructor comment.

Method Detail

chgrp

public abstract void chgrp(java.lang.String file,
                           int gid)
                    throws java.io.IOException,
                           java.lang.SecurityException
Insert the method's description here. Creation date: (8/17/2001 4:37:58 PM)

Parameters:
file - java.lang.String
mode - int
Throws:
java.io.IOException - The exception description.
java.lang.SecurityException - The exception description.

chmod

public abstract void chmod(java.lang.String file,
                           int mode)
                    throws java.io.IOException,
                           java.lang.SecurityException
Insert the method's description here. Creation date: (8/17/2001 4:37:58 PM)

Parameters:
file - java.lang.String
mode - int
Throws:
java.io.IOException - The exception description.
java.lang.SecurityException - The exception description.

chown

public abstract void chown(java.lang.String file,
                           int uid)
                    throws java.io.IOException,
                           java.lang.SecurityException
Insert the method's description here. Creation date: (8/17/2001 4:38:50 PM)

Parameters:
file - java.lang.String
uid - int
gid - int
Throws:
java.io.IOException - The exception description.
java.lang.SecurityException - The exception description.

chown

public abstract void chown(java.lang.String file,
                           int uid,
                           int gid)
                    throws java.io.IOException,
                           java.lang.SecurityException
Insert the method's description here. Creation date: (8/17/2001 4:38:50 PM)

Parameters:
file - java.lang.String
uid - int
gid - int
Throws:
java.io.IOException - The exception description.
java.lang.SecurityException - The exception description.

exec

public abstract NProcess exec(java.lang.String[] command)
                       throws java.io.IOException
Insert the method's description here. Creation date: (8/17/2001 4:21:37 PM)

Parameters:
command - java.lang.String[]
Returns:
com.Prominic.runtime.NProcess
Throws:
java.io.IOException - The exception description.

exec

public abstract NProcess exec(java.lang.String[] command,
                              java.lang.String stdout,
                              java.lang.String stderr,
                              java.lang.String stdin)
                       throws java.io.IOException
Throws:
java.io.IOException

exec

public abstract NProcess exec(int uid,
                              java.lang.String[] command)
                       throws java.io.IOException
Insert the method's description here. Creation date: (8/17/2001 4:21:37 PM)

Parameters:
command - java.lang.String[]
Returns:
com.Prominic.runtime.NProcess
Throws:
java.io.IOException - The exception description.

exec

public abstract NProcess exec(int uid,
                              java.lang.String[] command,
                              java.lang.String stdout,
                              java.lang.String stderr,
                              java.lang.String stdin)
                       throws java.io.IOException
Throws:
java.io.IOException

exec

public abstract NProcess exec(int uid,
                              int gid,
                              java.lang.String[] command)
                       throws java.io.IOException
Insert the method's description here. Creation date: (8/17/2001 4:21:37 PM)

Parameters:
command - java.lang.String[]
Returns:
com.Prominic.runtime.NProcess
Throws:
java.io.IOException - The exception description.

exec

public abstract NProcess exec(int uid,
                              int gid,
                              java.lang.String[] command,
                              java.lang.String stdout,
                              java.lang.String stderr,
                              java.lang.String stdin)
                       throws java.io.IOException
Throws:
java.io.IOException

exec

public abstract NProcess exec(int uid,
                              int gid,
                              java.lang.String command)
                       throws java.io.IOException
Insert the method's description here. Creation date: (8/17/2001 4:26:08 PM)

Parameters:
command - java.lang.String
Returns:
com.Prominic.runtime.NProcess
Throws:
java.io.IOException - The exception description.

exec

public abstract NProcess exec(int uid,
                              int gid,
                              java.lang.String command,
                              java.lang.String stdout,
                              java.lang.String stderr,
                              java.lang.String stdin)
                       throws java.io.IOException
Insert the method's description here. Creation date: (8/17/2001 4:26:08 PM)

Parameters:
command - java.lang.String
Returns:
com.Prominic.runtime.NProcess
Throws:
java.io.IOException - The exception description.

exec

public abstract NProcess exec(int uid,
                              java.lang.String command)
                       throws java.io.IOException
Insert the method's description here. Creation date: (8/17/2001 4:26:08 PM)

Parameters:
command - java.lang.String
Returns:
com.Prominic.runtime.NProcess
Throws:
java.io.IOException - The exception description.

exec

public abstract NProcess exec(int uid,
                              java.lang.String command,
                              java.lang.String stdout,
                              java.lang.String stderr,
                              java.lang.String stdin)
                       throws java.io.IOException
Insert the method's description here. Creation date: (8/17/2001 4:26:08 PM)

Parameters:
command - java.lang.String
Returns:
com.Prominic.runtime.NProcess
Throws:
java.io.IOException - The exception description.

exec

public abstract NProcess exec(java.lang.String command)
                       throws java.io.IOException
Insert the method's description here. Creation date: (8/17/2001 4:26:08 PM)

Parameters:
command - java.lang.String
Returns:
com.Prominic.runtime.NProcess
Throws:
java.io.IOException - The exception description.

exec

public abstract NProcess exec(java.lang.String command,
                              java.lang.String stdout,
                              java.lang.String stderr,
                              java.lang.String stdin)
                       throws java.io.IOException
Insert the method's description here. Creation date: (8/17/2001 4:26:08 PM)

Parameters:
command - java.lang.String
Returns:
com.Prominic.runtime.NProcess
Throws:
java.io.IOException - The exception description.

getRuntime

public static NRuntime getRuntime()
Insert the method's description here. Creation date: (8/17/2001 4:16:25 PM)

Returns:
com.Prominic.runtime.NRuntime

killProcess

public abstract void killProcess(int pid)
                          throws java.lang.SecurityException
Insert the method's description here. Creation date: (8/17/2001 4:39:52 PM)

Parameters:
pid - int
Throws:
java.lang.SecurityException - The exception description.

setRuntime

public static void setRuntime(NRuntime newRuntime)
Insert the method's description here. Creation date: (8/17/2001 4:16:25 PM)

Parameters:
newRuntime - com.Prominic.runtime.NRuntime

signalProcess

public abstract void signalProcess(int pid,
                                   int signal)
                            throws java.lang.SecurityException
Insert the method's description here. Creation date: (8/17/2001 4:40:33 PM)

Parameters:
pid - int
signal - int
Throws:
java.lang.SecurityException - The exception description.

system

public abstract int system(java.lang.String cmd)
Insert the method's description here. Creation date: (8/17/2001 4:39:17 PM)

Parameters:
cmd - java.lang.String
Returns:
int