public interface ContainerAsyncApi
ContainerApi
,
api docModifier and Type | Method and Description |
---|---|
com.google.common.util.concurrent.ListenableFuture<Container> |
create(String containerName)
Create CDMI Container
|
com.google.common.util.concurrent.ListenableFuture<Container> |
create(String containerName,
CreateContainerOptions... options)
Create CDMI Container
|
com.google.common.util.concurrent.ListenableFuture<Void> |
delete(String containerName)
Delete Container
|
com.google.common.util.concurrent.ListenableFuture<Container> |
get(String containerName)
get CDMI Container
|
com.google.common.util.concurrent.ListenableFuture<Container> |
get(String containerName,
ContainerQueryParams queryParams)
get CDMI Container
|
com.google.common.util.concurrent.ListenableFuture<Container> get(String containerName)
containerName
- containerName must end with a forward slash, /.
Examples:
container = get("myContainer/");
container = get("parentContainer/childContainer/");
com.google.common.util.concurrent.ListenableFuture<Container> get(String containerName, ContainerQueryParams queryParams)
containerName
- queryParams
- enables getting only certain fields, metadata, children range
Examples:
container = get("myContainer/",ContainerQueryParams.Builder.field("parentURI").field("objectName"))
container = get("myContainer/",ContainerQueryParams.Builder.metadata().field("objectName"))
ContainerQueryParams
com.google.common.util.concurrent.ListenableFuture<Container> create(String containerName)
containerName
- containerName must end with a forward slash, /.
Examples:
container = create("myContainer/");
container = create("parentContainer/childContainer/");
com.google.common.util.concurrent.ListenableFuture<Container> create(String containerName, CreateContainerOptions... options)
containerName
- options
- enables adding metadata
Examples:
container = create("myContainer/",CreateContainerOptions.Builder..metadata(metaDataIn));
CreateContainerOptions
Copyright © 2009-2013 jclouds. All Rights Reserved.