Package org.alfresco.heartbeat
Class RenditionsDataCollector
- java.lang.Object
-
- org.alfresco.heartbeat.HBBaseDataCollector
-
- org.alfresco.heartbeat.RenditionsDataCollector
-
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
public class RenditionsDataCollector extends 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(String collectorId, String collectorVersion, String cronExpression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
List<org.alfresco.heartbeat.datasender.HBData>
collectData()
void
recordRenditionRequest(ThumbnailDefinition rendition, String sourceMimetype)
void
setCurrentRepoDescriptorDAO(DescriptorDAO currentRepoDescriptorDAO)
-
Methods inherited from class org.alfresco.heartbeat.HBBaseDataCollector
deregister, getCollectorId, getCollectorVersion, getCronExpression, register, setHbDataCollectorService
-
-
-
-
Method Detail
-
setCurrentRepoDescriptorDAO
public void setCurrentRepoDescriptorDAO(DescriptorDAO currentRepoDescriptorDAO)
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
recordRenditionRequest
public void recordRenditionRequest(ThumbnailDefinition rendition, String sourceMimetype)
-
collectData
public List<org.alfresco.heartbeat.datasender.HBData> collectData()
- Specified by:
collectData
in classHBBaseDataCollector
-
-