public class BBjAdminClientTaskGroup extends BBjAdminSimplePropWriter implements BBjAdminTaskGroup
AUTORUN, DAILY, END_DATE, FRIDAY, HOURLY, ID, LAST_RUN, LAST_STATUS, MONDAY, MONTHLY, NAME, NEXT_RUN, NONE, REPEAT_DAYS, REPEAT_FREQUENCY, REPEAT_TYPE, SATURDAY, SCHEUDULING_PREFIX, START_DATE, SUNDAY, THURSDAY, TUESDAY, WEDNESDAY, WEEKLY, YEARLY
Constructor and Description |
---|
BBjAdminClientTaskGroup() |
Modifier and Type | Method and Description |
---|---|
void |
commit()
Stores any changes made, to the task definition file.
|
boolean |
equals(java.lang.Object p_obj) |
boolean |
executeIfAppropriate()
Call this method to execute the scheduled task and its items if it is the
appropriate time according to its configuration.
|
void |
executeIfAutorun()
Executes the task group only if it is configured as autorun.
|
java.lang.String |
getSchedulingDescription()
Returns a human readable description of the scheduling for this group.
|
BBjAdminList<BBjAdminTask> |
getTasks()
Returns a list of tasks within this group.
|
org.w3c.dom.Element |
getXML(org.w3c.dom.Document p_xmlDoc)
Internal use only.
|
boolean |
isEnabled()
Returns true if the group is currently enabled and scheduled run.
|
BBjAdminTask |
newTask(BBjAdminTask.TaskType p_type)
Creates a new instance of a task but does NOT add it to the list of tasks.
|
void |
setEnabled(boolean p_enabled)
Enables or disables the task group.
|
void |
setTasks(BBjAdminList<BBjAdminTask> p_tasks) |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addType, canAddNewProperties, canClear, clear, clearProperties, clearProperty, getReadOnly, hasChanged, isReadOnly, setBoolean, setDouble, setInt, setList, setLong, setProperties, setString, setValue
checkValueEqual, contains, contains, getBoolean, getDouble, getInt, getList, getLong, getProperties, getString, getType, getTypes, getValue
public BBjAdminClientTaskGroup() throws BBjAdminException
BBjAdminException
public boolean executeIfAppropriate() throws BBjAdminException
BBjAdminTaskGroup
executeIfAppropriate
in interface BBjAdminTaskGroup
BBjAdminException
public void executeIfAutorun() throws BBjAdminException
BBjAdminTaskGroup
executeIfAutorun
in interface BBjAdminTaskGroup
BBjAdminException
public BBjAdminList<BBjAdminTask> getTasks()
BBjAdminTaskGroup
getTasks
in interface BBjAdminTaskGroup
public void setTasks(BBjAdminList<BBjAdminTask> p_tasks)
setTasks
in interface BBjAdminTaskGroup
public java.lang.String getSchedulingDescription() throws BBjAdminException
BBjAdminTaskGroup
getSchedulingDescription
in interface BBjAdminTaskGroup
BBjAdminException
public BBjAdminTask newTask(BBjAdminTask.TaskType p_type) throws BBjAdminException
BBjAdminTaskGroup
BBjAdminTaskGroup.getTasks()
.newTask
in interface BBjAdminTaskGroup
BBjAdminException
public org.w3c.dom.Element getXML(org.w3c.dom.Document p_xmlDoc) throws BBjAdminException
BBjAdminTaskGroup
getXML
in interface BBjAdminTaskGroup
BBjAdminException
public void commit() throws BBjAdminException
BBjAdminTaskGroup
commit
in interface BBjAdminTaskGroup
BBjAdminException
public boolean equals(java.lang.Object p_obj)
public boolean isEnabled() throws BBjAdminException
BBjAdminTaskGroup
isEnabled
in interface BBjAdminTaskGroup
BBjAdminException
public void setEnabled(boolean p_enabled) throws BBjAdminException
BBjAdminTaskGroup
setEnabled
in interface BBjAdminTaskGroup
BBjAdminException