Package nz.co.abrahams.asithappens.collectors

Examples of nz.co.abrahams.asithappens.collectors.DataCollectorResponse


                returnData[i] = new DataPoint(currentTime);
            }
            logger.warn("Timeout fetching processor load");
        }
       
        return new DataCollectorResponse(returnData, new String[0], dataType.initialSetCount());
    }
View Full Code Here


            for ( i = 0; i < fetchedTableSize; i++ ) {
                if ( mappings[i] != -1 )
                    points[mappings[i]].setValue(rates[i]);
            }
            //return new DataCollectorResponse(points, (String[])newSets.toArray(), setCount);
            return new DataCollectorResponse(points, (String[])newSets.toArray(new String[newSets.size()]), setCount);
        } catch (Exception e) {
            logger.warn("Exception collecting values: " + e);
            e.printStackTrace();
            points = new DataPoint[setCount];
            for (int set = 0; set < setCount; set++ )
                points[set] = new DataPoint(currentTime, 0);
            //return new DataCollectorResponse(points, (String[])newSets.toArray(), setCount);
            return new DataCollectorResponse(points, (String[])newSets.toArray(new String[newSets.size()]), setCount);
        }
    }
View Full Code Here

            for (int i = 0; i < oids.size(); i++) {
                returnData[i] = new DataPoint(currentTime);
            }
            logger.warn("Timeout fetching OID values");
        }
        return new DataCollectorResponse(returnData,
                new String[0], oids.size());
    }
View Full Code Here

TOP

Related Classes of nz.co.abrahams.asithappens.collectors.DataCollectorResponse

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.