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