Spectra Logic
1-800-833-1132 : 1-303-449-6400


Spectra S3 Bucket, Object, and Job Operations : Job Operations : Get Job Chunks Ready for Processing

Get Job Chunks Ready for Processing
Description
Get a list of all job chunks for a given job that are ready for client processing.
For PUT jobs, this command allocates a working window of job chunks, if possible, and return a list of job chunks ready for uploading. Any chunk returned is fully allocated, meaning that you do not have to handle HTTP 307 retries on subsequent PUTs for the chunks. Retries adversely impact BlackPearl system performance and require you to provide the object data stream for every PUT retry.
For GET jobs, this command responds with a list of job chunks loaded in cache and ready for download.
Requests
Syntax
GET http[s]://{datapathDNSname}/_rest_/job_chunk?job={string}[&job_chunk={string}][&preferred_number_of_chunks={32‑bit integer}]
Request Parameters
Responses
Response Elements
<MasterObjectList
   Aggregating="TRUE|FALSE"
   BucketName="{
string}"
   CachedSizeInBytes="{64‑bit integer}"
   ChunkClientProcessingOrderGuarantee="IN_ORDER|NONE"
   CompletedSizeInBytes="{64‑bit integer}"
   EntirelyInCache="TRUE|FALSE"
   JobId="{string}"
   Naked="TRUE|FALSE"
   Name="{string}"
   OriginalSizeInBytes="{64‑bit integer}"
   Priority="CRITICAL|URGENT|HIGH|NORMAL|LOW|BACKGROUND"
   RequestType="GET|PUT|VERIFY"
   StartDate="{YYYY-MM-DDThh:mm:ss.xxxZ}"
   Status="IN_PROGRESS|COMPLETED|CANCELED"
   UserId="{
string}"
   UserName="{string}">
   <Nodes>
      <Node
         EndPoint="{string}" Id="{string}"/>
      ...
   </Nodes>
   <Objects
      ChunkId="{string}"
      ChunkNumber="{32‑bit integer}">
      NodeId="{string}"
      <Object
         Id="{string}"
         InCache="TRUE|FALSE"
         Latest="TRUE|FALSE"
         Length="{64‑bit integer}"
         Name="{string}"
         Offset="{64‑bit integer}"
         Version="{64‑bit integer}"/>
      ...
   </Objects>
   ...
</MasterObjectList>
where the response elements are defined as follows:
Whether the job can have additional PUTs or GETs appended to it. Jobs aggregate if created with the aggregating request parameter set to TRUE, or if created by the BlackPearl system in response to Amazon S3 PUT and GET requests. Values: TRUE, FALSE
The amount of data that has been transferred to the cache for this job. For RequestType=PUT, this is the amount of data successfully transferred to the BlackPearl Converged Storage System from the client. For RequestType=GET, this the amount of data either in cache originally, or loaded into cache from the permanent data store. For RequestType=VERIFY, this the amount of data loaded into cache from the permanent data store.
The amount of data that has been transferred to the cache for this job. For RequestType=PUT, this is the amount of data successfully transferred to the BlackPearl Converged Storage System from the client. For RequestType=GET, this the amount of data either in cache originally, or loaded into cache from the permanent data store. For RequestType=VERIFY, this the amount of data loaded into cache from the permanent data store.
Whether the job was created as the result of a native S3 command (TRUE) or a Create Bulk GET/PUT/VERIFY job command (FALSE). Values: TRUE, FALSE
§
IN_PROGRESS — The job is currently running.
§
COMPLETED — The job completed.
§
CANCELED — The job was canceled by the user or automatically due to internal timeouts.
Example
Sample Request
This request GETs a list of all job chunks ready to process for the job with the UUID 63c605c4-8f8f-47c8-87ec-5735fbd53218.
GET http://blackpearl-hostname/_rest_/job_chunk?job=63c605c4-8f8f-47c8-87ec-5735fbd53218 HTTP/1.1
Sample Response
HTTP/1.1 200 OK
<MasterObjectList
   Aggregating="FALSE"
   BucketName="bucket_name"
   CachedSizeInBytes="0"
   ChunkClientProcessingOrderGuarantee="IN_ORDER"
   CompletedSizeInBytes="0"
   EntirelyInCache="FALSE"
   JobId="63c605c4-8f8f-47c8-87ec-5735fbd53218"
   Naked="FALSE"
   Name="Untitled"
   OriginalSizeInBytes="0"
   Priority="URGENT"
   RequestType="PUT"
   StartDate="2015-08-10T22:58:42.000Z"
   Status="IN_PROGRESS"
   UserId="3b478ebf-6076-4b01-a763-f35cadee8e77"
   UserName="user_name">
   <Nodes>
      <Node EndPoint="blackpearl-hostname"
      Id="329cd2ee-1e3c-482c-8d8f-b3c85562f05c"/>
   </Nodes>
   <Objects ChunkId="7a8fd827-072b-43be-9e28-821fca542a5f"
      ChunkNumber="1"
      NodeId="329cd2ee-1e3c-482c-8d8f-b3c85562f05c">
      <Object Id="7bd98e85-9b46-4f99-88e1-4bb3f3d7b55d"
         InCache="FALSE" Latest="TRUE" Length="1000"
         Name="o1" Offset="0" Version=1"/>
   </Objects>
</MasterObjectList>