Package org.rrd4j

Examples of org.rrd4j.ConsolFun


  /**
   * @{inheritDoc}
   */
  public synchronized void store(final Item item, final String alias) {
    final String name = alias==null ? item.getName() : alias;
    ConsolFun function = getConsolidationFunction(item);
    RrdDb db = getDB(name, function);
    if(db!=null) {
      long now = System.currentTimeMillis()/1000;
      if(function!=ConsolFun.AVERAGE) {
        try {
View Full Code Here


  }
 
  @Override
  public Iterable<HistoricItem> query(FilterCriteria filter) {
    String itemName = filter.getItemName();
    ConsolFun consolidationFunction = getConsolidationFunction(itemName);
    RrdDb db = getDB(itemName, consolidationFunction);
    if(db!=null) {
      long start = 0L;
      long end = filter.getEndDate()==null ? System.currentTimeMillis()/1000 - 1 : filter.getEndDate().getTime()/1000;
View Full Code Here

TOP

Related Classes of org.rrd4j.ConsolFun

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.