Package org.opennms.netmgt.rrd
Class RrdMetaDataUtils
- java.lang.Object
-
- org.opennms.netmgt.rrd.RrdMetaDataUtils
-
public abstract class RrdMetaDataUtils extends java.lang.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(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)
-
-
-
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
- aMap
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)
-
-