public class TransformerStatisticsImpl extends Object implements TransformerStatistics
TransformerStatistics
.Constructor and Description |
---|
TransformerStatisticsImpl(org.alfresco.service.cmr.repository.MimetypeService mimetypeService,
String sourceMimetype,
String targetMimetype,
ContentTransformer transformer,
TransformerStatistics parent,
long errorTime,
long initialAverageTime,
long initialCount) |
Modifier and Type | Method and Description |
---|---|
long |
getAverageTime() |
long |
getCount() |
long |
getErrorCount() |
String |
getSourceExt() |
String |
getTargetExt() |
String |
getTransformerName() |
boolean |
isSummary() |
void |
recordError(long transformationTime)
Adds 1 to the error count of this TransformationData and its parents.
|
void |
recordTime(long transformationTime) |
void |
setAverageTime(long averageTime) |
void |
setCount(long count) |
void |
setErrorCount(long errorCount) |
public TransformerStatisticsImpl(org.alfresco.service.cmr.repository.MimetypeService mimetypeService, String sourceMimetype, String targetMimetype, ContentTransformer transformer, TransformerStatistics parent, long errorTime, long initialAverageTime, long initialCount)
public String getSourceExt()
getSourceExt
in interface TransformerStatistics
public String getTargetExt()
getTargetExt
in interface TransformerStatistics
public String getTransformerName()
getTransformerName
in interface TransformerStatistics
public void recordTime(long transformationTime)
recordTime
in interface TransformerStatistics
transformationTime
- to be added to this TransformationData and its parents.public void recordError(long transformationTime)
TransformerStatistics
recordError
in interface TransformerStatistics
public long getCount()
getCount
in interface TransformerStatistics
public void setCount(long count)
setCount
in interface TransformerStatistics
count
- overrides the number of time the transformer has been called.public long getErrorCount()
getErrorCount
in interface TransformerStatistics
public void setErrorCount(long errorCount)
setErrorCount
in interface TransformerStatistics
errorCount
- overrides the number of time the transformer has failed.public long getAverageTime()
getAverageTime
in interface TransformerStatistics
public void setAverageTime(long averageTime)
setAverageTime
in interface TransformerStatistics
averageTime
- overrides the average time taken by the the transformer.public boolean isSummary()
isSummary
in interface TransformerStatistics
true
if this is the summary of all transformations done
by a transformer rather than just between two specific mimetypes.Copyright © 2005–2017 Alfresco Software. All rights reserved.