Package com.basis.api.admin.client
Class BBjAdminClientTaskGroup
java.lang.Object
com.basis.api.admin.internal.BBjAdminSimplePropReader
com.basis.api.admin.internal.BBjAdminSimplePropWriter
com.basis.api.admin.client.BBjAdminClientTaskGroup
- All Implemented Interfaces:
BBjAdminPropertyReader,BBjAdminPropertyWriter,BBjAdminTaskGroup,Serializable,Remote
- See Also:
-
Field Summary
Fields inherited from class com.basis.api.admin.internal.BBjAdminSimplePropWriter
m_hasChangedFields inherited from class com.basis.api.admin.internal.BBjAdminSimplePropReader
m_properties, m_typesFields inherited from interface com.basis.api.admin.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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcommit()Stores any changes made, to the task definition file.booleanbooleanCall this method to execute the scheduled task and its items if it is the appropriate time according to its configuration.voidExecutes the task group only if it is configured as autorun.Returns a human readable description of the scheduling for this group.getTasks()Returns a list of tasks within this group.Internal use only.booleanReturns true if the group is currently enabled and scheduled run.newTask(BBjAdminTask.TaskType p_type) Creates a new instance of a task but does NOT add it to the list of tasks.voidsetEnabled(boolean p_enabled) Enables or disables the task group.voidsetTasks(BBjAdminList<BBjAdminTask> p_tasks) Methods inherited from class com.basis.api.admin.internal.BBjAdminSimplePropWriter
addType, canAddNewProperties, canClear, clear, clearProperties, clearProperty, getReadOnly, hasChanged, isReadOnly, setBoolean, setDouble, setInt, setList, setLong, setProperties, setString, setValueMethods inherited from class com.basis.api.admin.internal.BBjAdminSimplePropReader
checkValueEqual, compareProperties, contains, contains, getBoolean, getDouble, getInt, getList, getLong, getProperties, getString, getType, getTypes, getValueMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.basis.api.admin.BBjAdminPropertyReader
checkValueEqual, contains, contains, getBoolean, getDouble, getInt, getList, getLong, getProperties, getString, getType, getTypes, getValueMethods inherited from interface com.basis.api.admin.BBjAdminPropertyWriter
addType, canAddNewProperties, canClear, clear, clearProperties, clearProperty, getReadOnly, hasChanged, isReadOnly, setBoolean, setDouble, setInt, setList, setLong, setProperties, setString, setValue
-
Constructor Details
-
BBjAdminClientTaskGroup
- Throws:
BBjAdminException
-
-
Method Details
-
executeIfAppropriate
Description copied from interface:BBjAdminTaskGroupCall this method to execute the scheduled task and its items if it is the appropriate time according to its configuration. If it was time and it executed it returns true. Otherwise returns false.- Specified by:
executeIfAppropriatein interfaceBBjAdminTaskGroup- Throws:
BBjAdminException
-
executeIfAutorun
Description copied from interface:BBjAdminTaskGroupExecutes the task group only if it is configured as autorun.- Specified by:
executeIfAutorunin interfaceBBjAdminTaskGroup- Throws:
BBjAdminException
-
getTasks
Description copied from interface:BBjAdminTaskGroupReturns a list of tasks within this group. When you execute the group, all of its tasks will be executed in the order they appear in the group.- Specified by:
getTasksin interfaceBBjAdminTaskGroup- Returns:
- List of the tasks in this group.
-
setTasks
- Specified by:
setTasksin interfaceBBjAdminTaskGroup
-
getSchedulingDescription
Description copied from interface:BBjAdminTaskGroupReturns a human readable description of the scheduling for this group. If it is a date, it will show the date and time. If a day of the week, the name of the day of the week. Etc.....- Specified by:
getSchedulingDescriptionin interfaceBBjAdminTaskGroup- Returns:
- The description of how this task group is scheduled. Takes all the scheduling criteria and builds a human readable string.
- Throws:
BBjAdminException
-
newTask
Description copied from interface:BBjAdminTaskGroupCreates a new instance of a task but does NOT add it to the list of tasks. Make sure to add the instance to the list of tasks returned by a call toBBjAdminTaskGroup.getTasks().- Specified by:
newTaskin interfaceBBjAdminTaskGroup- Returns:
- New instance of the specified type. Always use this method to create new task instances, never use the implementation classes of BBjAdminTask.
- Throws:
BBjAdminException
-
getXML
Description copied from interface:BBjAdminTaskGroupInternal use only.- Specified by:
getXMLin interfaceBBjAdminTaskGroup- Throws:
BBjAdminException
-
commit
Description copied from interface:BBjAdminTaskGroupStores any changes made, to the task definition file.- Specified by:
commitin interfaceBBjAdminTaskGroup- Throws:
BBjAdminException
-
equals
-
isEnabled
Description copied from interface:BBjAdminTaskGroupReturns true if the group is currently enabled and scheduled run.- Specified by:
isEnabledin interfaceBBjAdminTaskGroup- Returns:
- True if the task group is enabled. False if not.
- Throws:
BBjAdminException
-
setEnabled
Description copied from interface:BBjAdminTaskGroupEnables or disables the task group. A disabled task group will not run the next time it is scheduled to. NOTE: You must call commit() on the BBjAdminTaskGroup in order for the enabled state to be saved and updated.- Specified by:
setEnabledin interfaceBBjAdminTaskGroup- Throws:
BBjAdminException
-