org.apache.archiva.repository.scanner
Class RepositoryScannerInstance

java.lang.Object
  extended by org.apache.archiva.repository.scanner.RepositoryScannerInstance
All Implemented Interfaces:
org.codehaus.plexus.util.DirectoryWalkListener

public class RepositoryScannerInstance
extends Object
implements org.codehaus.plexus.util.DirectoryWalkListener

RepositoryScannerInstance


Field Summary
private  long changesSince
           
private  Map<String,Long> consumerCounts
           
private  ConsumerProcessFileClosure consumerProcessFile
           
private  Map<String,Long> consumerTimings
           
private  ConsumerWantsFilePredicate consumerWantsFile
           
private  List<InvalidRepositoryContentConsumer> invalidConsumers
          Consumers that process unknown/invalid content.
private  List<KnownRepositoryContentConsumer> knownConsumers
          Consumers that process known content.
private  org.slf4j.Logger log
           
private  ManagedRepository repository
           
private  RepositoryScanStatistics stats
           
 
Constructor Summary
RepositoryScannerInstance(ManagedRepository repository, List<KnownRepositoryContentConsumer> knownConsumerList, List<InvalidRepositoryContentConsumer> invalidConsumerList)
           
RepositoryScannerInstance(ManagedRepository repository, List<KnownRepositoryContentConsumer> knownContentConsumers, List<InvalidRepositoryContentConsumer> invalidContentConsumers, long changesSince)
           
 
Method Summary
 void debug(String message)
          Debug method from DirectoryWalker.
 void directoryWalkFinished()
           
 void directoryWalkStarting(File basedir)
           
 void directoryWalkStep(int percentage, File file)
           
 long getChangesSince()
           
 Map<String,Long> getConsumerCounts()
           
 Map<String,Long> getConsumerTimings()
           
 ManagedRepository getRepository()
           
 RepositoryScanStatistics getStatistics()
           
 RepositoryScanStatistics getStats()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private org.slf4j.Logger log

knownConsumers

private List<KnownRepositoryContentConsumer> knownConsumers
Consumers that process known content.


invalidConsumers

private List<InvalidRepositoryContentConsumer> invalidConsumers
Consumers that process unknown/invalid content.


repository

private ManagedRepository repository

stats

private RepositoryScanStatistics stats

changesSince

private long changesSince

consumerProcessFile

private ConsumerProcessFileClosure consumerProcessFile

consumerWantsFile

private ConsumerWantsFilePredicate consumerWantsFile

consumerTimings

private Map<String,Long> consumerTimings

consumerCounts

private Map<String,Long> consumerCounts
Constructor Detail

RepositoryScannerInstance

public RepositoryScannerInstance(ManagedRepository repository,
                                 List<KnownRepositoryContentConsumer> knownConsumerList,
                                 List<InvalidRepositoryContentConsumer> invalidConsumerList)

RepositoryScannerInstance

public RepositoryScannerInstance(ManagedRepository repository,
                                 List<KnownRepositoryContentConsumer> knownContentConsumers,
                                 List<InvalidRepositoryContentConsumer> invalidContentConsumers,
                                 long changesSince)
Method Detail

getStatistics

public RepositoryScanStatistics getStatistics()

getConsumerTimings

public Map<String,Long> getConsumerTimings()

getConsumerCounts

public Map<String,Long> getConsumerCounts()

directoryWalkStarting

public void directoryWalkStarting(File basedir)
Specified by:
directoryWalkStarting in interface org.codehaus.plexus.util.DirectoryWalkListener

directoryWalkStep

public void directoryWalkStep(int percentage,
                              File file)
Specified by:
directoryWalkStep in interface org.codehaus.plexus.util.DirectoryWalkListener

directoryWalkFinished

public void directoryWalkFinished()
Specified by:
directoryWalkFinished in interface org.codehaus.plexus.util.DirectoryWalkListener

debug

public void debug(String message)
Debug method from DirectoryWalker.

Specified by:
debug in interface org.codehaus.plexus.util.DirectoryWalkListener

getRepository

public ManagedRepository getRepository()

getStats

public RepositoryScanStatistics getStats()

getChangesSince

public long getChangesSince()


Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.