org.apache.archiva.metadata.repository.stats
Class RepositoryStatistics
java.lang.Object
org.apache.archiva.metadata.repository.stats.RepositoryStatistics
- All Implemented Interfaces:
- MetadataFacet
public class RepositoryStatistics
- extends Object
- implements MetadataFacet
scanEndTime
private Date scanEndTime
scanStartTime
private Date scanStartTime
totalArtifactCount
private long totalArtifactCount
totalArtifactFileSize
private long totalArtifactFileSize
totalFileCount
private long totalFileCount
totalGroupCount
private long totalGroupCount
totalProjectCount
private long totalProjectCount
newFileCount
private long newFileCount
FACET_ID
public static String FACET_ID
SCAN_TIMESTAMP_FORMAT
static final String SCAN_TIMESTAMP_FORMAT
- See Also:
- Constant Field Values
totalCountForType
private Map<String,Long> totalCountForType
UTC_TIME_ZONE
private static final TimeZone UTC_TIME_ZONE
repositoryId
private String repositoryId
RepositoryStatistics
public RepositoryStatistics()
getScanEndTime
public Date getScanEndTime()
setScanEndTime
public void setScanEndTime(Date scanEndTime)
getScanStartTime
public Date getScanStartTime()
setScanStartTime
public void setScanStartTime(Date scanStartTime)
getTotalArtifactCount
public long getTotalArtifactCount()
setTotalArtifactCount
public void setTotalArtifactCount(long totalArtifactCount)
getTotalArtifactFileSize
public long getTotalArtifactFileSize()
setTotalArtifactFileSize
public void setTotalArtifactFileSize(long totalArtifactFileSize)
getTotalFileCount
public long getTotalFileCount()
setTotalFileCount
public void setTotalFileCount(long totalFileCount)
getTotalGroupCount
public long getTotalGroupCount()
setTotalGroupCount
public void setTotalGroupCount(long totalGroupCount)
getTotalProjectCount
public long getTotalProjectCount()
setTotalProjectCount
public void setTotalProjectCount(long totalProjectCount)
setNewFileCount
public void setNewFileCount(long newFileCount)
getNewFileCount
public long getNewFileCount()
getDuration
public long getDuration()
getRepositoryId
public String getRepositoryId()
setRepositoryId
public void setRepositoryId(String repositoryId)
getFacetId
public String getFacetId()
- Specified by:
getFacetId
in interface MetadataFacet
getName
public String getName()
- Specified by:
getName
in interface MetadataFacet
createNameFormat
private static SimpleDateFormat createNameFormat()
toProperties
public Map<String,String> toProperties()
- Specified by:
toProperties
in interface MetadataFacet
fromProperties
public void fromProperties(Map<String,String> properties)
- Specified by:
fromProperties
in interface MetadataFacet
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
getTotalCountForType
public Map<String,Long> getTotalCountForType()
getTotalCountForType
public long getTotalCountForType(String type)
setTotalCountForType
public void setTotalCountForType(String type,
long count)
Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.