Class RrdMetaDataUtils


  • public abstract class RrdMetaDataUtils
    extends java.lang.Object
    Provides static methods for interacting with .meta files.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void createMetaDataFile​(java.lang.String directory, java.lang.String rrdName, java.util.Map<java.lang.String,​java.lang.String> attributeMappings)
      Writes a file with the attribute to rrd track mapping next to the rrd file.
      static java.util.Map<java.lang.String,​java.lang.String> readMetaDataFile​(java.io.File directory, java.lang.String rrdName)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RrdMetaDataUtils

        public RrdMetaDataUtils()
    • Method Detail

      • createMetaDataFile

        public static void createMetaDataFile​(java.lang.String directory,
                                              java.lang.String rrdName,
                                              java.util.Map<java.lang.String,​java.lang.String> attributeMappings)
        Writes a file with the attribute to rrd track mapping next to the rrd file. attributMappings = Key(attributeId, for example SNMP OID or JMX bean) = value(Name of data source, for example ifInOctets)
        Parameters:
        directory -
        rrdName -
        attributeMappings - a Map that represents the mapping of attributeId to rrd track names
      • readMetaDataFile

        public static java.util.Map<java.lang.String,​java.lang.String> readMetaDataFile​(java.io.File directory,
                                                                                              java.lang.String rrdName)