Class RenditionsDataCollector

  • All Implemented Interfaces:
    org.springframework.beans.factory.InitializingBean

    public class RenditionsDataCollector
    extends org.alfresco.heartbeat.HBBaseDataCollector
    implements org.springframework.beans.factory.InitializingBean
    This class collects rendition request counts for HeartBeat. A rendition (such as "doclib") is always to the same target mimetype, but there may be different source mimetypes. As a result that may be multiple sets of data with the same rendition. It is also likely there will be multiple renditions reported in the same batch of data.
    • Collector ID: acs.repository.renditions
    • Data:
      • rendition: String - The name of the rendition.
      • count: Integer - The number of times a rendition and sourceMimetype combination has been requested.
      • sourceMimetype: String - The source mimetype for the rendition.
      • targetMimetype: String - The target mimetype for the rendition.
    Author:
    adavis
    • Constructor Summary

      Constructors 
      Constructor Description
      RenditionsDataCollector​(java.lang.String collectorId, java.lang.String collectorVersion, java.lang.String cronExpression)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterPropertiesSet()  
      java.util.List<org.alfresco.heartbeat.datasender.HBData> collectData()  
      void recordRenditionRequest​(org.alfresco.repo.thumbnail.ThumbnailDefinition rendition, java.lang.String sourceMimetype)  
      void setCurrentRepoDescriptorDAO​(org.alfresco.repo.descriptor.DescriptorDAO currentRepoDescriptorDAO)  
      • Methods inherited from class org.alfresco.heartbeat.HBBaseDataCollector

        deregister, getCollectorId, getCollectorVersion, getCronExpression, register, setHbDataCollectorService
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RenditionsDataCollector

        public RenditionsDataCollector​(java.lang.String collectorId,
                                       java.lang.String collectorVersion,
                                       java.lang.String cronExpression)
    • Method Detail

      • setCurrentRepoDescriptorDAO

        public void setCurrentRepoDescriptorDAO​(org.alfresco.repo.descriptor.DescriptorDAO currentRepoDescriptorDAO)
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        java.lang.Exception
      • recordRenditionRequest

        public void recordRenditionRequest​(org.alfresco.repo.thumbnail.ThumbnailDefinition rendition,
                                           java.lang.String sourceMimetype)
      • collectData

        public java.util.List<org.alfresco.heartbeat.datasender.HBData> collectData()
        Specified by:
        collectData in class org.alfresco.heartbeat.HBBaseDataCollector