Interface StaticLargeObjectApi
-
@Beta @Consumes("application/json") @Path("/{objectName}") public interface StaticLargeObjectApi
Provides access to the OpenStack Object Storage (Swift) Static Large Object API features. This API is new to jclouds and hence is in Beta. That means we need people to use it and give us feedback. Based on that feedback, minor changes to the interfaces may happen. This code will replace org.jclouds.openstack.swift.SwiftClient in jclouds 2.0 and it is recommended you adopt it sooner than later.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DeleteStaticLargeObjectResponse
delete(String objectName)
Deletes a static large object, if present, including all of its segments.List<Segment>
getManifest(String objectName)
Get a static large object's manifest.String
replaceManifest(String objectName, List<Segment> segments, Map<String,String> metadata)
Creates or updates a static large object's manifest.String
replaceManifest(String objectName, List<Segment> segments, Map<String,String> metadata, Map<String,String> headers)
Creates or updates a static large object's manifest.
-
-
-
Method Detail
-
replaceManifest
@Named("staticLargeObject:replaceManifest") @PUT String replaceManifest(@PathParam("objectName") String objectName, List<Segment> segments, Map<String,String> metadata)
Creates or updates a static large object's manifest.- Parameters:
objectName
- corresponds toSwiftObject.getName()
.segments
- ordered parts which will be concatenated upon download.metadata
- corresponds toSwiftObject.getMetadata()
.- Returns:
SwiftObject.getEtag()
of the object, which is the MD5 checksum of the concatenated ETag values of thesegments
.
-
replaceManifest
@Named("staticLargeObject:replaceManifest") @PUT String replaceManifest(@PathParam("objectName") String objectName, List<Segment> segments, Map<String,String> metadata, Map<String,String> headers)
Creates or updates a static large object's manifest.- Parameters:
objectName
- corresponds toSwiftObject.getName()
.segments
- ordered parts which will be concatenated upon download.metadata
- corresponds toSwiftObject.getMetadata()
.headers
- Binds the map to headers, without prefixing/escaping the header name/key.- Returns:
SwiftObject.getEtag()
of the object, which is the MD5 checksum of the concatenated ETag values of thesegments
.
-
delete
@Named("staticLargeObject:delete") @DELETE DeleteStaticLargeObjectResponse delete(@PathParam("objectName") String objectName)
Deletes a static large object, if present, including all of its segments.- Parameters:
objectName
- corresponds toSwiftObject.getName()
.
-
getManifest
@Named("staticLargeObject:getManifest") @GET List<Segment> getManifest(@PathParam("objectName") String objectName)
Get a static large object's manifest.- Parameters:
objectName
- corresponds toSwiftObject.getName()
.- Returns:
- A list of the multipart segments
-
-