|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.clif.probe.memory.linux.GenericProbe
public class GenericProbe
Linux generic memory probe intended to be more impervious to /proc file format changes. Reads data from /proc/meminfo, supposed to be formatted as a list of "attribute: value [unit]" lines.
Constructor Summary | |
---|---|
GenericProbe(java.lang.String[] fields)
Creates a new memory probe that will return only the mentioned attributes' values, in the very same order. |
Method Summary | |
---|---|
long[] |
getData()
Reads the system data source file for memory usage, and returns the values of attributes of interest. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenericProbe(java.lang.String[] fields) throws java.lang.Exception
fields
- names of attributes of interest.
java.lang.Exception
- an attribute name does not existgetData()
Method Detail |
---|
public long[] getData() throws java.io.IOException
java.io.IOException
- for some reason, the system data source file
could not be read, or more probably the file format is not
compatible with this probe.GenericProbe(String[])
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |