Package org.opennms.netmgt.rrd
Class RrdMetaDataUtils
- java.lang.Object
-
- org.opennms.netmgt.rrd.RrdMetaDataUtils
-
public abstract class RrdMetaDataUtils extends Object
Provides static methods for interacting with .meta files.
-
-
Constructor Summary
Constructors Constructor Description RrdMetaDataUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
createMetaDataFile(String directory, String rrdName, Map<String,String> attributeMappings)
Writes a file with the attribute to rrd track mapping next to the rrd file.static Map<String,String>
readMetaDataFile(File directory, String rrdName)
-
-
-
Method Detail
-
createMetaDataFile
public static void createMetaDataFile(String directory, String rrdName, Map<String,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
- aMap
that represents the mapping of attributeId to rrd track names
-
-