public abstract class JanitorTask extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
m_deleted
T if this task was removed
|
protected Janitor |
m_j
The janitor..
|
protected int |
m_key
This-task's key (id) in the task vector
|
protected int |
m_run_slot
If this is running, the slot number it runs in, or -1 if not running
|
protected int |
m_t_interval
The interval time, in seconds, to run this again,
|
protected long |
m_t_lastrun
The time this task ran last,
|
protected long |
m_t_next
The NEXT time this task has to run, or -1 when it (still) runs..
|
protected String |
m_taskname
This-task's display string
|
protected boolean |
m_unrunnable
T if this task is unrunnable (too many exceptions)
|
| Constructor and Description |
|---|
JanitorTask() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
calcNextStartTime()
Called by the janitor to make this task set it's next start time.
|
long |
getNextStartTime()
Returns the NEXT start time for this request, depending on the current
time.
|
abstract void |
run()
The function-to-override.
|
protected void |
setNextTime(Date dt)
Sets a fixed start date for the task.
|
protected Janitor m_j
protected int m_t_interval
protected long m_t_next
protected long m_t_lastrun
protected int m_key
protected String m_taskname
protected int m_run_slot
protected boolean m_deleted
protected boolean m_unrunnable
public long getNextStartTime()
protected void calcNextStartTime()
protected void setNextTime(Date dt)
Copyright © 2017 etc.to. All rights reserved.