org.jclouds.hpcloud.objectstorage
Interface HPCloudObjectStorageAsyncClient

All Superinterfaces:
CommonSwiftAsyncClient

public interface HPCloudObjectStorageAsyncClient
extends CommonSwiftAsyncClient

Provides asynchronous access to HP Cloud Object Storage via the REST API.

All commands return a ListenableFuture of the result. Any exceptions incurred during processing will be backend in an ExecutionException as documented in Future.get().

Author:
Jeremy Daggett
See Also:
HPCloudObjectStorageClient, HP Cloud Object Storage API

Method Summary
 com.google.common.util.concurrent.ListenableFuture<Boolean> createContainer(String container, CreateContainerOptions... options)
           
 com.google.common.util.concurrent.ListenableFuture<Boolean> deleteContainerIfEmpty(String container)
           
 com.google.common.base.Optional<HPCloudCDNAsyncClient> getCDNExtension()
          Provides synchronous access to CDN features.
 com.google.common.util.concurrent.ListenableFuture<ContainerMetadata> getContainerMetadata(String container)
           
 com.google.common.util.concurrent.ListenableFuture<? extends Set<ContainerMetadata>> listContainers(ListContainerOptions... options)
           
 
Methods inherited from interface org.jclouds.openstack.swift.CommonSwiftAsyncClient
containerExists, createContainer, getAccountStatistics, getObject, getObjectInfo, listObjects, newSwiftObject, objectExists, putObject, putObjectManifest, removeObject, setObjectInfo
 

Method Detail

getContainerMetadata

@Beta
com.google.common.util.concurrent.ListenableFuture<ContainerMetadata> getContainerMetadata(String container)
See Also:
HPCloudObjectStorageClient#getCDNMetadata(String)

createContainer

com.google.common.util.concurrent.ListenableFuture<Boolean> createContainer(String container,
                                                                            CreateContainerOptions... options)
See Also:
HPCloudObjectStorageClient.createContainer(java.lang.String, org.jclouds.hpcloud.objectstorage.options.CreateContainerOptions...)

listContainers

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

deleteContainerIfEmpty

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

getCDNExtension

com.google.common.base.Optional<HPCloudCDNAsyncClient> getCDNExtension()
Provides synchronous access to CDN features.



Copyright © 2009-2012 jclouds. All Rights Reserved.