|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object frysk.sys.proc.CmdLineBuilder
public abstract class CmdLineBuilder
The build the command line argument list from the contents of the file /proc/PID/cmdline. While this isn't a pure builder pattern, it is close enough.
Constructor Summary | |
---|---|
protected |
CmdLineBuilder()
Create a CmdLineBuilder; can only extend. |
Method Summary | |
---|---|
abstract void |
buildArgv(String[] argv)
Build the argument vector corresponding to cmdline. |
boolean |
construct(byte[] cmdline)
Scan the CMDLINE byte array building the corresponding command line string. |
private boolean |
construct(int pid)
|
boolean |
construct(ProcessIdentifier pid)
Scan the maps file found in /proc/PID/cmdline building up the command line. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected CmdLineBuilder()
Method Detail |
---|
public boolean construct(ProcessIdentifier pid)
private final boolean construct(int pid)
public final boolean construct(byte[] cmdline)
buildArgv(java.lang.String[])
is called with the command line.
public abstract void buildArgv(String[] argv)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |