public class DefaultRepositoryStatistics extends Object implements RepositoryStatistics
| Modifier and Type | Field and Description | 
|---|---|
| static String | CUSTOM_PREFIX | 
| static String | SCAN_TIMESTAMP_FORMAT | 
| static String | TYPE_PREFIX | 
FACET_ID| Constructor and Description | 
|---|
| DefaultRepositoryStatistics() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object o) | 
| void | fromProperties(Map<String,String> properties) | 
| long | getCustomValue(String fieldName)Reads custom statistic values that are store implementation
 specific. | 
| long | getDuration() | 
| String | getFacetId() | 
| String | getName() | 
| long | getNewFileCount() | 
| String | getRepositoryId() | 
| Date | getScanEndTime() | 
| Date | getScanStartTime() | 
| long | getTotalArtifactCount() | 
| long | getTotalArtifactFileSize() | 
| Map<String,Long> | getTotalCountForType()Statistics data by artifact type. | 
| long | getTotalCountForType(String type)Returns the value for the given artifact type. | 
| long | getTotalFileCount() | 
| long | getTotalGroupCount() | 
| long | getTotalProjectCount() | 
| int | hashCode() | 
| void | setCustomValue(String fieldName,
              long count)Saves custom statistic values that are store implementation
 specific. | 
| void | setNewFileCount(long newFileCount) | 
| void | setRepositoryId(String repositoryId) | 
| void | setScanEndTime(Date scanEndTime) | 
| void | setScanStartTime(Date scanStartTime) | 
| void | setTotalArtifactCount(long totalArtifactCount) | 
| void | setTotalArtifactFileSize(long totalArtifactFileSize) | 
| void | setTotalCountForType(String type,
                    long count)Sets the value for the given artifact type. | 
| void | setTotalFileCount(long totalFileCount) | 
| void | setTotalGroupCount(long totalGroupCount) | 
| void | setTotalProjectCount(long totalProjectCount) | 
| Map<String,String> | toProperties() | 
| String | toString() | 
public static final String SCAN_TIMESTAMP_FORMAT
public static final String TYPE_PREFIX
public static final String CUSTOM_PREFIX
public DefaultRepositoryStatistics()
public Date getScanEndTime()
getScanEndTime in interface RepositoryStatisticspublic void setScanEndTime(Date scanEndTime)
public Date getScanStartTime()
getScanStartTime in interface RepositoryStatisticspublic void setScanStartTime(Date scanStartTime)
public long getTotalArtifactCount()
getTotalArtifactCount in interface RepositoryStatisticspublic void setTotalArtifactCount(long totalArtifactCount)
setTotalArtifactCount in interface RepositoryStatisticspublic long getTotalArtifactFileSize()
getTotalArtifactFileSize in interface RepositoryStatisticspublic void setTotalArtifactFileSize(long totalArtifactFileSize)
setTotalArtifactFileSize in interface RepositoryStatisticspublic long getTotalFileCount()
getTotalFileCount in interface RepositoryStatisticspublic void setTotalFileCount(long totalFileCount)
setTotalFileCount in interface RepositoryStatisticspublic long getTotalGroupCount()
getTotalGroupCount in interface RepositoryStatisticspublic void setTotalGroupCount(long totalGroupCount)
setTotalGroupCount in interface RepositoryStatisticspublic long getTotalProjectCount()
getTotalProjectCount in interface RepositoryStatisticspublic void setTotalProjectCount(long totalProjectCount)
setTotalProjectCount in interface RepositoryStatisticspublic void setNewFileCount(long newFileCount)
setNewFileCount in interface RepositoryStatisticspublic long getNewFileCount()
getNewFileCount in interface RepositoryStatisticspublic long getDuration()
getDuration in interface RepositoryStatisticspublic String getRepositoryId()
getRepositoryId in interface RepositoryStatisticspublic void setRepositoryId(String repositoryId)
public String getFacetId()
getFacetId in interface MetadataFacetpublic String getName()
getName in interface MetadataFacetpublic Map<String,String> toProperties()
toProperties in interface MetadataFacetpublic void fromProperties(Map<String,String> properties)
fromProperties in interface MetadataFacetpublic Map<String,Long> getTotalCountForType()
RepositoryStatisticsgetTotalCountForType in interface RepositoryStatisticspublic long getTotalCountForType(String type)
RepositoryStatisticsgetTotalCountForType in interface RepositoryStatisticstype - The artifact typepublic void setTotalCountForType(String type, long count)
RepositoryStatisticssetTotalCountForType in interface RepositoryStatisticstype - The artifact type.count - The count value.public long getCustomValue(String fieldName)
RepositoryStatisticsgetCustomValue in interface RepositoryStatisticsfieldName - A unique field name.public void setCustomValue(String fieldName, long count)
RepositoryStatisticssetCustomValue in interface RepositoryStatisticsfieldName - A unique field name.count - The statistic counter valueCopyright © 2006–2019 The Apache Software Foundation. All rights reserved.