frysk.gui.monitor
Class GuiProc
java.lang.Object
frysk.gui.monitor.GuiObject
frysk.gui.monitor.GuiCoreObjectWrapper
frysk.gui.monitor.GuiProc
- All Implemented Interfaces:
- SaveableXXX
public class GuiProc
- extends GuiCoreObjectWrapper
TODO To change the template for this generated type comment go to
Window - Preferences - Java - Code Style - Code Templates
Methods inherited from class frysk.gui.monitor.GuiObject |
dontSaveObject, doSaveObject, getName, getSummary, getToolTip, load, save, setName, setSummay, setToolTip, shouldSaveObject, toString |
PATH_NOT_FOUND
public static final String PATH_NOT_FOUND
- See Also:
- Constant Field Values
executablePathChanged
public GuiObservable executablePathChanged
GuiProc
public GuiProc(Proc proc)
getProc
public Proc getProc()
getNiceExecutablePath
public String getNiceExecutablePath()
- The executable path of a proc might be mangled with things like '(deleted)'
or "#prelink#" if the executable has been deleted or the link changed. This
function cleans this out and returns the clean path.
- Returns:
isOwned
public boolean isOwned()
- Returns wether this user owns this process or not.
- Checks uid and * gid.
- Checks if the given process is this frysk process if so returns false.
- Also checks that the user has acces to /pro/exe if not false is returned.
- Checks if this process is the init process, return false if so.
- Returns:
- boolean; true of the user owns this process, and can debug it
false otherwise;
getFullExecutablePath
public String getFullExecutablePath()
getExecutableName
public String getExecutableName()
- Tries to call getExe() on the proc. If that
fails, then getCmmd[0] is used.