public class FileSystemCacheFileInfoImpl extends Object implements ConfigurationCacheFileInfo
| Modifier and Type | Field and Description |
|---|---|
private FileSystemConfigurationCache |
cache |
private Path |
dirPath |
private String |
expectedFilename |
private int |
expectedFilenameLength |
| Constructor and Description |
|---|
FileSystemCacheFileInfoImpl(FileSystemConfigurationCache cache,
Path dirPath,
String expectedFilename) |
| Modifier and Type | Method and Description |
|---|---|
java.util.stream.Stream<WriteableConfiguration> |
getCachedConfigurations() |
WriteableConfiguration |
getConfiguration(Integer version) |
Integer |
getVersionIfMatch(String filename) |
private final FileSystemConfigurationCache cache
private final Path dirPath
private final String expectedFilename
private final int expectedFilenameLength
public FileSystemCacheFileInfoImpl(FileSystemConfigurationCache cache, Path dirPath, String expectedFilename)
public Integer getVersionIfMatch(String filename)
getVersionIfMatch in interface ConfigurationCacheFileInfopublic java.util.stream.Stream<WriteableConfiguration> getCachedConfigurations() throws IOException
getCachedConfigurations in interface ConfigurationCacheFileInfoIOExceptionpublic WriteableConfiguration getConfiguration(Integer version) throws ConfigurationProviderException
getConfiguration in interface ConfigurationCacheFileInfoConfigurationProviderExceptionCopyright © 2017 Apache NiFi Project. All rights reserved.