Class SystemCPUMonitoring

java.lang.Object
io.github.tkasozi.aspect.SystemCPUMonitoring

public class SystemCPUMonitoring extends Object
* Configures polling for cpu usage.
  • Constructor Details

    • SystemCPUMonitoring

      public SystemCPUMonitoring(@NonNull @NonNull CpuEventLogRepository cpuEventLogRepository, @NonNull @NonNull Long ttl)
      Constructor.
      Parameters:
      cpuEventLogRepository - persistence layer for Event log.
      ttl - Time to live.
  • Method Details

    • logCpuUsage

      @Scheduled(fixedDelay=30L, timeUnit=SECONDS) public void logCpuUsage()
      Schedules an interval to poll cpu usage.