org.alfresco.repo.content.transform
Interface TransformerStatistics
public interface TransformerStatistics
Interface to obtain the configuration and performance data for every
source, target and transformer combination.
Author:
-
Alan Davis
getSourceExt
-
Returns:
-
the extension of the source mimetype of the transformer.
getTargetExt
-
Returns:
-
the extension of the target mimetype of the transformer.
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:
-
true
if 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.