org.jclouds.openstack.swift
Interface CommonSwiftAsyncClient

All Known Subinterfaces:
CloudFilesAsyncClient, SwiftAsyncClient

public interface CommonSwiftAsyncClient

Common features between OpenStack Swift and CloudFiles

Author:
Adrian Cole
See Also:
CommonSwiftClient,

Method Summary
 com.google.common.util.concurrent.ListenableFuture<Boolean> containerExists(String container)
           
 com.google.common.util.concurrent.ListenableFuture<Boolean> createContainer(String container)
           
 com.google.common.util.concurrent.ListenableFuture<Boolean> deleteContainerIfEmpty(String container)
           
 com.google.common.util.concurrent.ListenableFuture<AccountMetadata> getAccountStatistics()
           
 com.google.common.util.concurrent.ListenableFuture<SwiftObject> getObject(String container, String name, GetOptions... options)
           
 com.google.common.util.concurrent.ListenableFuture<MutableObjectInfoWithMetadata> getObjectInfo(String container, String name)
           
 com.google.common.util.concurrent.ListenableFuture<? extends Set<ContainerMetadata>> listContainers(ListContainerOptions... options)
           
 com.google.common.util.concurrent.ListenableFuture<PageSet<ObjectInfo>> listObjects(String container, ListContainerOptions... options)
           
 SwiftObject newSwiftObject()
           
 com.google.common.util.concurrent.ListenableFuture<Boolean> objectExists(String container, String name)
           
 com.google.common.util.concurrent.ListenableFuture<String> putObject(String container, SwiftObject object)
           
 com.google.common.util.concurrent.ListenableFuture<Void> removeObject(String container, String name)
           
 com.google.common.util.concurrent.ListenableFuture<Boolean> setObjectInfo(String container, String name, Map<String,String> userMetadata)
           
 

Method Detail

newSwiftObject

@Provides
SwiftObject newSwiftObject()

getAccountStatistics

com.google.common.util.concurrent.ListenableFuture<AccountMetadata> getAccountStatistics()
See Also:
CommonSwiftClient.getAccountStatistics()

listContainers

com.google.common.util.concurrent.ListenableFuture<? extends Set<ContainerMetadata>> listContainers(ListContainerOptions... options)
See Also:
CommonSwiftClient.listContainers(org.jclouds.openstack.swift.options.ListContainerOptions...)

setObjectInfo

com.google.common.util.concurrent.ListenableFuture<Boolean> setObjectInfo(String container,
                                                                          String name,
                                                                          Map<String,String> userMetadata)
See Also:
CommonSwiftClient.setObjectInfo(java.lang.String, java.lang.String, java.util.Map)

createContainer

com.google.common.util.concurrent.ListenableFuture<Boolean> createContainer(String container)
See Also:
CommonSwiftClient.createContainer(java.lang.String)

deleteContainerIfEmpty

com.google.common.util.concurrent.ListenableFuture<Boolean> deleteContainerIfEmpty(String container)
See Also:
CommonSwiftClient.deleteContainerIfEmpty(java.lang.String)

listObjects

com.google.common.util.concurrent.ListenableFuture<PageSet<ObjectInfo>> listObjects(String container,
                                                                                    ListContainerOptions... options)
See Also:
CommonSwiftClient.listObjects(java.lang.String, org.jclouds.openstack.swift.options.ListContainerOptions...)

containerExists

com.google.common.util.concurrent.ListenableFuture<Boolean> containerExists(String container)
See Also:
CommonSwiftClient.containerExists(java.lang.String)

putObject

com.google.common.util.concurrent.ListenableFuture<String> putObject(String container,
                                                                     SwiftObject object)
See Also:
CommonSwiftClient.putObject(java.lang.String, org.jclouds.openstack.swift.domain.SwiftObject)

getObject

com.google.common.util.concurrent.ListenableFuture<SwiftObject> getObject(String container,
                                                                          String name,
                                                                          GetOptions... options)
See Also:
CommonSwiftClient.getObject(java.lang.String, java.lang.String, org.jclouds.http.options.GetOptions...)

getObjectInfo

com.google.common.util.concurrent.ListenableFuture<MutableObjectInfoWithMetadata> getObjectInfo(String container,
                                                                                                String name)
See Also:
CommonSwiftClient.getObjectInfo(java.lang.String, java.lang.String)

objectExists

com.google.common.util.concurrent.ListenableFuture<Boolean> objectExists(String container,
                                                                         String name)
See Also:
CommonSwiftClient.objectExists(java.lang.String, java.lang.String)

removeObject

com.google.common.util.concurrent.ListenableFuture<Void> removeObject(String container,
                                                                      String name)
See Also:
CommonSwiftClient.removeObject(java.lang.String, java.lang.String)


Copyright © 2009-2011 jclouds. All Rights Reserved.