org.apache.archiva.repository.scanner
Class RepositoryScanStatistics

java.lang.Object
  extended by org.apache.archiva.repository.scanner.RepositoryScanStatistics

public class RepositoryScanStatistics
extends Object

RepositoryScanStatistics - extension to the RepositoryContentStatistics model.


Field Summary
private  Map<String,Long> consumerCounts
           
private  Map<String,Long> consumerTimings
           
private  SimpleDateFormat df
           
private  long duration
          Field duration
private  List<String> invalidConsumers
           
private  List<String> knownConsumers
           
private  long newFileCount
          Field newFileCount
private  String repositoryId
          Field repositoryId
private  long startTimestamp
           
private  long totalFileCount
          Field totalFileCount
private  long totalSize
          Field totalSize
private  Date whenGathered
          Field whenGathered
 
Constructor Summary
RepositoryScanStatistics()
           
 
Method Summary
 long getDuration()
           
 long getNewFileCount()
           
 String getRepositoryId()
           
 long getTotalFileCount()
           
 long getTotalSize()
           
 Date getWhenGathered()
           
 void increaseFileCount()
           
 void increaseNewFileCount()
           
 void setConsumerCounts(Map<String,Long> consumerCounts)
           
 void setConsumerTimings(Map<String,Long> consumerTimings)
           
 void setInvalidConsumers(List<String> consumers)
           
 void setKnownConsumers(List<String> consumers)
           
 void setRepositoryId(String repositoryId)
           
 String toDump(ManagedRepository repo)
           
 void triggerFinished()
           
 void triggerStart()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

knownConsumers

private transient List<String> knownConsumers

invalidConsumers

private transient List<String> invalidConsumers

startTimestamp

private transient long startTimestamp

df

private SimpleDateFormat df

repositoryId

private String repositoryId
Field repositoryId


whenGathered

private Date whenGathered
Field whenGathered


duration

private long duration
Field duration


totalFileCount

private long totalFileCount
Field totalFileCount


newFileCount

private long newFileCount
Field newFileCount


totalSize

private long totalSize
Field totalSize


consumerCounts

private Map<String,Long> consumerCounts

consumerTimings

private Map<String,Long> consumerTimings
Constructor Detail

RepositoryScanStatistics

public RepositoryScanStatistics()
Method Detail

triggerStart

public void triggerStart()

getWhenGathered

public Date getWhenGathered()

triggerFinished

public void triggerFinished()

increaseFileCount

public void increaseFileCount()

increaseNewFileCount

public void increaseNewFileCount()

setKnownConsumers

public void setKnownConsumers(List<String> consumers)

setInvalidConsumers

public void setInvalidConsumers(List<String> consumers)

toDump

public String toDump(ManagedRepository repo)

setRepositoryId

public void setRepositoryId(String repositoryId)

getRepositoryId

public String getRepositoryId()

getDuration

public long getDuration()

getTotalFileCount

public long getTotalFileCount()

getNewFileCount

public long getNewFileCount()

getTotalSize

public long getTotalSize()

setConsumerCounts

public void setConsumerCounts(Map<String,Long> consumerCounts)

setConsumerTimings

public void setConsumerTimings(Map<String,Long> consumerTimings)


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