<restart-operation>

Purpose/Function

Re-execute a failed or interrupted operation.

Attributes

NAME

TYPE

DEFAULT VALUE

DESCRIPTION

NAME

TYPE

DEFAULT VALUE

DESCRIPTION

cleanup

boolean

true

delete all caches upon termination of the operation

copyCache

java.lang.String

null

path to copy cache for the operation

iSchemeOperation

java.lang.String

(required)

id for the operation (see below)

listCache

java.lang.String

null

path to list cache for the operation

retries

int

1

number of times to restart if operation fails

Listener control attributes

NAME

TYPE

DEFAULT VALUE

DESCRIPTION

event

boolean

true

if listener is a ProgressListener, send an event

log4j

boolean

false

if listener is a ProgressListener, use log4j

stdout

boolean

false

if listener is a ProgressListener, use stdout

Listener elements

TAG

TYPE

COUNT

DESCRIPTION

<listener>

ncsa.tools.trebuchet.core.IOperationListener

0:N

generic tag, must be used in conjuction with xmlns:absoluteTag namespace

<logging-listener>

ncsa.tools.trebuchet.core.IOperationListener

0:N

built-in type; see listeners

<copy-progress-listener>

ncsa.tools.trebuchet.core.IOperationListener

0:N

built-in type; see listeners

<file-progress-listener>

ncsa.tools.trebuchet.core.IOperationListener

0:N

built-in type; see listeners

<list-progress-listener>

ncsa.tools.trebuchet.core.IOperationListener

0:N

built-in type; see listeners

<list-metadata-listener>

ncsa.tools.trebuchet.core.IOperationListener

0:N

built-in type; see listeners

ReturnValues

DEFAULT NAME

TYPE

restart-operation

ncsa.tools.trebuchet.core.operations.CacheBasedOperation

NOTES

  • Cleanup defaults to true, so caches that are used will be deleted unless otherwise indicated. The operation is returned only if cleanup is false.
  • ISchemeOperation must be one of the following:

ISCHEME OPERATION

MODE

touch

creates a Touch operation from either a List or Copy cache; will not rescan

scanned-touch

creates a LsTouch operation from a partial List cache; rescans to complete the list

mkdir

creates a Mkdir operation from either a List or Copy cache

delete

creates a Delete operation from either a List or Copy cache; will not rescan

scanned-delete

creates a LsDelete operation from a partial List cache; rescans to complete the list

copy

creates a Copy operation from a Copy cache; will not rescan

scanned-copy

creates a LsCopy operation from a List-Copy cache pair; rescans to complete the list

Examples

<ogrescript>
   <restart-operation iSchemeOperation="scanned-copy" 
       listCache="/tmp/trebuchet/arossi/lcache_0842039812345.933"
       copyCache="/tmp/trebuchet/arossi/ccache_0842039812345.933"
       retries="3"/>
</ogrescript>
  • No labels