|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.dao.support.ResourceTypeUtils
public class ResourceTypeUtils
ResourceTypeUtils class.
| Field Summary | |
|---|---|
static String |
DS_PROPERTIES_FILE
Constant DS_PROPERTIES_FILE="ds.properties" |
| Method Summary | |
|---|---|
static Set<OnmsAttribute> |
getAttributesAtRelativePath(File rrdDirectory,
String relativePath)
getAttributesAtRelativePath |
static Properties |
getDsProperties(File directory)
getDsProperties |
static Properties |
getProperties(File file)
getProperties |
static File |
getRrdFileForDs(File directory,
String ds)
getRrdFileForDs |
static Properties |
getStringProperties(File rrdDirectory,
String relativePath)
getStringProperties |
static String |
getStringProperty(File directory,
String key)
getStringProperty |
static boolean |
isResponseTime(String relativePath)
isResponseTime |
static boolean |
isStoreByGroup()
isStoreByGroup |
static ThreadCategory |
log()
log |
static void |
saveUpdatedProperties(File propertiesFile,
Properties props)
saveUpdatedProperties |
static void |
updateDsProperties(File resourceDir,
Map<String,String> dsNamesToRrdNames)
updateDsProperties |
static void |
updateStringProperty(File resourceDir,
String attrVal,
String attrName)
updateStringProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String DS_PROPERTIES_FILE
DS_PROPERTIES_FILE="ds.properties"
| Method Detail |
|---|
public static Set<OnmsAttribute> getAttributesAtRelativePath(File rrdDirectory,
String relativePath)
getAttributesAtRelativePath
rrdDirectory - a File object.relativePath - a String object.
Set object.public static Properties getDsProperties(File directory)
getDsProperties
directory - a File object.
Properties object.
public static File getRrdFileForDs(File directory,
String ds)
getRrdFileForDs
directory - a File object.ds - a String object.
File object.public static boolean isStoreByGroup()
isStoreByGroup
public static boolean isResponseTime(String relativePath)
isResponseTime
relativePath - a String object.
public static Properties getStringProperties(File rrdDirectory,
String relativePath)
getStringProperties
rrdDirectory - a File object.relativePath - a String object.
Properties object.public static Properties getProperties(File file)
getProperties
file - a File object.
Properties object.public static ThreadCategory log()
log
ThreadCategory object.
public static void saveUpdatedProperties(File propertiesFile,
Properties props)
throws FileNotFoundException,
IOException
saveUpdatedProperties
propertiesFile - a File object.props - a Properties object.
FileNotFoundException - if any.
IOException - if any.
public static void updateDsProperties(File resourceDir,
Map<String,String> dsNamesToRrdNames)
updateDsProperties
resourceDir - a File object.dsNamesToRrdNames - a Map object.
public static void updateStringProperty(File resourceDir,
String attrVal,
String attrName)
throws FileNotFoundException,
IOException
updateStringProperty
resourceDir - a File object.attrVal - a String object.attrName - a String object.
FileNotFoundException - if any.
IOException - if any.
public static String getStringProperty(File directory,
String key)
getStringProperty
directory - a File object.key - a String object.
String object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||