org.opennms.netmgt.dao.support
Class ResourceTypeUtils
java.lang.Object
org.opennms.netmgt.dao.support.ResourceTypeUtils
public class ResourceTypeUtils
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DS_PROPERTIES_FILE
public static String DS_PROPERTIES_FILE
getAttributesAtRelativePath
public static Set<OnmsAttribute> getAttributesAtRelativePath(File rrdDirectory,
String relativePath)
getDsProperties
public static Properties getDsProperties(File directory)
getRrdFileForDs
public static File getRrdFileForDs(File directory,
String ds)
isStoreByGroup
public static boolean isStoreByGroup()
isResponseTime
public static boolean isResponseTime(String relativePath)
getStringProperties
public static Properties getStringProperties(File rrdDirectory,
String relativePath)
getProperties
public static Properties getProperties(File file)
log
public static Category log()
saveUpdatedProperties
public static void saveUpdatedProperties(File propertiesFile,
Properties props)
throws FileNotFoundException,
IOException
- Throws:
FileNotFoundException
IOException
updateDsProperties
public static void updateDsProperties(File resourceDir,
Map<String,String> dsNamesToRrdNames)
updateStringProperty
public static void updateStringProperty(File resourceDir,
String attrVal,
String attrName)
throws FileNotFoundException,
IOException
- Throws:
FileNotFoundException
IOException
getStringProperty
public static String getStringProperty(File directory,
String key)
Copyright © 2009. All Rights Reserved.