|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jasmine.monitoring.mbeancmd.audit.FileCollector
public class FileCollector
| Constructor Summary | |
|---|---|
FileCollector(java.io.File file)
Constructor from a file |
|
FileCollector(java.io.InputStream in)
Constructor from an input stream (e.g. |
|
| Method Summary | |
|---|---|
void |
enableStatistics()
Enable statistics. |
java.util.HashMap<java.lang.String,Metric> |
getBaseline()
|
java.util.LinkedList<Metric> |
getPoll()
|
java.lang.String |
getSeparator()
|
java.util.LinkedList<Metric> |
getStats(java.lang.String attr)
Builds a LinkedList of metrics from the computed statistics Each metrics as a list of attributes derived from attr through the scan - average: mean value for the full scan - averageNonZero: mean value, considering only non null values - minNotzero: the minimal not null value - max: maximum value |
void |
scan()
Scans the file or input stream |
void |
setAttributes(java.lang.String[] attributes)
Set the attributes to scan |
void |
setSeparator(java.lang.String separator)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileCollector(java.io.InputStream in)
in -
public FileCollector(java.io.File file)
throws java.io.FileNotFoundException
file -
java.io.FileNotFoundException| Method Detail |
|---|
public void scan()
public java.util.LinkedList<Metric> getPoll()
public java.util.HashMap<java.lang.String,Metric> getBaseline()
public java.util.LinkedList<Metric> getStats(java.lang.String attr)
attr -
public void setAttributes(java.lang.String[] attributes)
attributes - public java.lang.String getSeparator()
public void setSeparator(java.lang.String separator)
separator - the separator to setpublic void enableStatistics()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||