|
|||||||||
| Home >> All >> arch >> [ task overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
arch.task
Class LinuxTask

java.lang.Objectarch.task.JXTask
arch.task.LinuxTask
- All Implemented Interfaces:
- java.io.Serializable
- public final class LinuxTask
- extends JXTask
LinuxTask describes a service or task that is supported by the current JD4X OS module implementation. Each service or task is represented by an integer id defined in the LinuxSupportedTask class and a detailed string description of what that service is as well as what it does. It is mainly used to define the JXTask in a JXRequest sent to the core module (JUNK). This class is an immutable class that is designed for thread safe operation.
- Since:
- JD4X 1.0
- Version:
- 0.1, 05/07/2003
| Field Summary | |
private java.lang.String[] |
arg
Command and arguments of application. |
private java.lang.String[] |
fqc
Fully qualified class with arguments. |
private java.lang.String[] |
jvmOpt
Jvm options. |
private java.lang.Object[] |
pids
Process id array. |
| Fields inherited from class arch.task.JXTask |
|
| Constructor Summary | |
LinuxTask(int id,
java.lang.String describe)
Default constructor that creates a new LinuxTask to represent an id and its service or task description. |
|
| Method Summary | |
java.lang.String[] |
getCommand()
Get the command and arguments of the application. |
java.lang.String[] |
getFQC()
Get the fully qualified class with its arguments. |
java.lang.String[] |
getJvmOption()
Get the Jvm options. |
java.lang.Object[] |
getPIDs()
Get the desired process IDs. |
void |
setCommand(java.lang.String[] args)
Set the command and arguments of the application. |
void |
setFQC(java.lang.String[] fqc)
Set the fully qualified class and its arguments. |
void |
setJvmOption(java.lang.String[] args)
Set the Jvm options. |
void |
setPIDs(java.lang.Object[] pids)
Set the desired process IDs. |
| Methods inherited from class arch.task.JXTask |
equals, getTaskDescription, getTaskID, hashCode, setTaskDescription, setTaskID, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
arg
private java.lang.String[] arg
- Command and arguments of application.
jvmOpt
private java.lang.String[] jvmOpt
- Jvm options.
fqc
private java.lang.String[] fqc
- Fully qualified class with arguments.
pids
private java.lang.Object[] pids
- Process id array.
| Constructor Detail |
LinuxTask
public LinuxTask(int id,
java.lang.String describe)
- Default constructor that creates a new LinuxTask to represent an id
and its service or task description.
| Method Detail |
getCommand
public java.lang.String[] getCommand()
- Get the command and arguments of the application.
Refer to setCommand(...) for examples.
For a native process:
String[0] = Command (Environment dependent).
String[1...N] = Arguments.
For a Jvm process:
String[0] = Jar file path.
String[1...N] = Arguments.
getJvmOption
public java.lang.String[] getJvmOption()
- Get the Jvm options.
Refer to setJvmOptions(...) for examples.
String[0] = option 1.
String[1] = option 2.
String[N] = option N.
getFQC
public java.lang.String[] getFQC()
- Get the fully qualified class with its arguments.
Refer to setFQC(...) for examples.
FQC = Package path + Class name + arguments.
getPIDs
public java.lang.Object[] getPIDs()
- Get the desired process IDs.
setCommand
public void setCommand(java.lang.String[] args)
- Set the command and arguments of the application.
For a native process:
String[0] = Command (Environment dependent).
String[1...N] = Arguments.
Example1 : mozilla /x/xy/xyz.html
String[0] = mozilla
String[1] = /x/xy/xyz.html
Example2 : evim -help
String[0] = evim
String[1] = -help
For a Jvm process:
String[0] = Jar file path.
String[1...N] = Arguments.
Example1 (Jar): /home/myjar/jedit.jar /home/foo/readme.txt
String[0] = /home/myjar/jedit.jar
String[1] = /home/foo/readme.txt
setJvmOption
public void setJvmOption(java.lang.String[] args)
- Set the Jvm options.
String[0] = option 1.
String[1] = option 2.
String[N] = option N.
Example1 : -classpath /home/MyJar -server
String[0] = -classpath.
String[1] = /home/MyJar.
String[2] = -server.
setFQC
public void setFQC(java.lang.String[] fqc)
- Set the fully qualified class and its arguments.
FQC = Package path + Class name + arguments.
Example1 : org.jhead.MyClass /home/foo/readme.txt
Package path = org.jhead.
Class Name = MyClass
Arguments = /home/foo/readme.txt
setPIDs
public void setPIDs(java.lang.Object[] pids)
- Set the desired process IDs.
|
|||||||||
| Home >> All >> arch >> [ task overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC