Package org.jrobin.core

Examples of org.jrobin.core.RrdException


   * @throws RrdException Thrown if parsed XML template contains invalid (unrecognized) tags
   */
  public RrdGraphDef getRrdGraphDef() throws RrdException {
    // basic check
    if (!root.getTagName().equals("rrd_graph_def")) {
      throw new RrdException("XML definition must start with <rrd_graph_def>");
    }
    validateTagsOnlyOnce(root, new String[] {"filename", "span", "options", "datasources", "graph"});
    rrdGraphDef = new RrdGraphDef();
    // traverse all nodes
    Node[] childNodes = getChildNodes(root);
View Full Code Here


    }
    if (timestamp != Long.MIN_VALUE && color != null) {
      rrdGraphDef.vrule(timestamp, color, legend);
    }
    else {
      throw new RrdException("Incomplete VRULE settings");
    }
  }
View Full Code Here

    }
    if (!Double.isNaN(value) && color != null) {
      rrdGraphDef.hrule(value, color, legend);
    }
    else {
      throw new RrdException("Incomplete HRULE settings");
    }
  }
View Full Code Here

      else {
        rrdGraphDef.print(datasource, cf, format);
      }
    }
    else {
      throw new RrdException("Incomplete " + (isInGraph ? "GRPINT" : "PRINT") + " settings");
    }
  }
View Full Code Here

      else {
        rrdGraphDef.stack(datasource, BLIND_COLOR, legend);
      }
    }
    else {
      throw new RrdException("Incomplete STACK settings");
    }
  }
View Full Code Here

      else {
        rrdGraphDef.line(datasource, BLIND_COLOR, legend, width);
      }
    }
    else {
      throw new RrdException("Incomplete LINE settings");
    }
  }
View Full Code Here

      else {
        rrdGraphDef.area(datasource, BLIND_COLOR, legend);
      }
    }
    else {
      throw new RrdException("Incomplete AREA settings");
    }
  }
View Full Code Here

    }
    if (name != null && source != null && cf != null) {
      rrdGraphDef.datasource(name, source, cf);
    }
    else {
      throw new RrdException("Incomplete SDEF settings");
    }
  }
View Full Code Here

    }
    if (name != null && rpn != null) {
      rrdGraphDef.datasource(name, rpn);
    }
    else {
      throw new RrdException("Incomplete CDEF settings");
    }
  }
View Full Code Here

    }
    if (name != null && rrd != null && source != null && cf != null) {
      rrdGraphDef.datasource(name, rrd, source, cf, backend);
    }
    else {
      throw new RrdException("Incomplete DEF settings");
    }
  }
View Full Code Here

TOP

Related Classes of org.jrobin.core.RrdException

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.