CDS Callout Sequence

DISTRIBUTOR-SIDE CALLOUT SEQUENCE

AGENT-SIDE CALLOUT SEQUENCE




CDS Callout Parameters

As of CDS 3.5, there are both Distributor-side and Agent-side callout capabilities, and each side receives a slightly different list of parameters. In both cases, the callout parameters are passed to the callout script via standard input (STDIN on Unix), and are newline-delimited.

DISTRIBUTOR-SIDE CALLOUT PARAMETERS

BeginParams marks the start of input parameters on standard input
Scalar FormatVersion number number indicating the callout parameters version
Scalar Checkpoint number the checkpoint number of the calling job
Scalar JobName string the name of the calling job
Scalar JobState string the current state of the calling job:
  • Starting
  • InProgress
  • Succeeded
  • Failed
  • Aborted
  • Unknown

Scalar JobType string the type of the calling job:
  • Normal
  • Catchup
  • Revert

Scalar MappingName string the name of the mapping used by the calling job
Scalar ManifestFile string full path to the user-readable manifest file (null if not present)
Scalar SourceDir string full path to the source directory for the indicated mapping (null if not present)
Scalar RevertDir string full path to the revert directory for the indicated mapping (null if not present)
Array Destinations number announces the start of the Destinations array and the number of array elements
BeginElement marks the start of an array element
Scalar Name string the name of a destination host
Scalar Directory string full path to the destination directory on the destination host
Scalar State string status of destination host:
  • Ok
  • Job Complete
  • Sync Lost
  • Host Out of Sync

EndElement marks the end of an array element
EndParams marks the end of input parameters on standard input


AGENT-SIDE CALLOUT PARAMETERS

BeginParams marks the start of input parameters on standard input
Scalar FormatVersion number number indicating the callout parameters version
Scalar Checkpoint number the checkpoint number of the calling job
Scalar JobName string the name of the calling job
Scalar JobState string the current state of the calling job:
  • PreAccept
  • PreUpdate
  • PostUpdate
  • PreRestartServers
  • PostRestartServers
  • PostCommit
  • PostAbort

Scalar JobType string the type of the calling job:
  • Normal
  • Catchup
  • Revert

Scalar MappingName string name of the mapping associated with the calling job
Scalar ManifestFile string full path to the user-readable manifest file (null if not present)
Scalar SourceDir string full path to the source directory for this mapping (null if not present)
Scalar RevertDir string full path to the mapping's revert directory (null if not present)
Scalar Destination string full path to the destination directory for the current job
Scalar Archive string full path to the archive file for the current job (null if not present)
EndParams marks the end of input parameters on standard input


Callout Parameter Miscellany



TJ Saunders <tj@castaglia.org>
© 2000 TJ Saunders