public class Job extends DestroyableBase implements java.lang.Runnable
A Job
is a piece of logic that can be run/scheduled in ActFramework
Destroyable.Util
logger
Modifier and Type | Method and Description |
---|---|
protected void |
_before() |
protected void |
_finally() |
protected java.lang.String |
brief() |
protected void |
cancel() |
protected void |
doJob() |
java.lang.String |
getId() |
int |
getProgressInPercent() |
boolean |
isExecuted() |
boolean |
isOneTime() |
protected AppJobManager |
manager() |
SimpleProgressGauge |
progress() |
protected void |
releaseResources() |
void |
run() |
protected void |
scheduleNextInvocation() |
void |
setProgressGauge(ProgressGauge progressGauge) |
java.lang.String |
toString() |
JobTrigger |
trigger() |
addSubResource, destroy, isDestroyed, reload, scope
debug, debug, error, error, fatal, fatal, info, info, isDebugEnabled, isTraceEnabled, trace, trace, warn, warn
public void setProgressGauge(ProgressGauge progressGauge)
public SimpleProgressGauge progress()
public int getProgressInPercent()
protected void releaseResources()
releaseResources
in class DestroyableBase
protected java.lang.String brief()
public java.lang.String toString()
toString
in class java.lang.Object
public void run()
run
in interface java.lang.Runnable
protected void _before()
protected void doJob()
protected void _finally()
protected void cancel()
protected final AppJobManager manager()
protected void scheduleNextInvocation()
public java.lang.String getId()
public boolean isExecuted()
public boolean isOneTime()
public JobTrigger trigger()
Copyright © 2014–2017 ActFramework. All rights reserved.