In addition to monitoring and controlling jobs already deployed on the Backburner network, you can use the Backburner Client API for creating and submitting new jobs.
The following procedure outlines the steps in job creation. For details, see the code sample submitJob.C.
To create and submit a job:
Call WireTapNodeHandle::createNode() on the joblist node (/jobs), specifying the node type and display name.
Call WireTapNodeHandle::setMetadata() on the new job node, specifying the info metadata stream. This sets the information needed by all jobs. The pluginName and numTasks fields are mandatory.
Call WireTapNodeHandle::setMetadata() on the new job node, setting the details or xmlDetails metadata stream as desired to set job or renderer-specific data.
Call WireTapServerHandle::pushStream to attach any file for transfer. The stream ID for the attachment for a given job node is simply the job’s node ID. See Sending Attachments to the Backburner Manager.
By default, jobs are in a suspended state when created. The last step in job creation is to submit the job for processing by changing its state to waiting.
Call WireTapNodeHandle::setMetadata() on the job node’s state metadata stream, setting the state to waiting.