Class TransformerStatisticsImpl

    • 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)
    • Method Detail

      • getSourceExt

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

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

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

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

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

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

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

        public boolean isSummary()
        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.