Package io.vertigo.core.daemon
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 ClassesModifier and TypeInterfaceDescriptionstatic enumEnumeration representing the status of daemon execution. -
Method Summary
Modifier and TypeMethodDescriptionlonggetCount()Gets the total number of executions since the daemon started.Gets the name of the daemon.intGets the period (in seconds) at which the daemon is configured to run.longGets the number of failures since the daemon started.Gets the current status of the daemon execution.longGets the number of successful executions since the daemon started.booleanChecks 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:
trueif the last execution was successful,falseotherwise.
-