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 Detail

      • RenditionsDataCollector

        public RenditionsDataCollector​(String collectorId,
                                       String collectorVersion,
                                       String cronExpression,
                                       org.alfresco.heartbeat.jobs.HeartBeatJobScheduler hbJobScheduler)
    • Method Detail

      • setCurrentRepoDescriptorDAO

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

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

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

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