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:
      • mem: Object which contains memory information:
      • openFileDescriptorCount: Long - The number of open file descriptors. UnixOperatingSystemMXBean.getOpenFileDescriptorCount()
      • cpu: Object which contains processor information:
        • percentageProcessLoad: Integer - The "recent cpu usage" for the JVM process (as a percentage). OperatingSystemMXBean.getProcessCpuLoad()
        • percentageSystemLoad: Integer - The "recent cpu usage" for the whole system (as a percentage). OperatingSystemMXBean.getSystemCpuLoad()
        • systemLoadAverage: Double - The system load average as returned by OperatingSystemMXBean.getSystemLoadAverage()
        • availableProcessors: Integer - The number of available processors. Runtime.availableProcessors()
      • db: Object which contains database usage information:
        • idleConnections: Integer - The number of idle connections. BasicDataSource.getNumIdle()
        • activeConnections: Integer - The number of active connections. BasicDataSource.getNumActive()
    Author:
    eknizat
    • Method Detail

      • setCurrentRepoDescriptorDAO

        public void setCurrentRepoDescriptorDAO​(DescriptorDAO currentRepoDescriptorDAO)
      • setDataSource

        public void setDataSource​(DataSource dataSource)
      • afterPropertiesSet

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