|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jfw.scheduler.ScheduleThread
public final class ScheduleThread
For every class in scheduling an instance of this class is created. The class
to execute is set in the constructor.
The classes to schedule are defined in jfw.properties, key
scheduled_objects.
Field Summary | |
---|---|
static java.lang.String |
TYPE_DAILY
Frequence type for Daily scheduled beans. |
static java.lang.String |
TYPE_MONTHLY
Frequence type for Monthly scheduled beans. |
static java.lang.String |
TYPE_PERIOD
Frequence type for Period scheduled beans. |
static java.lang.String |
TYPE_STARTUP
Frequence type for Startup scheduled beans. |
static java.lang.String |
TYPE_WEEKLY
Frequence type for Weekly scheduled beans. |
Method Summary | |
---|---|
java.util.ArrayList |
getErrors()
Get a clone of attribute errors . |
java.lang.String |
getScheduleBean()
Get attribute scheduleBean . |
void |
run()
Thread implementation. |
protected void |
sendEmail(java.lang.String text)
Send an error email. |
void |
stop()
Set attribute toStop at true. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TYPE_STARTUP
public static final java.lang.String TYPE_PERIOD
public static final java.lang.String TYPE_DAILY
public static final java.lang.String TYPE_WEEKLY
public static final java.lang.String TYPE_MONTHLY
Method Detail |
---|
public java.lang.String getScheduleBean()
scheduleBean
.
scheduleBean
.public void run()
toStop
is false. Before the scheduled bean is execute the method
ScheduleTypes.sleep()
is execute.errors
but this will not stop the schedule bean
execution the next time.
run
in interface java.lang.Runnable
public void stop()
toStop
at true.
public java.util.ArrayList getErrors()
errors
.
errors
.protected void sendEmail(java.lang.String text)
text
- text of email.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |