Skip to main content
Package: com.phoenix_int.aserver.util Class Hierarchy

Declaration
This class represents information about a running process on the system. It includes static members for listing all processes. This is done in a semi-platform independent way by using an external program which is platform dependent (although fairly consistent on UNIX systems, ps). See PHXRuntime and PHXProcess for other convenient ways to use this information. Note that not all platforms will have all information available.

Constructor Summary

Method Summary

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

PHXProcessInfo

Constructs an empty process

Method Detail

getProcesses

Lists the specified process’ children. Throws:
  • java.io.IOException

getProcesses

Lists all processes on the system Throws:
  • java.io.IOException

getCommand

Returns the command name of this process

getProcessID

Gets the platform dependent process ID number

getParentProcessID

Gets the parent process ID of this process

getPercentCPU

Gets the percentage of the CPU usage, if available

getMemUsage

Gets the memory usage of this process, if available

getTime

Returns the amount of CPU time this process has used, if available.

getElapsedTime

Returns the wall clock time for this process, if available

toXML

Converts this process information into a usable XML description

toString

Converts this process info into a one-line readable string Overrides:
  • toString in class java.lang.Object

main

Throws:
  • java.io.IOException