|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CommonSwiftClient
Common features between OpenStack Swift and CloudFiles
Method Summary | |
---|---|
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)
|
Method Detail |
---|
@Provides SwiftObject newSwiftObject()
AccountMetadata getAccountStatistics()
Set<ContainerMetadata> listContainers(ListContainerOptions... options)
boolean setObjectInfo(String container, String name, Map<String,String> userMetadata)
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)
void removeObject(String container, String name)
boolean objectExists(String container, String name)
ContainerNotFoundException
- if the container is not present.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |