Interface TransformerStatistics
-
- All Known Implementing Classes:
TransformerStatisticsImpl
@AlfrescoPublicApi public interface TransformerStatisticsInterface to obtain the configuration and performance data for every source, target and transformer combination.- Author:
- Alan Davis
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetAverageTime()longgetCount()longgetErrorCount()java.lang.StringgetSourceExt()java.lang.StringgetTargetExt()java.lang.StringgetTransformerName()booleanisSummary()voidrecordError(long transformationTime)Adds 1 to the error count of this TransformationData and its parents.voidrecordTime(long transformationTime)voidsetAverageTime(long averageTime)voidsetCount(long count)voidsetErrorCount(long errorCount)
-
-
-
Method Detail
-
getSourceExt
java.lang.String getSourceExt()
- Returns:
- the extension of the source mimetype of the transformer.
-
getTargetExt
java.lang.String getTargetExt()
- Returns:
- the extension of the target mimetype of the transformer.
-
getTransformerName
java.lang.String getTransformerName()
- Returns:
- the name of the parent transformer.
-
getCount
long getCount()
- Returns:
- the number of time the transformer has been called.
-
setCount
void setCount(long count)
- Parameters:
count- overrides the number of time the transformer has been called.
-
getErrorCount
long getErrorCount()
- Returns:
- the number of time the transformer has failed.
-
setErrorCount
void setErrorCount(long errorCount)
- Parameters:
errorCount- overrides the number of time the transformer has failed.
-
getAverageTime
long getAverageTime()
- Returns:
- the average time taken by the the transformer.
-
setAverageTime
void setAverageTime(long averageTime)
- Parameters:
averageTime- overrides the average time taken by the the transformer.
-
isSummary
boolean isSummary()
- Returns:
trueif this is the summary of all transformations done by a transformer rather than just between two specific mimetypes.
-
recordTime
void recordTime(long transformationTime)
- Parameters:
transformationTime- to be added to this TransformationData and its parents.
-
recordError
void recordError(long transformationTime)
Adds 1 to the error count of this TransformationData and its parents.
-
-