@Test public void testGetAttributesAtRelativePathWithBogusDirectory() { File bogusRrdDirectory = new File("/foo/bogus/blam/cheese/this/really/should/never/exist"); assertFalse("bogus RRD directory " + bogusRrdDirectory + " should not exist", bogusRrdDirectory.exists()); ResourceTypeUtils.getAttributesAtRelativePath(bogusRrdDirectory, "also-should-never-exist"); }
public static Set<OnmsAttribute> getAttributesAtRelativePath(File rrdDirectory, String relativePath) { Set<OnmsAttribute> attributes = new HashSet<OnmsAttribute>(); loadRrdAttributes(rrdDirectory, relativePath, attributes); loadStringAttributes(rrdDirectory, relativePath, attributes); return attributes; }
ResourceTypeUtils { public static Set<OnmsAttribute> getAttributesAtRelativePath(File rrdDirectory, String relativePath) { Set<OnmsAttribute> attributes = new HashSet<OnmsAttribute>(); loadRrdAttributes(rrdDirectory, relativePath, attributes); loadStringAttributes(rrdDirectory, relativePath, attributes); return attributes; } }
ResourceTypeUtils { public static Set<OnmsAttribute> getAttributesAtRelativePath(File rrdDirectory, String relativePath) { Set<OnmsAttribute> attributes = new HashSet<OnmsAttribute>(); loadRrdAttributes(rrdDirectory, relativePath, attributes); loadStringAttributes(rrdDirectory, relativePath, attributes); return attributes; }  }
ResourceTypeUtils { public static Set<OnmsAttribute> getAttributesAtRelativePath(File rrdDirectory, String relativePath) { Set<OnmsAttribute> attributes = new HashSet<OnmsAttribute>(); loadRrdAttributes(rrdDirectory, relativePath, attributes); loadStringAttributes(rrdDirectory, relativePath, attributes); return attributes; }  static Set<OnmsAttribute> getAttributesAtRelativePath(File rrdDirectory, String relativePath); static Properties getDsProperties(File directory); static File getRrdFileForDs(File directory, String ds); static boolean isStoreByGroup(); static boolean isStoreByForeignSource(); static boolean isResponseTime(String relativePath); static Properties getStringProperties(File rrdDirectory, String relativePath); static Properties getProperties(File file); static ThreadCategory 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); static String getStringProperty(File directory, String key); static File getRelativeNodeSourceDirectory(String nodeSource); }
ResourceTypeUtils { public static Set<OnmsAttribute> getAttributesAtRelativePath(File rrdDirectory, String relativePath) { Set<OnmsAttribute> attributes = new HashSet<OnmsAttribute>(); loadRrdAttributes(rrdDirectory, relativePath, attributes); loadStringAttributes(rrdDirectory, relativePath, attributes); return attributes; }  static Set<OnmsAttribute> getAttributesAtRelativePath(File rrdDirectory, String relativePath); static Properties getDsProperties(File directory); static File getRrdFileForDs(File directory, String ds); static boolean isStoreByGroup(); static boolean isStoreByForeignSource(); static boolean isResponseTime(String relativePath); static Properties getStringProperties(File rrdDirectory, String relativePath); static Properties getProperties(File file); static ThreadCategory 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); static String getStringProperty(File directory, String key); static File getRelativeNodeSourceDirectory(String nodeSource); static String DS_PROPERTIES_FILE; }