A C F G H I J K M N O P R S T U V

A

accept(ProcessVisitor, int) - Method in class com.jezhumble.javasysmon.OsProcess
Method to allow visiting the process tree.

C

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).

F

FileUtils - Class in com.jezhumble.javasysmon
Convenience methods for interacting with the filesystem.
FileUtils() - Constructor for class com.jezhumble.javasysmon.FileUtils
 
find(int) - Method in class com.jezhumble.javasysmon.OsProcess
Finds and returns a particular node in the process tree by its id.

G

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.

H

header() - Static method in class com.jezhumble.javasysmon.ProcessInfo
Prints out a header that can be used along with ProcessInfo.toString() (assuming you use a monospace font).

I

infanticide() - Method in class com.jezhumble.javasysmon.JavaSysMon
Attempts to kill all the descendants of the currently running process.

J

JavaSysMon - Class in com.jezhumble.javasysmon
This class provides the main API for JavaSysMon.
JavaSysMon() - Constructor for class com.jezhumble.javasysmon.JavaSysMon
Creates a new JavaSysMon object through which to access the JavaSysMon API.

K

killProcess(int) - Method in class com.jezhumble.javasysmon.JavaSysMon
Attempts to kill the process identified by the integer id supplied.
killProcess(int) - Method in interface com.jezhumble.javasysmon.Monitor
Attempts to kill the process identified by the integer id supplied.
killProcessTree(int, boolean) - Method in class com.jezhumble.javasysmon.JavaSysMon
Kills the process tree starting at the process identified by pid.

M

main(String[]) - Static method in class com.jezhumble.javasysmon.JavaSysMon
This is the main entry point when running the jar directly.
MemoryStats - Class in com.jezhumble.javasysmon
This object represents a snapshot detailing the total memory of some type (physical or swap) available to the operating system, and the amount that is currently free.
MemoryStats(long, long) - Constructor for class com.jezhumble.javasysmon.MemoryStats
 
Monitor - Interface in com.jezhumble.javasysmon
This is the interface that needs to be implemented for any platform that JavaSysMon supports.

N

numCpus() - Method in class com.jezhumble.javasysmon.JavaSysMon
Get the number of CPU cores.
numCpus() - Method in interface com.jezhumble.javasysmon.Monitor
Get the number of CPU cores.

O

osName() - Method in class com.jezhumble.javasysmon.JavaSysMon
Get the operating system name.
osName() - Method in interface com.jezhumble.javasysmon.Monitor
Get the operating system name.
OsProcess - Class in com.jezhumble.javasysmon
This object represents a node in the process tree.

P

physical() - Method in class com.jezhumble.javasysmon.JavaSysMon
Gets the physical memory installed, and the amount free.
physical() - Method in interface com.jezhumble.javasysmon.Monitor
Gets the physical memory installed, and the amount free.
pidsFromProcFilesystem() - Method in class com.jezhumble.javasysmon.FileUtils
If you're using an operating system that supports the proc filesystem, this returns a list of all processes by reading the directories under /proc
processInfo() - Method in class com.jezhumble.javasysmon.OsProcess
Information about this process.
ProcessInfo - Class in com.jezhumble.javasysmon
This object represents JavaSysMon's understanding of a process.
ProcessInfo(int, int, String, String, String, long, long, long, long) - Constructor for class com.jezhumble.javasysmon.ProcessInfo
 
processTable() - Method in class com.jezhumble.javasysmon.JavaSysMon
Get the current process table.
processTable() - Method in interface com.jezhumble.javasysmon.Monitor
Get the current process table.
processTree() - Method in class com.jezhumble.javasysmon.JavaSysMon
Gets the current process table in the form of a process tree.
ProcessVisitor - Interface in com.jezhumble.javasysmon
Allows you to visit the process tree using JavaSysMon.visitProcessTree(int, com.jezhumble.javasysmon.ProcessVisitor)

R

runRegexOnFile(Pattern, String) - Method in class com.jezhumble.javasysmon.FileUtils
Runs a regular expression on a file, and returns the first match.

S

setMonitor(Monitor) - Static method in class com.jezhumble.javasysmon.JavaSysMon
Allows you to register your own implementation of Monitor.
slurp(String) - Method in class com.jezhumble.javasysmon.FileUtils
Given a filename, reads the entire file into a string.
slurpFromInputStream(InputStream) - Method in class com.jezhumble.javasysmon.FileUtils
Given an InputStream, reads the entire file into a string.
slurpToByteArray(String) - Method in class com.jezhumble.javasysmon.FileUtils
Given a filename, reads the entire file into a byte array.
swap() - Method in class com.jezhumble.javasysmon.JavaSysMon
Gets the amount of swap available to the operating system, and the amount that is free.
swap() - Method in interface com.jezhumble.javasysmon.Monitor
Gets the amount of swap available to the operating system, and the amount that is free.

T

toString() - Method in class com.jezhumble.javasysmon.MemoryStats
 
toString() - Method in class com.jezhumble.javasysmon.ProcessInfo
A one-line string representation of some of the information in this object that can be used to print out a single line in a process table.

U

uptimeInSeconds() - Method in class com.jezhumble.javasysmon.JavaSysMon
How long the system has been up in seconds.
uptimeInSeconds() - Method in interface com.jezhumble.javasysmon.Monitor
How long the system has been up in seconds.

V

visit(OsProcess, int) - Method in interface com.jezhumble.javasysmon.ProcessVisitor
Called on every node.
visitProcessTree(int, ProcessVisitor) - Method in class com.jezhumble.javasysmon.JavaSysMon
Allows you to visit the process tree, starting at the node identified by pid.

A C F G H I J K M N O P R S T U V

Copyright © 2009 ThoughtWorks. All Rights Reserved.