Package nz.co.abrahams.asithappens.collectors

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


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


        } catch (SNMPException e) {
            point[0] = new DataPoint(currentTime);
            logger.warn("Timeout fetching storage used");
        }
       
        return new DataCollectorResponse(point, new String[0], dataType.initialSetCount());
    }
View Full Code Here

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

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

     *      the maximum limit
     * </ul>
     */
    public void collect() {
        //DataPoint[] newData;
        DataCollectorResponse response;

        try {
            response = collector.getNextValues(headings);
            //logger.debug("DataSets description: " + toString());
            //logger.debug(dumpData());
View Full Code Here

        }
        for (int set = 0; set < setCount; set++ ) {
            points[set].setValue(points[set].getValue() * 8 / ( pollInterval / 1000 ) );
        }
       
        return new DataCollectorResponse(points, (String[])newSets.toArray(new String[newSets.size()]), setCount);
    }
View Full Code Here

                //responseTime = System.currentTimeMillis() - startTime;
                //System.out.println("Timeout " + responseTime);
            }
            point[0] = new DataPoint(startTime, (double)responseTime);
    
            return new DataCollectorResponse(point, new String[0], dataType.initialSetCount());
        }
        catch (IOException e) {
            point[0] = new DataPoint(startTime, timeout);
        }
        return new DataCollectorResponse(point, new String[0], dataType.initialSetCount());
    }
View Full Code Here

                }
            }
            if ( point[0] == null )
                point[0] = new DataPoint(currentTime, timeout);
            sequence++;
            return new DataCollectorResponse(point, new String[0], dataType.initialSetCount());
        } catch (InterruptedException e) {
            e.printStackTrace();
            point[0] = new DataPoint(currentTime, 0);
            return new DataCollectorResponse(point, new String[0], dataType.initialSetCount());
        }
    }
View Full Code Here

                returnData[dir] = new DataPoint(collectTime);
                logger.warn("Error collecting bandwith values from " + device);
            }
           
        }
        return new DataCollectorResponse(returnData, new String[0], setCount);
    }
View Full Code Here

        } catch (SNMPException e) {
            point[0] = new DataPoint(currentTime);
            logger.warn("Timeout fetching storage used");
        }
       
        return new DataCollectorResponse(point, new String[0], dataType.initialSetCount());
    }
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.