Class RrdGraphInfo


  • public class RrdGraphInfo
    extends Object
    Class to represent successfully created Rrd4j graph. Objects of this class are created by method RrdGraph.getRrdGraphInfo().
    • Constructor Detail

      • RrdGraphInfo

        RrdGraphInfo()
    • Method Detail

      • addPrintLine

        void addPrintLine​(String printLine)
      • getFilename

        public String getFilename()
        Returns filename of the graph
        Returns:
        filename of the graph. '-' denotes in-memory graph (no file created)
      • getWidth

        public int getWidth()
        Returns total graph width
        Returns:
        total graph width
      • getHeight

        public int getHeight()
        Returns total graph height
        Returns:
        total graph height
      • getBytes

        public byte[] getBytes()
        Returns graph bytes
        Returns:
        Graph bytes
        Throws:
        IllegalStateException - if the images bytes are unavailable or can't be read
      • getByteCount

        public int getByteCount()
        Returns the number of bytes in the graph file
        Returns:
        Length of the graph file
        Throws:
        IllegalStateException - if the images bytes are unavailable
      • dump

        public String dump()
        Dumps complete graph information. Useful for debugging purposes.
        Returns:
        String containing complete graph information