Package com.groiss.timer
Interface TimerEntry
- All Superinterfaces:
Activatable
,KeyValuePair<String,
,String> Persistent
,Serializable
The TimerEntry interface defines the properties of a timer entry. Use the administration tool
for manupulating this objects.
-
Field Summary
Fields inherited from interface com.groiss.store.Persistent
emptyKeys
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether the timer entry is active (action will be executed) or not.Returns the application of this timer entry.getArgs()
Returns the argument for the timer entry.Get the classname for the timer entry.Get the real schedule date of a timer run.Get the first time of scheuling the timer entry.getId()
Get the id for the timer entry.Last run (start time) of this timer entry.Last run (end time) of this timer entry.Get the nominal (original) schedule for a timer run.Get the period for the timer entry.boolean
Returns whether the timer entry should be running on each node in a cluster.boolean
Run on startup?Get the thread-id for the timer entry.void
void
setClassname
(String classname) void
setDescription
(String desc) void
setFirstTime
(Date d) void
void
setPattern
(String pattern) void
setRunEverywhere
(boolean everywhere) void
setRunOnStartup
(boolean run) void
setThreadId
(String id) Methods inherited from interface com.groiss.store.Activatable
isActive, setActive
Methods inherited from interface com.groiss.store.Persistent
afterDelete, afterInsert, afterRead, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, dbFields, getKey, getKeys, getLocalClassName, getLocalObjectName, getOid, getStore, getTableName, getValue, isFilled, isValid, setFilled, setOid, setOid, toListString
-
Method Details
-
getId
String getId()Get the id for the timer entry. -
setId
-
getClassname
String getClassname()Get the classname for the timer entry. This field contains the name of the class of the timer task which implements what is really done, when this timer entry is scheduled. -
setClassname
-
getArgs
String getArgs()Returns the argument for the timer entry. -
setArgs
-
getFirstTime
Date getFirstTime()Get the first time of scheuling the timer entry. -
setFirstTime
-
getPattern
String getPattern()Get the period for the timer entry. -
setPattern
-
getActive
boolean getActive()Returns whether the timer entry is active (action will be executed) or not. -
getThreadId
String getThreadId()Get the thread-id for the timer entry. -
getApplication
Application getApplication()Returns the application of this timer entry.- Returns:
- the application
-
setThreadId
-
getDescription
String getDescription() -
setDescription
-
getRunOnStartup
boolean getRunOnStartup()Run on startup? -
setRunOnStartup
void setRunOnStartup(boolean run) -
getRunEverywhere
boolean getRunEverywhere()Returns whether the timer entry should be running on each node in a cluster. -
setRunEverywhere
void setRunEverywhere(boolean everywhere) -
getNominalScheduleDate
Date getNominalScheduleDate()Get the nominal (original) schedule for a timer run. May be null.- Returns:
- the nominal schedule for a timer run.
-
getEffectiveScheduleDate
Date getEffectiveScheduleDate()Get the real schedule date of a timer run. May be null.- Returns:
- the effective schedule date of a timer run.
-
getLastRun
Date getLastRun()Last run (start time) of this timer entry.- Returns:
- a date object or null
-
getLastRunEnd
Date getLastRunEnd()Last run (end time) of this timer entry.- Returns:
- a date object or null
-