public class ProcDataSource extends Object
/proc/
. See proc(5) for details about this.
This class is inherently unportable, but a _lot_ of Linux code needs refactoring
before it can be make package private
Note that different Unix-like OSs may or may not have a /proc (and the format may be different)
for example Darwin/OSX doesn't have /procConstructor and Description |
---|
ProcDataSource() |
Modifier and Type | Method and Description |
---|---|
Reader |
getCpuInfoReader()
Returns a reader for /proc/cpuinfo
|
Reader |
getCpuLoadReader()
Returns a reader for /proc/loadavg
|
Reader |
getEnvironReader(int pid)
Returns a reader for /proc/$PID/environ
|
Reader |
getIoReader(int pid)
Returns a reader for /proc/$PID/io
|
Reader |
getMemInfoReader()
Returns a reader for /proc/meminfo
|
Reader |
getNumaMapsReader(int pid)
Returns a reader for /proc/$PID/numa_maps
|
Reader |
getStatReader()
Returns a reader for /proc/stat.
|
Reader |
getStatReader(int pid)
Returns a reader for /proc/$PID/stat
|
Reader |
getStatusReader(int pid)
Returns a reader for /proc/$PID/status
|
public Reader getCpuInfoReader() throws IOException
IOException
public Reader getCpuLoadReader() throws IOException
IOException
public Reader getStatReader() throws IOException
IOException
public Reader getMemInfoReader() throws IOException
IOException
public Reader getEnvironReader(int pid) throws IOException
IOException
public Reader getIoReader(int pid) throws IOException
IOException
public Reader getStatReader(int pid) throws IOException
IOException
public Reader getStatusReader(int pid) throws IOException
IOException
public Reader getNumaMapsReader(int pid) throws IOException
IOException
Copyright © 2017. All rights reserved.