@Test public void testGetDsNames() throws Exception { createMockSineRrds(null); final List<String> dsNames = m_converter.getDsNames(m_sineFull); assertTrue(dsNames.contains("a")); assertEquals(2, dsNames.size()); }
public List<String> getDsNames(final File rrdFile) throws ConverterException { try { final RrdDb db = new RrdDb(rrdFile.getAbsolutePath(), true); return Arrays.asList(db.getDsNames()); } catch (final Exception e) { LogUtils.debugf(JRobinConverter.class, e, "error reading file %s", rrdFile); throw new ConverterException(e); } }
JRobinConverter { public List<String> getDsNames(final File rrdFile) throws ConverterException { try { final RrdDb db = new RrdDb(rrdFile.getAbsolutePath(), true); return Arrays.asList(db.getDsNames()); } catch (final Exception e) { LogUtils.debugf(JRobinConverter.class, e, "error reading file %s", rrdFile); throw new ConverterException(e); } } }
JRobinConverter { public List<String> getDsNames(final File rrdFile) throws ConverterException { try { final RrdDb db = new RrdDb(rrdFile.getAbsolutePath(), true); return Arrays.asList(db.getDsNames()); } catch (final Exception e) { LogUtils.debugf(JRobinConverter.class, e, "error reading file %s", rrdFile); throw new ConverterException(e); } }  }
JRobinConverter { public List<String> getDsNames(final File rrdFile) throws ConverterException { try { final RrdDb db = new RrdDb(rrdFile.getAbsolutePath(), true); return Arrays.asList(db.getDsNames()); } catch (final Exception e) { LogUtils.debugf(JRobinConverter.class, e, "error reading file %s", rrdFile); throw new ConverterException(e); } }  static void main(final String[] args); void execute(final String[] args); List<File> getMatchingGroupRrds(final File rrdGroupFile); List<String> getDsNames(final File rrdFile); List<String> getRras(final File rrdFile); Map<String, Integer> getDsIndexes(final RrdDb rrd); void consolidateRrdFile(final File groupFile, final File outputFile); List<File> findRrds(final File topDirectory); List<File> findGroupRrds(final File topDirectory); void findRrds(final File directory, final List<File> files); File createTempRrd(final File rrdFile); boolean moveFileSafely(final File in, final File out); }
JRobinConverter { public List<String> getDsNames(final File rrdFile) throws ConverterException { try { final RrdDb db = new RrdDb(rrdFile.getAbsolutePath(), true); return Arrays.asList(db.getDsNames()); } catch (final Exception e) { LogUtils.debugf(JRobinConverter.class, e, "error reading file %s", rrdFile); throw new ConverterException(e); } }  static void main(final String[] args); void execute(final String[] args); List<File> getMatchingGroupRrds(final File rrdGroupFile); List<String> getDsNames(final File rrdFile); List<String> getRras(final File rrdFile); Map<String, Integer> getDsIndexes(final RrdDb rrd); void consolidateRrdFile(final File groupFile, final File outputFile); List<File> findRrds(final File topDirectory); List<File> findGroupRrds(final File topDirectory); void findRrds(final File directory, final List<File> files); File createTempRrd(final File rrdFile); boolean moveFileSafely(final File in, final File out);  }