[Index]

reset


A job which resets another job. This job is useful to reset jobs or services that have been persisted, and loaded back in their previous COMPLETE states. The reset can be used to set them back to READY.

A reset might also be needed before running a job elsewhere such as on a remote server.

This job is not Serializable and so won't be persisted itself.

See also the state:resets job.


Property Summary

job Job to reset.
level The reset level, hard or soft
name A name, can be any text.

Example Summary

Example 1 Using reset in explorer.xml.

Property Detail

job

Configured ByATTRIBUTE
AccessREAD_WRITE
RequiredYes.

Job to reset.

level

Configured ByATTRIBUTE
AccessREAD_WRITE
RequiredNo, defaults to soft.

The reset level, hard or soft

name

Configured ByATTRIBUTE
AccessREAD_WRITE
RequiredNo.

A name, can be any text.


Examples

Example 1

Using reset in explorer.xml.

Look at the explorer.xml file in Oddjob's home directory. This file is loaded by the default oddjob.xml file when Oddjob first runs. The explorer.xml configuration is run with a file-persister persister that persists the Explorers state when it completes. When Oddjob is run again the Explorer will be loaded with it's previous COMPLETE state and so won't run. The reset is necessary to set it back to READY.


(c) Rob Gordon 2005 - 2013