<stop>

Purpose/Function

Stops a presumably stoppable object. The object referred to must implement ncsa.tools.common.Stoppable.

Attributes

NAME

TYPE

DEFAULT VALUE

DESCRIPTION

stoppable

ncsa.tools.common.Stoppable

null

the stoppable object

delay

long

0

time in milliseconds to wait before stopping object

failOnError

boolean

true

if stoppable is null and this flag is set to true, throws exception; otherwise, returns silently

Elements

None.

ReturnValues

None.

Examples

<declare name="worker">
    <metadata-worker/><!-- hypothetical Stoppable type -->
</declare>

...

<!-- worker is presumably running ... -->

<stop stoppable="${worker}" delay="$E{60 * 1000}"/>
...
  • No labels