public interface CommonSwiftClient
Modifier and Type | Method and Description |
---|---|
boolean |
containerExists(String container) |
boolean |
copyObject(String sourceContainer,
String sourceObject,
String destinationContainer,
String destinationObject) |
boolean |
createContainer(String container) |
boolean |
createContainer(String container,
CreateContainerOptions... options) |
boolean |
deleteContainerIfEmpty(String container) |
boolean |
deleteContainerMetadata(String container,
Iterable<String> metadataKeys) |
AccountMetadata |
getAccountStatistics()
HEAD operations against an identity are performed to retrieve the number of Containers and the
total bytes stored in Cloud Files for the identity.
|
ContainerMetadata |
getContainerMetadata(String container) |
SwiftObject |
getObject(String container,
String name,
GetOptions... options) |
MutableObjectInfoWithMetadata |
getObjectInfo(String container,
String name) |
Set<ContainerMetadata> |
listContainers(ListContainerOptions... options)
GET operations against the X-Storage-Url for an identity are performed to retrieve a list of
existing storage
Containers ordered by name.
|
PageSet<ObjectInfo> |
listObjects(String container,
ListContainerOptions... options) |
SwiftObject |
newSwiftObject() |
boolean |
objectExists(String container,
String name) |
String |
putObject(String container,
SwiftObject object) |
String |
putObjectManifest(String container,
String name) |
void |
removeObject(String container,
String name) |
boolean |
setContainerMetadata(String container,
Map<String,String> containerMetadata) |
boolean |
setObjectInfo(String container,
String name,
Map<String,String> userMetadata) |
@Provides SwiftObject newSwiftObject()
AccountMetadata getAccountStatistics()
Set<ContainerMetadata> listContainers(ListContainerOptions... options)
ContainerMetadata getContainerMetadata(String container)
boolean setContainerMetadata(String container, Map<String,String> containerMetadata)
boolean deleteContainerMetadata(String container, Iterable<String> metadataKeys)
boolean createContainer(String container)
boolean createContainer(String container, CreateContainerOptions... options)
boolean deleteContainerIfEmpty(String container)
boolean containerExists(String container)
PageSet<ObjectInfo> listObjects(String container, ListContainerOptions... options)
SwiftObject getObject(String container, String name, GetOptions... options)
MutableObjectInfoWithMetadata getObjectInfo(String container, String name)
String putObject(String container, SwiftObject object)
boolean copyObject(String sourceContainer, String sourceObject, String destinationContainer, String destinationObject)
CopyObjectException
- If the object was not copiedboolean objectExists(String container, String name)
ContainerNotFoundException
- if the container is not present.Copyright © 2009-2013 jclouds. All Rights Reserved.