/**
  * Creates the RRD repository.
  *
  * @return the RRD repository
  * @throws IOException Signals that an I/O exception has occurred.
  */
 private RrdRepository createRrdRepository(String collection) throws IOException {
   XmlRrd rrd = m_xmlCollectionDao.getDataCollectionByName(collection).getXmlRrd();
   RrdRepository repository = new RrdRepository();
   repository.setRrdBaseDir(getSnmpRootDirectory());
   repository.setHeartBeat(rrd.getStep() * 2);
   repository.setStep(rrd.getStep());
   repository.setRraList(rrd.getXmlRras());
   return repository;
 }
Beispiel #2
0
 /** {@inheritDoc} */
 @Override
 public File getResourceDir(final RrdRepository repository) {
   File domainDir = new File(repository.getRrdBaseDir(), getDomain());
   File aliasDir = new File(domainDir, getAliasDir());
   return aliasDir;
 }