- children() - Method in class com.jezhumble.javasysmon.OsProcess
-
Gets the list of child processes of this object.
- com.jezhumble.javasysmon - package com.jezhumble.javasysmon
-
JavaSysMon is designed to provide an OS-independent way to get live system information,
such as CPU and memory usage, and manage processes, distributed as a single jar file.
- cpuFrequencyInHz() - Method in class com.jezhumble.javasysmon.JavaSysMon
-
Get the CPU frequency in Hz
- cpuFrequencyInHz() - Method in interface com.jezhumble.javasysmon.Monitor
-
Get the CPU frequency in Hz
- CpuTimes - Class in com.jezhumble.javasysmon
-
This object represents a snapshot detailing the total time the CPUs have spent
idle, in user mode, and in kernel mode.
- CpuTimes(long, long, long) - Constructor for class com.jezhumble.javasysmon.CpuTimes
-
- cpuTimes() - Method in class com.jezhumble.javasysmon.JavaSysMon
-
Gets a snapshot which contains the total amount
of time the CPU has spent in user mode, kernel mode,
and idle.
- cpuTimes() - Method in interface com.jezhumble.javasysmon.Monitor
-
Gets a snapshot which contains the total amount
of time the CPU has spent in user mode, kernel mode,
and idle.
- createTree(ProcessInfo[]) - Static method in class com.jezhumble.javasysmon.OsProcess
-
This method is the only way to create an OsProcess object.
- currentPid() - Method in class com.jezhumble.javasysmon.JavaSysMon
-
Gets the pid of the process that is calling this method
(assuming it is running in the same process).
- currentPid() - Method in interface com.jezhumble.javasysmon.Monitor
-
Gets the pid of the process that is calling this method
(assuming it is running in the same process).
- getCommand() - Method in class com.jezhumble.javasysmon.ProcessInfo
-
The command that was originally used to start this process.
- getCpuUsage(CpuTimes) - Method in class com.jezhumble.javasysmon.CpuTimes
-
Gets the CPU usage given a previous snapshot of CPU times.
- getFreeBytes() - Method in class com.jezhumble.javasysmon.MemoryStats
-
The amount of memory that is currently free, in bytes.
- getIdleMillis() - Method in class com.jezhumble.javasysmon.CpuTimes
-
The total time in milliseconds that the CPUs have spent idle.
- getName() - Method in class com.jezhumble.javasysmon.ProcessInfo
-
The name of this process.
- getOwner() - Method in class com.jezhumble.javasysmon.ProcessInfo
-
The name of the owner of this process.
- getParentPid() - Method in class com.jezhumble.javasysmon.ProcessInfo
-
The id of the parent process of this parent
- getPid() - Method in class com.jezhumble.javasysmon.ProcessInfo
-
The id of this process
- getResidentBytes() - Method in class com.jezhumble.javasysmon.ProcessInfo
-
The number of bytes used by this process that are currently in physical
memory.
- getSystemMillis() - Method in class com.jezhumble.javasysmon.CpuTimes
-
The total time in milliseconds that the CPUs have spent in kernel mode.
- getSystemMillis() - Method in class com.jezhumble.javasysmon.ProcessInfo
-
The number of milliseconds that this process has been running
on the CPUs in kernel mode.
- getTotalBytes() - Method in class com.jezhumble.javasysmon.MemoryStats
-
The amount of memory that is available to the operating system,
in bytes.
- getTotalBytes() - Method in class com.jezhumble.javasysmon.ProcessInfo
-
The total size of this process in bytes.
- getTotalMillis() - Method in class com.jezhumble.javasysmon.CpuTimes
-
The total time in milliseconds that the CPUs have been alive since the system
was last booted.
- getUserMillis() - Method in class com.jezhumble.javasysmon.CpuTimes
-
The total time in milliseconds that the CPUs have spent in user mode.
- getUserMillis() - Method in class com.jezhumble.javasysmon.ProcessInfo
-
The number of milliseconds that this process has been running
on the CPUs in user mode.