Class SystemUsageDataCollector

  • All Implemented Interfaces:
    org.springframework.beans.factory.InitializingBean

    public class SystemUsageDataCollector
    extends HBBaseDataCollector
    implements org.springframework.beans.factory.InitializingBean
    A collector of data related the Runtime data of the system. Every Java application has a single instance of class Runtime that allows the application to interface with the environment in which the application is running.
    • Collector ID: acs.repository.usage.system
    • Data:
      • memFree: Long - The amount of free memory in the Java Virtual Machine. Runtime.freeMemory()
      • memMax: Long -T he maximum amount of memory that the Java virtual machine will attempt to use. Runtime.maxMemory()
      • memTotal: Long - The total amount of memory in the Java virtual machine. Runtime.totalMemory()
    Author:
    eknizat
    • Constructor Detail

      • SystemUsageDataCollector

        public SystemUsageDataCollector​(String collectorId,
                                        String collectorVersion,
                                        String cronExpression)
    • Method Detail

      • setCurrentRepoDescriptorDAO

        public void setCurrentRepoDescriptorDAO​(DescriptorDAO currentRepoDescriptorDAO)
      • afterPropertiesSet

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