コード例 #1
0
 /**
  * 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;
 }
コード例 #2
0
ファイル: AliasedResource.java プロジェクト: jiajp/opennms
 /** {@inheritDoc} */
 @Override
 public File getResourceDir(final RrdRepository repository) {
   File domainDir = new File(repository.getRrdBaseDir(), getDomain());
   File aliasDir = new File(domainDir, getAliasDir());
   return aliasDir;
 }