public interface DataApi
DataAsyncApi
,
api docModifier and Type | Method and Description |
---|---|
DataObject |
create(String dataObjectName,
CreateDataObjectOptions... options)
create CDMI Data object
|
void |
delete(String dataObjectName)
delete CDMI Data object
|
DataObject |
get(String dataObjectName)
get CDMI Data object
|
DataObject |
get(String dataObjectName,
DataObjectQueryParams queryParams)
get CDMI Data object
|
DataObject get(String dataObjectName)
dataObjectName
- dataObjectName must not end with a forward slash, /.
Examples:
dataObject = get("myDataObject");
dataObject = get("parentContainer/childContainer","myDataObject");
DataObject get(String dataObjectName, DataObjectQueryParams queryParams)
dataObjectName
- dataObjectName must not end with a forward slash, /.queryParams
- enables getting only certain fields, metadata, value range
Examples:
dataObject = get("myDataObject",ContainerQueryParams.Builder.field("parentURI").field("objectName"));
dataObject = get("myDataObject",ContainerQueryParams.Builder.value(0,10));
DataObject create(String dataObjectName, CreateDataObjectOptions... options)
dataObjectName
- dataObjectName must not end with a forward slash, /.options
- enables defining the body i.e. metadata, mimetype, value
Examples:
dataObject = create(
"myDataObject",
CreateDataObjectOptions.Builder
.value(value)
.mimetype("text/plain")
.metadata(pDataObjectMetaDataIn);
void delete(String dataObjectName)
dataObjectName
- dataObjectName must not end with a forward slash, /.
Examples:
delete("myDataObject");
Copyright © 2009-2013 jclouds. All Rights Reserved.