org.opennms.netmgt.dao.support
Class ResourceTypeUtils

java.lang.Object
  extended by org.opennms.netmgt.dao.support.ResourceTypeUtils

public class ResourceTypeUtils
extends Object


Field Summary
static String DS_PROPERTIES_FILE
           
 
Method Summary
static Set<OnmsAttribute> getAttributesAtRelativePath(File rrdDirectory, String relativePath)
           
static Properties getDsProperties(File directory)
           
static Properties getProperties(File file)
           
static File getRrdFileForDs(File directory, String ds)
           
static Properties getStringProperties(File rrdDirectory, String relativePath)
           
static String getStringProperty(File directory, String key)
           
static boolean isResponseTime(String relativePath)
           
static boolean isStoreByGroup()
           
static Category log()
           
static void saveUpdatedProperties(File propertiesFile, Properties props)
           
static void updateDsProperties(File resourceDir, Map<String,String> dsNamesToRrdNames)
           
static void updateStringProperty(File resourceDir, String attrVal, String attrName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DS_PROPERTIES_FILE

public static String DS_PROPERTIES_FILE
Method Detail

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.