public class RepositoryStatistics extends Object implements MetadataFacet
Modifier and Type | Class and Description |
---|---|
private static class |
RepositoryStatistics.ZeroForNullHashMap<K,V extends Long> |
Modifier and Type | Field and Description |
---|---|
static String |
FACET_ID |
private long |
newFileCount |
private String |
repositoryId |
(package private) static String |
SCAN_TIMESTAMP_FORMAT |
private Date |
scanEndTime |
private Date |
scanStartTime |
private long |
totalArtifactCount |
private long |
totalArtifactFileSize |
private Map<String,Long> |
totalCountForType |
private long |
totalFileCount |
private long |
totalGroupCount |
private long |
totalProjectCount |
private static TimeZone |
UTC_TIME_ZONE |
Constructor and Description |
---|
RepositoryStatistics() |
private Date scanEndTime
private Date scanStartTime
private long totalArtifactCount
private long totalArtifactFileSize
private long totalFileCount
private long totalGroupCount
private long totalProjectCount
private long newFileCount
static final String SCAN_TIMESTAMP_FORMAT
private Map<String,Long> totalCountForType
private static final TimeZone UTC_TIME_ZONE
private String repositoryId
public RepositoryStatistics()
public Date getScanEndTime()
public void setScanEndTime(Date scanEndTime)
public Date getScanStartTime()
public void setScanStartTime(Date scanStartTime)
public long getTotalArtifactCount()
public void setTotalArtifactCount(long totalArtifactCount)
public long getTotalArtifactFileSize()
public void setTotalArtifactFileSize(long totalArtifactFileSize)
public long getTotalFileCount()
public void setTotalFileCount(long totalFileCount)
public long getTotalGroupCount()
public void setTotalGroupCount(long totalGroupCount)
public long getTotalProjectCount()
public void setTotalProjectCount(long totalProjectCount)
public void setNewFileCount(long newFileCount)
public long getNewFileCount()
public long getDuration()
public String getRepositoryId()
public void setRepositoryId(String repositoryId)
public String getFacetId()
getFacetId
in interface MetadataFacet
public String getName()
getName
in interface MetadataFacet
private static SimpleDateFormat createNameFormat()
public Map<String,String> toProperties()
toProperties
in interface MetadataFacet
public void fromProperties(Map<String,String> properties)
fromProperties
in interface MetadataFacet
public Map<String,Long> getTotalCountForType()
public long getTotalCountForType(String type)
public void setTotalCountForType(String type, long count)
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.