Class GetProcData
java.lang.Object
org.deltava.dao.file.DAO
org.deltava.dao.file.GetProcData
A Data Access Object to read from the Linux /proc filesystem.
- Since:
- 1.0
- Version:
- 9.1
- Author:
- Luke
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.deltava.dao.file.DAO
getReader, getStream, setBufferSize
-
Constructor Details
-
GetProcData
public GetProcData()Initializes the Data Access Object.
-
-
Method Details
-
getUptime
Retrieves system uptime from /proc/uptime.- Returns:
- the machine's uptime in milliseconds
- Throws:
DAOException
- if an I/O error occurs
-
getLoad
Returns the system load average from /proc/loadavg.- Returns:
- a List of doubles, with processes waiting in the last 1, 5 and 15 minutes
- Throws:
DAOException
- if an I/O error occurs
-
getMemory
Returns system memory data from /proc/meminfo.- Returns:
- a Map of Integers, keyed by value
- Throws:
DAOException
- if an I/O error occurs
-