|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.phoenix_int.aserver.util.PHXRuntime
public class PHXRuntime
this is a utility class for running processes. The class wraps the users desired process in a script that first switches to the desired directory.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_SHELL
|
| Constructor Summary | |
|---|---|
PHXRuntime()
|
|
| Method Summary | |
|---|---|
java.lang.Process |
exec(java.lang.String cmd,
java.lang.String baseDir)
runs the specified command. |
PHXProcess |
exec2(java.lang.String cmd,
java.lang.String baseDir)
runs the specified command. |
com.phoenix_int.aserver.util.IPHXProcessJobInfoListener |
getJobListener()
|
java.lang.String |
getShell()
returns the shell used to run programs |
static void |
main(java.lang.String[] args)
|
PHXRuntime |
setJobListener(com.phoenix_int.aserver.util.IPHXProcessJobInfoListener jobListener)
|
void |
setShell(java.lang.String shell)
sets the shell to use when running commands (applies to UNIX only) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_SHELL
| Constructor Detail |
|---|
public PHXRuntime()
| Method Detail |
|---|
public void setShell(java.lang.String shell)
shell - the shell to use. E.g. "csh". If null is specified,
then the command is issued directly without a shellpublic java.lang.String getShell()
public PHXRuntime setJobListener(com.phoenix_int.aserver.util.IPHXProcessJobInfoListener jobListener)
public com.phoenix_int.aserver.util.IPHXProcessJobInfoListener getJobListener()
public java.lang.Process exec(java.lang.String cmd,
java.lang.String baseDir)
throws java.io.IOException
cmd - the command to runbaseDir - the directory to run it in.
java.io.IOException - thrown if the command cannot
be executed
public PHXProcess exec2(java.lang.String cmd,
java.lang.String baseDir)
throws java.io.IOException
cmd - the command to runbaseDir - the directory to run it in.
java.io.IOException - thrown if the command cannot
be executedpublic static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||