|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jfw.scheduler.Scheduler
public final class Scheduler
The container of classes in scheduling.
Is a singleton, the instance is returned by method getInstance()
.
Field Summary | |
---|---|
static java.lang.String |
DESC_KEY
Key used in scheduleList . |
static java.lang.String |
FREQUENCE_KEY
Key used in scheduleList . |
static java.lang.String |
ID_KEY
Key used in scheduleList . |
static java.lang.String |
THREAD_KEY
Key used in scheduleList . |
Method Summary | |
---|---|
ScheduleThread |
add(java.lang.String scheduledBean,
java.lang.String frequence,
java.lang.String description,
java.lang.String id)
Add a scheduled bean. |
java.util.ArrayList |
getErrors()
Get a clone of attribute errors . |
static Scheduler |
getInstance()
Return attribute instance . |
java.util.Set |
getScheduleList()
Get a Set object with keys of scheduleList . |
ScheduleThread |
getScheduleThread(java.lang.String scheduleBean)
Get the thread who execute a scheduled bean. |
java.util.HashMap |
getScheduleThreadAttributes(java.lang.String scheduleBean)
Get all parameters of a scheduled bean. |
void |
remove(java.lang.String scheduledBean)
Remove a scheduled bean from scheduler. |
void |
removeAll()
Remove alla scheduled beans from scheduler. |
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 FREQUENCE_KEY
scheduleList
.
public static final java.lang.String DESC_KEY
scheduleList
.
public static final java.lang.String ID_KEY
scheduleList
.
public static final java.lang.String THREAD_KEY
scheduleList
.
Method Detail |
---|
public static Scheduler getInstance()
instance
.
public ScheduleThread add(java.lang.String scheduledBean, java.lang.String frequence, java.lang.String description, java.lang.String id)
ScheduleBean
.
scheduledBean
- the class name of scheduled bean.frequence
- execution frequence.description
- description of scheduled bean.id
- the id of the scheduled bean.
ScheduleThread
object.public void remove(java.lang.String scheduledBean)
scheduledBean
- the class name of scheduled bean; is the name of the
class plus the id.public void removeAll()
public java.util.Set getScheduleList()
scheduleList
.
scheduleList
.public java.util.HashMap getScheduleThreadAttributes(java.lang.String scheduleBean)
scheduleList
.public ScheduleThread getScheduleThread(java.lang.String scheduleBean)
scheduleBean
- the class name of the scheduled bean.
ScheduleThread
object.public java.util.ArrayList getErrors()
errors
.
errors
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |