Class ScheduledJobHistoryService


  • public class ScheduledJobHistoryService
    extends BaseService
    Provides a Scheduled Job History logging service.
    Since:
    4.3.0
    • Constructor Detail

      • ScheduledJobHistoryService

        public ScheduledJobHistoryService()
    • Method Detail

      • logJobRun

        public void logJobRun​(String scheduledJobName,
                              Date startTime,
                              com.jezhumble.javasysmon.CpuTimes startCpuTimes,
                              Long startFreeMemory,
                              ErrorLog errorLog)
        Log Scheduled Job History record using the specified parameters.
        Parameters:
        scheduledJobName - the name of the scheduled job
        startTime - the time the service was invoked (required)
        startCpuTimes - the start CPU times when the service was invoked (required)
        startFreeMemory - the free memory in bytes when the service was invoked (required)
        errorLog - the associated error log (optional)