Package org.alfresco.heartbeat
Class AuthoritiesDataCollector
- java.lang.Object
-
- org.alfresco.heartbeat.HBBaseDataCollector
-
- org.alfresco.heartbeat.AuthoritiesDataCollector
-
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
public class AuthoritiesDataCollector extends HBBaseDataCollector implements org.springframework.beans.factory.InitializingBean
A collector of data related authorities. The AuthorityService encapsulates authorities granted to users.- Collector ID: acs.repository.usage.authorities
- Data:
- numUsers: Integer - The total number of users in the system.
AuthorityService.getAllAuthoritiesInZone(String, AuthorityType) - numGroups: Integer - The total number of groups in the system.
AuthorityService.getAllAuthoritiesInZone(String, AuthorityType)
- numUsers: Integer - The total number of users in the system.
- Author:
- eknizat
-
-
Constructor Summary
Constructors Constructor Description AuthoritiesDataCollector(java.lang.String collectorId, java.lang.String collectorVersion, java.lang.String cronExpression, HeartBeatJobScheduler hbJobScheduler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()java.util.List<org.alfresco.heartbeat.datasender.HBData>collectData()This method returns data to be collected.voidsetAuthorityService(AuthorityService authorityService)voidsetCurrentRepoDescriptorDAO(DescriptorDAO currentRepoDescriptorDAO)-
Methods inherited from class org.alfresco.heartbeat.HBBaseDataCollector
deregister, getCollectorId, getCollectorVersion, getCronExpression, getHbJobScheduler, register, setHbDataCollectorService, setHbJobScheduler
-
-
-
-
Constructor Detail
-
AuthoritiesDataCollector
public AuthoritiesDataCollector(java.lang.String collectorId, java.lang.String collectorVersion, java.lang.String cronExpression, HeartBeatJobScheduler hbJobScheduler)
-
-
Method Detail
-
setCurrentRepoDescriptorDAO
public void setCurrentRepoDescriptorDAO(DescriptorDAO currentRepoDescriptorDAO)
-
setAuthorityService
public void setAuthorityService(AuthorityService authorityService)
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
java.lang.Exception
-
collectData
public java.util.List<org.alfresco.heartbeat.datasender.HBData> collectData()
Description copied from class:HBBaseDataCollectorThis method returns data to be collected.- Specified by:
collectDatain classHBBaseDataCollector- Returns:
- List of
HBData
-
-