public interface CommonSwiftClient
Modifier and Type | Method and Description |
---|---|
boolean |
containerExists(String container) |
boolean |
createContainer(String container) |
boolean |
deleteContainerIfEmpty(String container) |
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.
|
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) |
void |
removeObject(String container,
String name) |
boolean |
setObjectInfo(String container,
String name,
Map<String,String> userMetadata) |
@Provides SwiftObject newSwiftObject()
AccountMetadata getAccountStatistics()
Set<ContainerMetadata> listContainers(ListContainerOptions... options)
boolean createContainer(String container)
boolean deleteContainerIfEmpty(String container)
PageSet<ObjectInfo> listObjects(String container, ListContainerOptions... options)
boolean containerExists(String container)
String putObject(String container, SwiftObject object)
SwiftObject getObject(String container, String name, GetOptions... options)
MutableObjectInfoWithMetadata getObjectInfo(String container, String name)
boolean objectExists(String container, String name)
ContainerNotFoundException
- if the container is not present.Copyright © 2009-2012 jclouds. All Rights Reserved.