public class RepositoryScannerInstance extends Object implements FileVisitor<Path>
Constructor and Description |
---|
RepositoryScannerInstance(ManagedRepository repository,
List<KnownRepositoryContentConsumer> knownConsumerList,
List<InvalidRepositoryContentConsumer> invalidConsumerList) |
RepositoryScannerInstance(ManagedRepository repository,
List<KnownRepositoryContentConsumer> knownContentConsumers,
List<InvalidRepositoryContentConsumer> invalidContentConsumers,
long changesSince) |
Modifier and Type | Method and Description |
---|---|
void |
addFileNameExcludePattern(String fileNamePattern) |
void |
addFileNameIncludePattern(String fileNamePattern) |
long |
getChangesSince() |
Map<String,Long> |
getConsumerCounts() |
Map<String,Long> |
getConsumerTimings() |
List<String> |
getFileNameExcludePattern() |
List<String> |
getFileNameIncludePattern() |
ManagedRepository |
getRepository() |
RepositoryScanStatistics |
getStatistics() |
RepositoryScanStatistics |
getStats() |
FileVisitResult |
postVisitDirectory(Path dir,
IOException exc) |
FileVisitResult |
preVisitDirectory(Path dir,
BasicFileAttributes attrs) |
void |
setFileNameExcludePattern(List<String> fileNamePattern) |
void |
setFileNameIncludePattern(List<String> fileNamePattern) |
FileVisitResult |
visitFile(Path file,
BasicFileAttributes attrs) |
FileVisitResult |
visitFileFailed(Path file,
IOException exc) |
public RepositoryScannerInstance(ManagedRepository repository, List<KnownRepositoryContentConsumer> knownConsumerList, List<InvalidRepositoryContentConsumer> invalidConsumerList)
public RepositoryScannerInstance(ManagedRepository repository, List<KnownRepositoryContentConsumer> knownContentConsumers, List<InvalidRepositoryContentConsumer> invalidContentConsumers, long changesSince)
public RepositoryScanStatistics getStatistics()
public Map<String,Long> getConsumerTimings()
public Map<String,Long> getConsumerCounts()
public ManagedRepository getRepository()
public RepositoryScanStatistics getStats()
public long getChangesSince()
public List<String> getFileNameIncludePattern()
public void setFileNameIncludePattern(List<String> fileNamePattern)
public void addFileNameIncludePattern(String fileNamePattern)
public List<String> getFileNameExcludePattern()
public void setFileNameExcludePattern(List<String> fileNamePattern)
public void addFileNameExcludePattern(String fileNamePattern)
public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException
preVisitDirectory
in interface FileVisitor<Path>
IOException
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException
visitFile
in interface FileVisitor<Path>
IOException
public FileVisitResult visitFileFailed(Path file, IOException exc) throws IOException
visitFileFailed
in interface FileVisitor<Path>
IOException
public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException
postVisitDirectory
in interface FileVisitor<Path>
IOException
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.