Interface DaemonStat


public interface DaemonStat
Represents execution statistics about registered daemons. This interface provides detailed statistics about the execution of registered daemons.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    Enumeration representing the status of daemon execution.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Gets the total number of executions since the daemon started.
    Gets the name of the daemon.
    int
    Gets the period (in seconds) at which the daemon is configured to run.
    long
    Gets the number of failures since the daemon started.
    Gets the current status of the daemon execution.
    long
    Gets the number of successful executions since the daemon started.
    boolean
    Checks if the last execution of the daemon was successful.
  • Method Details

    • getDaemonName

      String getDaemonName()
      Gets the name of the daemon.
      Returns:
      the name of the daemon.
    • getDaemonPeriodInSecond

      int getDaemonPeriodInSecond()
      Gets the period (in seconds) at which the daemon is configured to run.
      Returns:
      the period (in seconds) at which the daemon is configured to run.
    • getCount

      long getCount()
      Gets the total number of executions since the daemon started.
      Returns:
      the total number of executions since the daemon started.
    • getSuccesses

      long getSuccesses()
      Gets the number of successful executions since the daemon started.
      Returns:
      the number of successful executions since the daemon started.
    • getFailures

      long getFailures()
      Gets the number of failures since the daemon started.
      Returns:
      the number of failures since the daemon started.
    • getStatus

      DaemonStat.Status getStatus()
      Gets the current status of the daemon execution.
      Returns:
      the current status of the daemon execution.
    • isLastExecSuccess

      boolean isLastExecSuccess()
      Checks if the last execution of the daemon was successful.
      Returns:
      true if the last execution was successful, false otherwise.