|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
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()
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.
Set<ContainerMetadata> listContainers(ListContainerOptions... options)
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.
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 All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |