|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectSystemManager
SystemManagerLinux
public class SystemManagerLinux
Linux implementation of SystemManager.
Noone should now about this class unless one intends to port it to another operating system.
Use SystemManager.getSystemManager to get OS-specific implementation.
SystemManager| Constructor Summary | |
|---|---|
protected |
SystemManagerLinux()
|
| Method Summary | |
|---|---|
void |
closeProcessHandle(int handle)
Closes a process handle (which was opened by openProcessHandle). |
int |
fetchProcessIDs(int[] pids)
Fills the integer array with PIDs (process identifiers) of currently running processes. |
boolean |
fetchProcessStatus(int h,
ProcessStatus ps)
Fills the ps structure with process status information. |
boolean |
fetchSystemMemoryStatus(SystemMemoryStatus sms)
Fills the sms structure with system memory status information. |
String |
getProcessName(int hProcess)
Retrieves the name of executable referenced by process handle. |
int |
openProcessHandle(int processID)
Opens a handle to a process with given identifier. |
| Methods inherited from class SystemManager |
|---|
getProcessStatus, getSystemManager, getSystemMemoryStatus, loadTmpLibrary |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected SystemManagerLinux()
| Method Detail |
|---|
public boolean fetchSystemMemoryStatus(SystemMemoryStatus sms)
SystemManager
fetchSystemMemoryStatus in class SystemManagersms - the SystemMemoryStatus object, should not be null.
SystemMemoryStatus
public boolean fetchProcessStatus(int h,
ProcessStatus ps)
SystemManager
fetchProcessStatus in class SystemManagerh - (OS specific) handle to a process, created from
openProcessHandle.ps - ProcessStatus object, should not be null.
SystemManager.openProcessHandle(int),
ProcessStatuspublic int openProcessHandle(int processID)
SystemManager
openProcessHandle in class SystemManagerprocessID - (host OS specific) process identifier.
SystemManager.closeProcessHandle(int)public void closeProcessHandle(int handle)
SystemManager
closeProcessHandle in class SystemManagerhandle - the open process handle.SystemManager.openProcessHandle(int)public int fetchProcessIDs(int[] pids)
SystemManager
fetchProcessIDs in class SystemManagerpids - non-null array of integers to be filled with PIDs.
public String getProcessName(int hProcess)
SystemManager
getProcessName in class SystemManagerhProcess - is a handle to a process created by openProcessHandle.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||