org.jclouds.openstack.swift.v1.SwiftApi
and related
feature APIs in org.jclouds.openstack.swift.v1.features.*
as noted in
each method. This interface will be removed in jclouds 2.0.@Deprecated public interface CommonSwiftClient extends Closeable
Modifier and Type | Method and Description |
---|---|
boolean |
containerExists(String container)
Deprecated.
This method will be replaced by
org.jclouds.openstack.swift.v1.features.ContainerApi#head() |
boolean |
copyObject(String sourceContainer,
String sourceObject,
String destinationContainer,
String destinationObject)
Deprecated.
This method will be replaced by
org.jclouds.openstack.swift.v1.features.ObjectApi#copy() |
boolean |
createContainer(String container)
Deprecated.
This method will be replaced by
org.jclouds.openstack.swift.v1.features.ContainerApi#createIfAbsent() |
boolean |
createContainer(String container,
CreateContainerOptions... options)
Deprecated.
This method will be replaced by
org.jclouds.openstack.swift.v1.features.ContainerApi#createIfAbsent() |
boolean |
deleteContainerIfEmpty(String container)
Deprecated.
This method will be replaced by
(@link org.jclouds.openstack.swift.v1.features.ContainerApi#deleteIfEmpty()}
|
boolean |
deleteContainerMetadata(String container,
Iterable<String> metadataKeys)
Deprecated.
This method will be replaced by
org.jclouds.openstack.swift.v1.features.ContainerApi#deleteMetadata() |
AccountMetadata |
getAccountStatistics()
Deprecated.
This method will be replaced by
AccountApi.get() |
ContainerMetadata |
getContainerMetadata(String container)
Deprecated.
This method will be replaced by
org.jclouds.openstack.swift.v1.features.ContainerApi#get() |
SwiftObject |
getObject(String container,
String name,
GetOptions... options)
Deprecated.
This method will be replaced by
org.jclouds.openstack.swift.v1.features.ObjectApi#get() |
MutableObjectInfoWithMetadata |
getObjectInfo(String container,
String name)
Deprecated.
This method will be replaced by
org.jclouds.openstack.swift.v1.features.ObjectApi#head() |
Set<ContainerMetadata> |
listContainers(ListContainerOptions... options)
Deprecated.
This method will be replaced by
ContainerApi.list() and
ContainerApi.list(ListContainerOptions) |
PageSet<ObjectInfo> |
listObjects(String container,
ListContainerOptions... options)
Deprecated.
This method will be replaced by
ObjectApi.list() and
ObjectApi.list(ListContainerOptions) |
SwiftObject |
newSwiftObject()
Deprecated.
This method will be replaced by
SwiftObject.builder() |
boolean |
objectExists(String container,
String name)
Deprecated.
This method will be replaced by
org.jclouds.openstack.swift.v1.features.ObjectApi#head() |
String |
putObject(String container,
SwiftObject object)
Deprecated.
This method will be replaced by
org.jclouds.openstack.swift.v1.features.ObjectApi#replace() |
String |
putObjectManifest(String container,
String name)
Deprecated.
This method will be replaced by
org.jclouds.openstack.swift.v1.features.ObjectApi#replaceManifest() |
void |
removeObject(String container,
String name)
Deprecated.
This method will be replaced by
org.jclouds.openstack.swift.v1.features.ObjectApi#delete() |
boolean |
setContainerMetadata(String container,
Map<String,String> containerMetadata)
Deprecated.
This method will be replaced by
org.jclouds.openstack.swift.v1.features.ContainerApi#updateMetadata() |
boolean |
setObjectInfo(String container,
String name,
Map<String,String> userMetadata)
Deprecated.
This method will be replaced by
org.jclouds.openstack.swift.v1.features.ObjectApi@updateMetadata() |
@Provides SwiftObject newSwiftObject()
SwiftObject.builder()
@Deprecated @Named(value="GetAccountMetadata") AccountMetadata getAccountStatistics()
AccountApi.get()
Determine the number of Containers within the identity and the total bytes stored. Since the storage system is designed to store large amounts of data, care should be taken when representing the total bytes response as an integer; when possible, convert it to a 64-bit unsigned integer if your platform supports that primitive flavor.
AccountMetadata
@Deprecated @Named(value="ListContainers") Set<ContainerMetadata> listContainers(ListContainerOptions... options)
ContainerApi.list()
and
ContainerApi.list(ListContainerOptions)
Containers ordered by name. The following list describes the optional query parameters that are supported with this request.
At this time, a prex query parameter is not supported at the Account level.
If 10,000 is larger than desired, a limit parameter may be given.
If the number of container names returned equals the limit given (or 10,000 if no limit is given), it can be assumed there are more container names to be listed. If the container name list is exactly divisible by the limit, the last request will simply have no content.
@Deprecated @Named(value="GetContainerMetadata") ContainerMetadata getContainerMetadata(String container)
org.jclouds.openstack.swift.v1.features.ContainerApi#get()
ContainerMetadata
for the specified container.container
- the container to get the metadata fromContainerMetadata
@Deprecated @Named(value="UpdateContainerMetadata") boolean setContainerMetadata(String container, Map<String,String> containerMetadata)
org.jclouds.openstack.swift.v1.features.ContainerApi#updateMetadata()
ContainerMetadata
on the given container.container
- the container to set the metadata oncontainerMetadata
- a Map<String, String>
containing the metadatatrue
if the Container Metadata was successfully created or updated, false if not.@Deprecated @Named(value="UpdateContainerMetadata") boolean deleteContainerMetadata(String container, Iterable<String> metadataKeys)
org.jclouds.openstack.swift.v1.features.ContainerApi#deleteMetadata()
container
- the container to delete the metadata frommetadataKeys
- the metadata keystrue
if the Container was successfully deleted, false if not.@Deprecated @Named(value="CreateContainer") boolean createContainer(String container)
org.jclouds.openstack.swift.v1.features.ContainerApi#createIfAbsent()
container
- the name of the containertrue
if the Container was successfully created, false if not.boolean createContainer(String container, CreateContainerOptions... options)
org.jclouds.openstack.swift.v1.features.ContainerApi#createIfAbsent()
@Deprecated @Named(value="DeleteContainer") boolean deleteContainerIfEmpty(String container)
@Deprecated @Named(value="GetContainerMetadata") boolean containerExists(String container)
org.jclouds.openstack.swift.v1.features.ContainerApi#head()
@Deprecated @Named(value="ListObjects") PageSet<ObjectInfo> listObjects(String container, ListContainerOptions... options)
ObjectApi.list()
and
ObjectApi.list(ListContainerOptions)
@Deprecated @Named(value="GetObject") SwiftObject getObject(String container, String name, GetOptions... options)
org.jclouds.openstack.swift.v1.features.ObjectApi#get()
@Deprecated @Named(value="UpdateObjectMetadata") boolean setObjectInfo(String container, String name, Map<String,String> userMetadata)
org.jclouds.openstack.swift.v1.features.ObjectApi@updateMetadata()
@Deprecated @Named(value="GetObjectMetadata") MutableObjectInfoWithMetadata getObjectInfo(String container, String name)
org.jclouds.openstack.swift.v1.features.ObjectApi#head()
@Deprecated @Named(value="PutObject") String putObject(String container, SwiftObject object)
org.jclouds.openstack.swift.v1.features.ObjectApi#replace()
@Deprecated @Named(value="CopyObject") boolean copyObject(String sourceContainer, String sourceObject, String destinationContainer, String destinationObject)
org.jclouds.openstack.swift.v1.features.ObjectApi#copy()
CopyObjectException
- If the object was not copied@Deprecated @Named(value="RemoveObject") void removeObject(String container, String name)
org.jclouds.openstack.swift.v1.features.ObjectApi#delete()
@Deprecated @Named(value="GetObjectMetadata") boolean objectExists(String container, String name)
org.jclouds.openstack.swift.v1.features.ObjectApi#head()
ContainerNotFoundException
- if the container is not present@Deprecated @Named(value="PutObjectManifest") String putObjectManifest(String container, String name)
org.jclouds.openstack.swift.v1.features.ObjectApi#replaceManifest()
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.