public abstract class CronAgent extends AbstractAgent
AbstractAgent.State| Modifier and Type | Method and Description |
|---|---|
void |
afterRun()
An event to be fired after agent task run.
|
String |
getCronExpression() |
Optional<ZonedDateTime> |
getNextExecutionDate() |
String |
getStatusJson() |
void |
onStart()
Starts this agent schedule considering the Cron expression.
|
void |
onStop() |
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 final void afterRun()
AbstractAgentpublic String getStatusJson()
getStatusJson in class AbstractAgentpublic String getCronExpression()
public Optional<ZonedDateTime> getNextExecutionDate()
Copyright © 2022. All rights reserved.