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 RepositoryStatistics
public void setScanEndTime(Date scanEndTime)
public Date getScanStartTime()
getScanStartTime
in interface RepositoryStatistics
public void setScanStartTime(Date scanStartTime)
public long getTotalArtifactCount()
getTotalArtifactCount
in interface RepositoryStatistics
public void setTotalArtifactCount(long totalArtifactCount)
setTotalArtifactCount
in interface RepositoryStatistics
public long getTotalArtifactFileSize()
getTotalArtifactFileSize
in interface RepositoryStatistics
public void setTotalArtifactFileSize(long totalArtifactFileSize)
setTotalArtifactFileSize
in interface RepositoryStatistics
public long getTotalFileCount()
getTotalFileCount
in interface RepositoryStatistics
public void setTotalFileCount(long totalFileCount)
setTotalFileCount
in interface RepositoryStatistics
public long getTotalGroupCount()
getTotalGroupCount
in interface RepositoryStatistics
public void setTotalGroupCount(long totalGroupCount)
setTotalGroupCount
in interface RepositoryStatistics
public long getTotalProjectCount()
getTotalProjectCount
in interface RepositoryStatistics
public void setTotalProjectCount(long totalProjectCount)
setTotalProjectCount
in interface RepositoryStatistics
public void setNewFileCount(long newFileCount)
setNewFileCount
in interface RepositoryStatistics
public long getNewFileCount()
getNewFileCount
in interface RepositoryStatistics
public long getDuration()
getDuration
in interface RepositoryStatistics
public String getRepositoryId()
getRepositoryId
in interface RepositoryStatistics
public void setRepositoryId(String repositoryId)
public String getFacetId()
getFacetId
in interface MetadataFacet
public String getName()
getName
in interface MetadataFacet
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()
RepositoryStatistics
getTotalCountForType
in interface RepositoryStatistics
public long getTotalCountForType(String type)
RepositoryStatistics
getTotalCountForType
in interface RepositoryStatistics
type
- The artifact typepublic void setTotalCountForType(String type, long count)
RepositoryStatistics
setTotalCountForType
in interface RepositoryStatistics
type
- The artifact type.count
- The count value.public long getCustomValue(String fieldName)
RepositoryStatistics
getCustomValue
in interface RepositoryStatistics
fieldName
- A unique field name.public void setCustomValue(String fieldName, long count)
RepositoryStatistics
setCustomValue
in interface RepositoryStatistics
fieldName
- A unique field name.count
- The statistic counter valueCopyright © 2006–2019 The Apache Software Foundation. All rights reserved.