Class TransformerStatisticsImpl
- java.lang.Object
-
- org.alfresco.repo.content.transform.TransformerStatisticsImpl
-
- All Implemented Interfaces:
TransformerStatistics
@Deprecated public class TransformerStatisticsImpl extends java.lang.Object implements TransformerStatistics
Deprecated.The transformations code is being moved out of the codebase and replaced by the new async RenditionService2 or other external libraries.Implementation of aTransformerStatistics.- Author:
- Alan Davis
-
-
Constructor Summary
Constructors Constructor Description TransformerStatisticsImpl(org.alfresco.service.cmr.repository.MimetypeService mimetypeService, java.lang.String sourceMimetype, java.lang.String targetMimetype, ContentTransformer transformer, TransformerStatistics parent, long errorTime, long initialAverageTime, long initialCount)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description longgetAverageTime()Deprecated.longgetCount()Deprecated.longgetErrorCount()Deprecated.java.lang.StringgetSourceExt()Deprecated.java.lang.StringgetTargetExt()Deprecated.java.lang.StringgetTransformerName()Deprecated.booleanisSummary()Deprecated.voidrecordError(long transformationTime)Deprecated.Adds 1 to the error count of this TransformationData and its parents.voidrecordTime(long transformationTime)Deprecated.voidsetAverageTime(long averageTime)Deprecated.voidsetCount(long count)Deprecated.voidsetErrorCount(long errorCount)Deprecated.
-
-
-
Constructor Detail
-
TransformerStatisticsImpl
public TransformerStatisticsImpl(org.alfresco.service.cmr.repository.MimetypeService mimetypeService, java.lang.String sourceMimetype, java.lang.String targetMimetype, ContentTransformer transformer, TransformerStatistics parent, long errorTime, long initialAverageTime, long initialCount)Deprecated.
-
-
Method Detail
-
getSourceExt
public java.lang.String getSourceExt()
Deprecated.- Specified by:
getSourceExtin interfaceTransformerStatistics- Returns:
- the extension of the source mimetype of the transformer.
-
getTargetExt
public java.lang.String getTargetExt()
Deprecated.- Specified by:
getTargetExtin interfaceTransformerStatistics- Returns:
- the extension of the target mimetype of the transformer.
-
getTransformerName
public java.lang.String getTransformerName()
Deprecated.- Specified by:
getTransformerNamein interfaceTransformerStatistics- Returns:
- the name of the parent transformer.
-
recordTime
public void recordTime(long transformationTime)
Deprecated.- Specified by:
recordTimein interfaceTransformerStatistics- Parameters:
transformationTime- to be added to this TransformationData and its parents.
-
recordError
public void recordError(long transformationTime)
Deprecated.Description copied from interface:TransformerStatisticsAdds 1 to the error count of this TransformationData and its parents.- Specified by:
recordErrorin interfaceTransformerStatistics
-
getCount
public long getCount()
Deprecated.- Specified by:
getCountin interfaceTransformerStatistics- Returns:
- the number of time the transformer has been called.
-
setCount
public void setCount(long count)
Deprecated.- Specified by:
setCountin interfaceTransformerStatistics- Parameters:
count- overrides the number of time the transformer has been called.
-
getErrorCount
public long getErrorCount()
Deprecated.- Specified by:
getErrorCountin interfaceTransformerStatistics- Returns:
- the number of time the transformer has failed.
-
setErrorCount
public void setErrorCount(long errorCount)
Deprecated.- Specified by:
setErrorCountin interfaceTransformerStatistics- Parameters:
errorCount- overrides the number of time the transformer has failed.
-
getAverageTime
public long getAverageTime()
Deprecated.- Specified by:
getAverageTimein interfaceTransformerStatistics- Returns:
- the average time taken by the the transformer.
-
setAverageTime
public void setAverageTime(long averageTime)
Deprecated.- Specified by:
setAverageTimein interfaceTransformerStatistics- Parameters:
averageTime- overrides the average time taken by the the transformer.
-
isSummary
public boolean isSummary()
Deprecated.- Specified by:
isSummaryin interfaceTransformerStatistics- Returns:
trueif this is the summary of all transformations done by a transformer rather than just between two specific mimetypes.
-
-