Search in sources :

Example 1 with DataSet

use of org.collectd.api.DataSet in project jcollectd by collectd.

the class TypesDB method load.

public void load(InputStream is) throws IOException {
    BufferedReader reader = new BufferedReader(new InputStreamReader(is));
    String line;
    while ((line = reader.readLine()) != null) {
        DataSet ds;
        ds = DataSet.parseDataSet(line);
        if (ds != null) {
            String type = ds.getType();
            List<DataSource> dsrc = ds.getDataSources();
            this._types.put(type, dsrc);
        }
    }
}
Also used : InputStreamReader(java.io.InputStreamReader) DataSet(org.collectd.api.DataSet) BufferedReader(java.io.BufferedReader) DataSource(org.collectd.api.DataSource)

Aggregations

BufferedReader (java.io.BufferedReader)1 InputStreamReader (java.io.InputStreamReader)1 DataSet (org.collectd.api.DataSet)1 DataSource (org.collectd.api.DataSource)1