public abstract class AbstractAgent extends Object implements Runnable
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractAgent.State |
| Modifier and Type | Method and Description |
|---|---|
net.obvj.performetrics.util.Duration |
getAverageRunDuration() |
AgentConfiguration |
getConfiguration() |
Calendar |
getLastRunDate() |
String |
getName() |
Calendar |
getStartDate() |
AbstractAgent.State |
getState() |
abstract String |
getStatusString() |
AgentType |
getType() |
boolean |
isRunning() |
boolean |
isStarted() |
boolean |
isStopped() |
abstract void |
onStart() |
abstract void |
onStop() |
void |
run()
The method called by the system to execute the agent task automatically.
|
void |
run(boolean manualFlag) |
void |
start()
Starts this agent timer considering the interval settled in this object for execution.
|
void |
stop()
Suspends this agent.
|
public String getName()
AgentConfiguration.public AgentType getType()
AgentConfiguration.public AgentConfiguration getConfiguration()
public AbstractAgent.State getState()
public boolean isStarted()
true if this agent's timer (not its task) is currently started;
otherwise false.public boolean isRunning()
true if this agent's task is currently running; otherwise
false.public boolean isStopped()
true if this agent's timer is currently stopped; otherwise
false.public Calendar getStartDate()
public Calendar getLastRunDate()
public final void start()
public abstract void onStart()
public final void stop()
public abstract void onStop()
public void run()
public void run(boolean manualFlag)
public net.obvj.performetrics.util.Duration getAverageRunDuration()
public abstract String getStatusString()
Copyright © 2021. All rights reserved.