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
ConstructorsConstructorDescriptionRenditionsDataCollector
(String collectorId, String collectorVersion, String cronExpression, HeartBeatJobScheduler hbJobScheduler) -
Method Summary
Modifier and TypeMethodDescriptionvoid
List<org.alfresco.heartbeat.datasender.HBData>
void
recordRenditionRequest
(ThumbnailDefinition rendition, String sourceMimetype) void
setCurrentRepoDescriptorDAO
(DescriptorDAO currentRepoDescriptorDAO) Methods inherited from class org.alfresco.heartbeat.HBBaseDataCollector
deregister, getCollectorId, getCollectorVersion, getCronExpression, getHbJobScheduler, register, setHbDataCollectorService, setHbJobScheduler
-
Constructor Details
-
RenditionsDataCollector
public RenditionsDataCollector(String collectorId, String collectorVersion, String cronExpression, HeartBeatJobScheduler hbJobScheduler)
-
-
Method Details
-
setCurrentRepoDescriptorDAO
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
recordRenditionRequest
-
collectData
- Specified by:
collectData
in classHBBaseDataCollector
-