Class 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 a TransformerStatistics.
    Author:
    Alan Davis
    • 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:
        getSourceExt in interface TransformerStatistics
        Returns:
        the extension of the source mimetype of the transformer.
      • getTargetExt

        public java.lang.String getTargetExt()
        Deprecated.
        Specified by:
        getTargetExt in interface TransformerStatistics
        Returns:
        the extension of the target mimetype of the transformer.
      • recordTime

        public void recordTime​(long transformationTime)
        Deprecated.
        Specified by:
        recordTime in interface TransformerStatistics
        Parameters:
        transformationTime - to be added to this TransformationData and its parents.
      • recordError

        public void recordError​(long transformationTime)
        Deprecated.
        Description copied from interface: TransformerStatistics
        Adds 1 to the error count of this TransformationData and its parents.
        Specified by:
        recordError in interface TransformerStatistics
      • getCount

        public long getCount()
        Deprecated.
        Specified by:
        getCount in interface TransformerStatistics
        Returns:
        the number of time the transformer has been called.
      • setCount

        public void setCount​(long count)
        Deprecated.
        Specified by:
        setCount in interface TransformerStatistics
        Parameters:
        count - overrides the number of time the transformer has been called.
      • getErrorCount

        public long getErrorCount()
        Deprecated.
        Specified by:
        getErrorCount in interface TransformerStatistics
        Returns:
        the number of time the transformer has failed.
      • setErrorCount

        public void setErrorCount​(long errorCount)
        Deprecated.
        Specified by:
        setErrorCount in interface TransformerStatistics
        Parameters:
        errorCount - overrides the number of time the transformer has failed.
      • getAverageTime

        public long getAverageTime()
        Deprecated.
        Specified by:
        getAverageTime in interface TransformerStatistics
        Returns:
        the average time taken by the the transformer.
      • setAverageTime

        public void setAverageTime​(long averageTime)
        Deprecated.
        Specified by:
        setAverageTime in interface TransformerStatistics
        Parameters:
        averageTime - overrides the average time taken by the the transformer.
      • isSummary

        public boolean isSummary()
        Deprecated.
        Specified by:
        isSummary in interface TransformerStatistics
        Returns:
        true if this is the summary of all transformations done by a transformer rather than just between two specific mimetypes.