public abstract class TimerAgent extends AbstractAgent
AbstractAgent.State| Modifier and Type | Method and Description |
|---|---|
void |
afterRun()
An event to be fired after agent task run.
|
TimeInterval |
getInterval()
Returns the interval configured for this
TimerAgent. |
String |
getStatusJson() |
void |
onStart()
Starts this agent timer considering the interval settled in this object for execution.
|
void |
onStop()
Terminates this agent timer gracefully.
|
getAverageRunDuration, getConfiguration, getLastRunDate, getName, getStartDate, getState, getType, isRunning, isStarted, isStopped, run, run, start, stoppublic final void onStart()
onStart in class AbstractAgentpublic final void onStop()
onStop in class AbstractAgentpublic void afterRun()
AbstractAgentpublic TimeInterval getInterval()
TimerAgent.TimerAgent.public String getStatusJson()
getStatusJson in class AbstractAgentCopyright © 2022. All rights reserved.