private Path toPath(final ResourcePath path) { return m_rrdDirectory.getAbsoluteFile().toPath().resolve(ResourcePath.resourceToFilesystemPath(path)); }
@Override public Set<OnmsAttribute> getAttributes(ResourcePath path) { return RrdResourceAttributeUtils.getAttributesAtRelativePath(m_rrdDirectory, ResourcePath.resourceToFilesystemPath(path).toString(), RRD_EXTENSION); }
private File getResourceDir(ResourceIdentifier resource) throws FileNotFoundException { return new File(baseDir).toPath() .resolve(ResourcePath.resourceToFilesystemPath(resource.getPath())) .toFile(); }
private String getResourceDir(ResourceIdentifier resource) throws FileNotFoundException { return m_repository.getRrdBaseDir().toPath().resolve(ResourcePath.resourceToFilesystemPath(resource.getPath())).toAbsolutePath().toString(); }
private String getResourceDir(ResourceIdentifier resource) throws FileNotFoundException { return m_repository.getRrdBaseDir().toPath().resolve(ResourcePath.resourceToFilesystemPath(resource.getPath())).toAbsolutePath().toString(); }
@Override public Map<String, String> getStringAttributes(ResourcePath path) { Properties props = RrdResourceAttributeUtils.getStringProperties(m_rrdDirectory, ResourcePath.resourceToFilesystemPath(path).toString()); return Maps.fromProperties(props); }
@Override public Map<String, String> getMetaData(ResourcePath path) { return RrdMetaDataUtils.readMetaDataFile(getRrdDirectory(), ResourcePath.resourceToFilesystemPath(path).toString()); }