Creating a Task
Each task has the following properties:
- Task Name – this specifies the functional operation that the task performs
- Title – this is a localizable title that is visible in the utility to identify the task
- Node ID –: this is a pull-down list that is populated by the names of the nodes that are started on the cluster. The node ID is specified in the Configuration.properties file as the WEB_SERVER_NAME. The name of each node ID must be unique in the cluster
- Start Option – This may be one of the following:
- None: no action to be taken for/by the task
- START_ON_BOOT: start up the task when the application server node is started
- START_NOW: start up the task immediately and also when the node is started
- STOP_NOW: stop the task immediately and discard its thread
- AUTO_START: the task will be started by ExtraView when it is required. For example, the Metadata Export and Metadata Import tasks are only started when they are required
- STOPPED: the task is currently stopped, but if required again, it will be started automatcially. For example, the Metadata Export and Metadata Import tasks are stopped when they have completed their functionality, but can be started again if required
- Poll Interval – This is the number of seconds between each triggering of the task. Once the task has finished, it stops executing until the poll interval is reached
- Class Name – This is the name of the Java class that contains the code for the task to be executed.
Modifying a Task
After viewing the list of tasks, the administrator may modify some aspects of any one of the tasks:
- Title
- Node Id
- Start Option
- Start Option
- Poll Interval
- Class name
Generally, this function is used to modify the start option, either to start or to stop a task from executing or to alter the frequency with which the task executes.
No matter what the prior value is for start option, when the user updates the task, the specified start option is carried out by the task control task. START_NOW and STOP_NOW have immediate consequences on the target node, as long as the task control task (TASK_CONTROL_TASK) is running.
Deleting a Task
One of the options in the task management utility EDIT screen is to delete a task. Note that this only removes the task from the task management utility and has no effect on the background processing of the task. If it is already running, it continues to run. If the task is stopped or in error it remains in that state.