|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jfw.scheduler.ScheduleBean
public abstract class ScheduleBean
Must be extend by the classes added at scheduler.
| Field Summary | |
|---|---|
protected java.lang.String |
className
Used for logging. |
protected PropertiesManager |
properties
Manage file jfw.properties. |
| Constructor Summary | |
|---|---|
ScheduleBean()
Create a new instance. |
|
| Method Summary | |
|---|---|
protected void |
addError(java.lang.String message)
Add a message error. |
int |
getAdvance()
Get value of attribute advance. |
protected void |
sendEmail(java.lang.String message)
Send an email. |
protected void |
setAdvance(int advance)
Set percent of execution. |
abstract void |
start()
Must be implement by sub classses. |
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 |
|---|
protected java.lang.String className
protected PropertiesManager properties
| Constructor Detail |
|---|
public ScheduleBean()
| Method Detail |
|---|
public abstract void start()
throws java.lang.Throwable
ScheduleThread.run().
java.lang.Throwablepublic void stop()
toStop at true.
protected void setAdvance(int advance)
start() method if this info
is needed.
advance - a int value between 0 and 100.public int getAdvance()
advance.
advance.protected void addError(java.lang.String message)
start() when an error occurs.
Use method ScheduleThread.addError(java.lang.String) to manage the
error message.
message - the error message to add.protected void sendEmail(java.lang.String message)
ScheduleThread.sendEmail(java.lang.String)
to send the email.
message - the mail message. The to and object of the
email are defined in jfw.poperties.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||