#700 Add ability to specify a timeout when holding a STAX job

STAXNext
closed-fixed
5
2011-11-17
2011-11-03
No

Add the ability to specify a timeout when holding a STAX job. This timeout will be the maximum length of time that a STAX job will be held before being released automatically by STAX.

This will involving changing the syntax for the STAX EXECUTE HOLD option and for the STAX HOLD request, as well as for the STAX <hold> element and for the <job> element.

1) The STAX EXECUTE request's HOLD option will now accept an optional value that contains a timeout duration for the hold (e.g. 1m, 30s, 5000, etc). For example:

STAF local STAX EXECUTE FILE C:/stax/test1.xml HOLD 1m

2) The STAX HOLD request will now accept a new optional option TIMEOUT. For example:

STAF local STAX HOLD JOB 1 TIMEOUT 1m

3) The STAX <hold> element will support a new optional timeout attribute. For example:

<hold if="1" timeout="'1m'"/>

4) The STAX <job> element will support a new optional sub-element <job-hold> with attributes timeout and if. For example:

<job monitor="1">
...
<hold if="1" timeout="'1m'"/>
</job>

This feature is also a pre-requisite for implementing Feature #3404871 "Allow STAX Subjob to be monitored completely" so that you can specify to hold a sub-job on its execute request for a short time period to allow the STAX Monitor to start monitoring it so that all of the messages logged from the beginning of the job's execution can be displayed on the STAX Monitor. Without a maximum hold time being specified, the sub-job could be held indefinitely if it's not monitored (and released) by a STAX Monitor.

Discussion

  • Sharon Lucas

    Sharon Lucas - 2011-11-17

    CVS Diff of Changes

     
  • Sharon Lucas

    Sharon Lucas - 2011-11-17
    • status: open --> closed-fixed
     
  • Sharon Lucas

    Sharon Lucas - 2011-11-17

    Added a file that contains a cvs diff of the changes.

    This feature will be in the next release of STAX, V3.5.2, currently planned to be released by mid-December 2011.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks