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


Spectra S3 Bucket, Object, and Job Operations : Job Operations : Close Aggregating Job Request

Close Aggregating Job Request
Description
Closes an existing aggregating job so that no additional PUTs or GETs are appended to it. See aggregating for more information about aggregating jobs.
Requests
Syntax
PUT http[s]://{datapathDNSname}/_rest_/job/{job UUID or other unique identifier}/?CLOSE_AGGREGATING_JOB
To determine the UUID for a job, see Get Jobs.
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"
   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}">
      <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=GET, this is the amount of data either in cache originally, or loaded into cache from the permanent data store.
The amount of data that is completely processed for this job. For RequestType=GET, this indicates the amount of data that has been read successfully by the client.
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 ends aggregation for the job with the UUID 78dba377-a02a-4c15-b2a1-412514342f17.
PUT http://blackpearl-hostname/_rest_/job/78dba377-a02a-4c15-b2a1-412514342f17/?CLOSE_AGGREGATING_JOB" HTTP/1.1
Sample Response
HTTP/1.1 200 OK
<MasterObjectList
   Aggregating="FALSE"
   BucketName="bucket1"
   CachedSizeInBytes="0"
   ChunkClientProcessingOrderGuarantee="IN_ORDER"
   CompletedSizeInBytes="0"
   EntirelyInCache="FALSE"
   JobId="78dba377-a02a-4c15-b2a1-412514342f17"
   Naked="FALSE"
   Name="GetJob"
   OriginalSizeInBytes="0"
   Priority="HIGH"
   RequestType="GET"
   StartDate="2017-06-05T17:59:08.000Z"
   Status="IN_PROGRESS"
   UserId="a6a04b3d-960a-4799-9c88-6801f5cf5449"
   UserName="user_name">
   <Nodes>
      <Node EndPoint="blackpearl-hostname"
      Id="aed40ca0-5289-49ca-9cd9-cf5a7559a1db"/>
   </Nodes>
   <Objects
      ChunkId="a909e72e-a96a-4c3e-95a3-f3472e14ae17"
      ChunkNumber="1">
      <Object Id="2ee4f397-c169-4a59-96cc-a07280412f43"
         InCache="FALSE" Latest="TRUE" Length="10"
         Name="o1" Offset="10" Version=1"/>
   </Objects>
</MasterObjectList>