Class HBBaseDataCollector

    • Constructor Detail

      • HBBaseDataCollector

        public HBBaseDataCollector​(java.lang.String collectorId,
                                   java.lang.String collectorVersion,
                                   java.lang.String cronExpression,
                                   HeartBeatJobScheduler hbJobScheduler)
        Parameters:
        collectorId - Unique collector ID e.g.: acs.repository.info
        collectorVersion - Version of the collector e.g.: 1.0
        cronExpression - Cron expression that will be used to schedule jobs for this collector. e.g.: "0 0 0 ? * SUN" (Weekly)
        hbJobScheduler - Scheduler that will be used to schedule jobs for this collector.
    • Method Detail

      • getCollectorId

        public java.lang.String getCollectorId()
      • getCollectorVersion

        public java.lang.String getCollectorVersion()
      • getCronExpression

        public java.lang.String getCronExpression()
      • setHbDataCollectorService

        public void setHbDataCollectorService​(HBDataCollectorService hbDataCollectorService)
      • setHbJobScheduler

        public void setHbJobScheduler​(HeartBeatJobScheduler hbJobScheduler)
        Parameters:
        hbJobScheduler - The scheduler which will be used to schedule jobs for this collector.
      • getHbJobScheduler

        public HeartBeatJobScheduler getHbJobScheduler()
        Returns:
        JobScheduler used to schedule jobs for this collector.
      • register

        public void register()
        This method is called by Spring at initialisation and will register this collector with the provided HBDataCollectorService
      • deregister

        public void deregister()
        This method is called by Spring at initialisation and will deregister this collector with the provided HBDataCollectorService
      • collectData

        public abstract java.util.List<org.alfresco.heartbeat.datasender.HBData> collectData()
        This method returns data to be collected.
        Returns:
        List of HBData