public interface Client
Contains all convenience methods to handle containers and objects in OpenIO SDS
Instances of Client
implementations are built with
ClientBuilder
.
Simple example:
Client client = ClientBuilder.newClient("OPENIO", "http://127.0.0.1:6000");
Modifier and Type | Method and Description |
---|---|
io.openio.sds.models.ContainerInfo |
createContainer(io.openio.sds.models.OioUrl url)
Create a container using the specified
OioUrl . |
io.openio.sds.models.ContainerInfo |
createContainer(io.openio.sds.models.OioUrl url,
java.util.Map<java.lang.String,java.lang.String> properties)
Create a container using the specified
OioUrl . |
io.openio.sds.models.ContainerInfo |
createContainer(io.openio.sds.models.OioUrl url,
java.util.Map<java.lang.String,java.lang.String> properties,
java.util.Map<java.lang.String,java.lang.String> system)
Create a container using the specified
OioUrl . |
void |
deleteContainer(io.openio.sds.models.OioUrl url)
Deletes the specified container
|
void |
deleteContainerProperties(io.openio.sds.models.OioUrl url,
java.util.List<java.lang.String> keys)
Deletes user properties from the specified container
|
void |
deleteContainerProperties(io.openio.sds.models.OioUrl url,
java.lang.String... keys)
Deletes user properties from the specified container
|
void |
deleteObject(io.openio.sds.models.OioUrl url)
Deletes the specified object
|
void |
deleteObject(io.openio.sds.models.OioUrl url,
java.lang.Long version)
Deprecated.
|
void |
deleteObject(io.openio.sds.models.OioUrl url,
io.openio.sds.models.ObjectDeletionOptions options)
Deletes the specified object
|
void |
deleteObjectProperties(io.openio.sds.models.OioUrl url,
java.util.List<java.lang.String> keys)
Deletes the specified properties from the object
|
void |
deleteObjectProperties(io.openio.sds.models.OioUrl url,
java.lang.Long version,
java.util.List<java.lang.String> keys)
Deletes the specified properties from the object
|
void |
deleteObjectProperties(io.openio.sds.models.OioUrl url,
java.lang.Long version,
java.lang.String... keys)
Deletes the specified properties from the object
|
void |
deleteObjectProperties(io.openio.sds.models.OioUrl url,
java.lang.String... keys)
Deletes the specified properties from the object
|
java.io.InputStream |
downloadObject(io.openio.sds.models.ObjectInfo oinf)
Returns the data of the specified object
|
java.io.InputStream |
downloadObject(io.openio.sds.models.ObjectInfo oinf,
io.openio.sds.models.Range range)
Get object data from a specified range.
|
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> |
getAllContainerProperties(io.openio.sds.models.OioUrl url)
Retrieve user properties and system properties
of the specified container.
|
io.openio.sds.models.ContainerInfo |
getContainerInfo(io.openio.sds.models.OioUrl url)
Return information about the specified container.
|
java.util.Map<java.lang.String,java.lang.String> |
getContainerProperties(io.openio.sds.models.OioUrl url)
Retrieve user properties of the specified container
|
io.openio.sds.models.NamespaceInfo |
getNamespaceInfo()
Get OpenIO-SDS namespace configuration.
|
io.openio.sds.models.ObjectInfo |
getObjectInfo(io.openio.sds.models.OioUrl url)
Returns information about the specified object
|
io.openio.sds.models.ObjectInfo |
getObjectInfo(io.openio.sds.models.OioUrl url,
boolean loadProperties)
Returns information about the specified object
|
io.openio.sds.models.ObjectInfo |
getObjectInfo(io.openio.sds.models.OioUrl url,
java.lang.Long version)
Returns information about the specified object
|
io.openio.sds.models.ObjectInfo |
getObjectInfo(io.openio.sds.models.OioUrl url,
java.lang.Long version,
boolean loadProperties)
Returns information about the specified object
|
java.util.Map<java.lang.String,java.lang.String> |
getObjectProperties(io.openio.sds.models.OioUrl url)
Retrieve user properties of the specified object
|
java.util.Map<java.lang.String,java.lang.String> |
getObjectProperties(io.openio.sds.models.OioUrl url,
java.lang.Long version)
Retrieve user properties of the specified object
|
io.openio.sds.models.ObjectList |
listContainer(io.openio.sds.models.OioUrl url,
io.openio.sds.models.ListOptions listOptions)
Deprecated.
|
io.openio.sds.models.ObjectList |
listObjects(io.openio.sds.models.OioUrl url,
io.openio.sds.models.ListOptions listOptions)
List objects available in the specified container.
|
io.openio.sds.models.ObjectInfo |
putObject(io.openio.sds.models.OioUrl url,
java.lang.Long size,
java.io.File data)
Push an object into the oio namespace
|
io.openio.sds.models.ObjectInfo |
putObject(io.openio.sds.models.OioUrl url,
java.lang.Long size,
java.io.File data,
java.lang.Long version)
Deprecated.
|
io.openio.sds.models.ObjectInfo |
putObject(io.openio.sds.models.OioUrl url,
java.lang.Long size,
java.io.File data,
java.lang.Long version,
java.util.Map<java.lang.String,java.lang.String> properties)
Deprecated.
|
io.openio.sds.models.ObjectInfo |
putObject(io.openio.sds.models.OioUrl url,
java.lang.Long size,
java.io.File data,
java.util.Map<java.lang.String,java.lang.String> properties)
Deprecated.
|
io.openio.sds.models.ObjectInfo |
putObject(io.openio.sds.models.OioUrl url,
java.lang.Long size,
java.io.File data,
io.openio.sds.models.ObjectCreationOptions options)
Push an object into the oio namespace
|
io.openio.sds.models.ObjectInfo |
putObject(io.openio.sds.models.OioUrl url,
java.lang.Long size,
java.io.InputStream data)
Push an object into the oio namespace
|
io.openio.sds.models.ObjectInfo |
putObject(io.openio.sds.models.OioUrl url,
java.lang.Long size,
java.io.InputStream data,
java.lang.Long version)
Deprecated.
|
io.openio.sds.models.ObjectInfo |
putObject(io.openio.sds.models.OioUrl url,
java.lang.Long size,
java.io.InputStream data,
java.lang.Long version,
java.util.Map<java.lang.String,java.lang.String> properties)
Deprecated.
|
io.openio.sds.models.ObjectInfo |
putObject(io.openio.sds.models.OioUrl url,
java.lang.Long size,
java.io.InputStream data,
java.util.Map<java.lang.String,java.lang.String> properties)
Deprecated.
|
io.openio.sds.models.ObjectInfo |
putObject(io.openio.sds.models.OioUrl url,
java.lang.Long size,
java.io.InputStream data,
io.openio.sds.models.ObjectCreationOptions options)
Push an object into the oio namespace
|
void |
setContainerProperties(io.openio.sds.models.OioUrl url,
java.util.Map<java.lang.String,java.lang.String> props)
Set properties to the specified container.
|
void |
setContainerProperties(io.openio.sds.models.OioUrl url,
java.util.Map<java.lang.String,java.lang.String> props,
boolean clear)
Set properties to the specified container.
|
void |
setContainerProperties(io.openio.sds.models.OioUrl url,
java.util.Map<java.lang.String,java.lang.String> props,
boolean clear,
java.util.Map<java.lang.String,java.lang.String> sys)
Set properties to the specified container.
|
void |
setContainerProperties(io.openio.sds.models.OioUrl url,
java.util.Map<java.lang.String,java.lang.String> props,
java.util.Map<java.lang.String,java.lang.String> sys)
Set properties to the specified container.
|
void |
setObjectProperties(io.openio.sds.models.OioUrl url,
java.lang.Long version,
java.util.Map<java.lang.String,java.lang.String> props)
Add properties to the specified object.
|
void |
setObjectProperties(io.openio.sds.models.OioUrl url,
java.lang.Long version,
java.util.Map<java.lang.String,java.lang.String> props,
boolean clear)
Add properties to the specified object.
|
void |
setObjectProperties(io.openio.sds.models.OioUrl url,
java.util.Map<java.lang.String,java.lang.String> props)
Add properties to the specified object.
|
void |
setObjectProperties(io.openio.sds.models.OioUrl url,
java.util.Map<java.lang.String,java.lang.String> props,
boolean clear)
Add properties to the specified object.
|
io.openio.sds.models.NamespaceInfo getNamespaceInfo() throws io.openio.sds.exceptions.OioException
io.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
io.openio.sds.models.ContainerInfo createContainer(io.openio.sds.models.OioUrl url) throws io.openio.sds.exceptions.OioException
OioUrl
. OioUrl objects are
built by using OioUrl.url(String, String)
method, then you have
to specify the name of the account to use and the name of the future
container.
The container is available when the returned future is completed.
url
- the url of the containerContainerInfo
with information about the created
containerio.openio.sds.exceptions.ContainerExistException
- if the specified container is alreay presentio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
io.openio.sds.models.ContainerInfo createContainer(io.openio.sds.models.OioUrl url, java.util.Map<java.lang.String,java.lang.String> properties) throws io.openio.sds.exceptions.OioException
OioUrl
. OioUrl objects are
built by using OioUrl.url(String, String)
method, then you have
to specify the name of the account to use and the name of the future
container.
The container is available when the returned future is completed.
url
- the url of the containerproperties
- the user properties to set to the container.ContainerInfo
with information about the created
containerio.openio.sds.exceptions.ContainerExistException
- if the specified container is alreay presentio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
io.openio.sds.models.ContainerInfo createContainer(io.openio.sds.models.OioUrl url, java.util.Map<java.lang.String,java.lang.String> properties, java.util.Map<java.lang.String,java.lang.String> system) throws io.openio.sds.exceptions.OioException
OioUrl
. OioUrl objects are
built by using OioUrl.url(String, String)
method, then you have
to specify the name of the account to use and the name of the future
container.
The container is available when the returned future is completed.
url
- the url of the containerproperties
- the user properties to set to the container.system
- the system properties to set to the container.ContainerInfo
with information about the created
containerio.openio.sds.exceptions.ContainerExistException
- if the specified container is alreay presentio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
io.openio.sds.models.ContainerInfo getContainerInfo(io.openio.sds.models.OioUrl url) throws io.openio.sds.exceptions.OioException
url
- the URL of the containerContainerInfo
with information about the created
containerio.openio.sds.exceptions.ContainerNotFoundException
- if the specified container doesn't existio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
@Deprecated io.openio.sds.models.ObjectList listContainer(io.openio.sds.models.OioUrl url, io.openio.sds.models.ListOptions listOptions) throws io.openio.sds.exceptions.OioException
url
- the url of the containerlistOptions
- the listing optionio.openio.sds.exceptions.ContainerNotFoundException
- if the specified container doesn't existio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
io.openio.sds.models.ObjectList listObjects(io.openio.sds.models.OioUrl url, io.openio.sds.models.ListOptions listOptions) throws io.openio.sds.exceptions.OioException
url
- the url of the containerlistOptions
- the listing optionio.openio.sds.exceptions.ContainerNotFoundException
- if the specified container doesn't existio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
void deleteContainer(io.openio.sds.models.OioUrl url) throws io.openio.sds.exceptions.OioException
url
- the url of the containerio.openio.sds.exceptions.ContainerNotFoundException
- if the specified container doesn't existio.openio.sds.exceptions.ContainerNotEmptyException
- if the specified container isn't emptyio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
void setContainerProperties(io.openio.sds.models.OioUrl url, java.util.Map<java.lang.String,java.lang.String> props) throws io.openio.sds.exceptions.OioException
url
- the URL of the container to set propertiesprops
- the properties to setio.openio.sds.exceptions.ContainerNotFoundException
- if the specified container doesn't existio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
void setContainerProperties(io.openio.sds.models.OioUrl url, java.util.Map<java.lang.String,java.lang.String> props, boolean clear) throws io.openio.sds.exceptions.OioException
url
- the URL of the container to set propertiesprops
- the properties to setclear
- clear previous propertiesio.openio.sds.exceptions.ContainerNotFoundException
- if the specified container doesn't existio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
void setContainerProperties(io.openio.sds.models.OioUrl url, java.util.Map<java.lang.String,java.lang.String> props, java.util.Map<java.lang.String,java.lang.String> sys) throws io.openio.sds.exceptions.OioException
url
- the URL of the container to set propertiesprops
- the properties to setsys
- the system properties to setio.openio.sds.exceptions.ContainerNotFoundException
- if the specified container doesn't existio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
void setContainerProperties(io.openio.sds.models.OioUrl url, java.util.Map<java.lang.String,java.lang.String> props, boolean clear, java.util.Map<java.lang.String,java.lang.String> sys) throws io.openio.sds.exceptions.OioException
url
- the URL of the container to set propertiesprops
- the properties to setclear
- clear previous propertiessys
- the system properties to setio.openio.sds.exceptions.ContainerNotFoundException
- if the specified container doesn't existio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
java.util.Map<java.lang.String,java.lang.String> getContainerProperties(io.openio.sds.models.OioUrl url) throws io.openio.sds.exceptions.OioException
url
- the url of the containerio.openio.sds.exceptions.ContainerNotFoundException
- if the specified container doesn't existio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> getAllContainerProperties(io.openio.sds.models.OioUrl url) throws io.openio.sds.exceptions.OioException
url
- the url of the containerio.openio.sds.exceptions.ContainerNotFoundException
- if the specified container doesn't existio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
void deleteContainerProperties(io.openio.sds.models.OioUrl url, java.lang.String... keys) throws io.openio.sds.exceptions.OioException
url
- the url of the containerkeys
- the property keys to dropio.openio.sds.exceptions.ContainerNotFoundException
- if the specified container doesn't existio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
void deleteContainerProperties(io.openio.sds.models.OioUrl url, java.util.List<java.lang.String> keys) throws io.openio.sds.exceptions.OioException
url
- the url of the containerkeys
- the property keys to dropio.openio.sds.exceptions.ContainerNotFoundException
- if the specified container doesn't existio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
io.openio.sds.models.ObjectInfo putObject(io.openio.sds.models.OioUrl url, java.lang.Long size, java.io.File data) throws io.openio.sds.exceptions.OioException
url
- the url of the object to createsize
- the size of the objectdata
- the file to read the data fromio.openio.sds.exceptions.ContainerNotFoundException
- if the specified container doesn't existio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
@Deprecated io.openio.sds.models.ObjectInfo putObject(io.openio.sds.models.OioUrl url, java.lang.Long size, java.io.File data, java.util.Map<java.lang.String,java.lang.String> properties) throws io.openio.sds.exceptions.OioException
url
- the url of the object to createsize
- the size of the objectdata
- the file to read the data fromproperties
- the properties to set to the object. Note that the properties
are case insensitive and will always be returned in lower
case.io.openio.sds.exceptions.ContainerNotFoundException
- if the specified container doesn't existio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
@Deprecated io.openio.sds.models.ObjectInfo putObject(io.openio.sds.models.OioUrl url, java.lang.Long size, java.io.File data, java.lang.Long version) throws io.openio.sds.exceptions.OioException
url
- the url of the object to createsize
- the size of the objectdata
- the file to read the data fromversion
- the version of content to uploadio.openio.sds.exceptions.ContainerNotFoundException
- if the specified container doesn't existio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
@Deprecated io.openio.sds.models.ObjectInfo putObject(io.openio.sds.models.OioUrl url, java.lang.Long size, java.io.File data, java.lang.Long version, java.util.Map<java.lang.String,java.lang.String> properties) throws io.openio.sds.exceptions.OioException
url
- the url of the object to createsize
- the size of the objectdata
- the file to read the data fromversion
- the version of content to uploadproperties
- the properties to set to the object. Note that the properties
are case insensitive and will always be returned in lower
case.io.openio.sds.exceptions.ContainerNotFoundException
- if the specified container doesn't existio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
io.openio.sds.models.ObjectInfo putObject(io.openio.sds.models.OioUrl url, java.lang.Long size, java.io.File data, io.openio.sds.models.ObjectCreationOptions options) throws io.openio.sds.exceptions.OioException
url
- the url of the object to createsize
- the size of the objectdata
- the file to read the data fromoptions
- the options of content to uploadio.openio.sds.exceptions.ContainerNotFoundException
- if the specified container doesn't existio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
io.openio.sds.models.ObjectInfo putObject(io.openio.sds.models.OioUrl url, java.lang.Long size, java.io.InputStream data) throws io.openio.sds.exceptions.OioException
url
- the url of the object to createsize
- the size of the objectdata
- the InputStream to read the data fromio.openio.sds.exceptions.ContainerNotFoundException
- if the specified container doesn't existio.openio.sds.exceptions.ObjectExistException
- if the specified object alreadeay exist in the containerio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
@Deprecated io.openio.sds.models.ObjectInfo putObject(io.openio.sds.models.OioUrl url, java.lang.Long size, java.io.InputStream data, java.util.Map<java.lang.String,java.lang.String> properties) throws io.openio.sds.exceptions.OioException
url
- the url of the object to createsize
- the size of the objectdata
- the InputStream to read the data fromproperties
- the properties to set to the object. Note that the properties
are case insensitive and will always be returned in lower
case.io.openio.sds.exceptions.ContainerNotFoundException
- if the specified container doesn't existio.openio.sds.exceptions.ObjectExistException
- if the specified object alreadeay exist in the containerio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
@Deprecated io.openio.sds.models.ObjectInfo putObject(io.openio.sds.models.OioUrl url, java.lang.Long size, java.io.InputStream data, java.lang.Long version) throws io.openio.sds.exceptions.OioException
url
- the url of the object to createsize
- the size of the objectdata
- the InputStream to read the data fromversion
- the version of content to uploadio.openio.sds.exceptions.ContainerNotFoundException
- if the specified container doesn't existio.openio.sds.exceptions.ObjectExistException
- if the specified object alreadeay exist in the containerio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
@Deprecated io.openio.sds.models.ObjectInfo putObject(io.openio.sds.models.OioUrl url, java.lang.Long size, java.io.InputStream data, java.lang.Long version, java.util.Map<java.lang.String,java.lang.String> properties) throws io.openio.sds.exceptions.OioException
url
- the url of the object to createsize
- the size of the objectdata
- the InputStream to read the data fromversion
- the version of content to uploadproperties
- the properties to set to the object. Note that the properties
are case insensitive and will always be returned in lower
case.io.openio.sds.exceptions.ContainerNotFoundException
- if the specified container doesn't existio.openio.sds.exceptions.ObjectExistException
- if the specified object alreadeay exist in the containerio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
io.openio.sds.models.ObjectInfo putObject(io.openio.sds.models.OioUrl url, java.lang.Long size, java.io.InputStream data, io.openio.sds.models.ObjectCreationOptions options) throws io.openio.sds.exceptions.OioException
url
- the url of the object to createsize
- the size of the objectdata
- the InputStream to read the data fromoptions
- the options of content to uploadio.openio.sds.exceptions.ContainerNotFoundException
- if the specified container doesn't existio.openio.sds.exceptions.ObjectExistException
- if the specified object alreadeay exist in the containerio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
io.openio.sds.models.ObjectInfo getObjectInfo(io.openio.sds.models.OioUrl url) throws io.openio.sds.exceptions.OioException
url
- the url of the objectObjectInfo
io.openio.sds.exceptions.ContainerNotFoundException
- if the specified container doesn't existio.openio.sds.exceptions.ObjectNotFoundException
- if the specified object doesn't existio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
io.openio.sds.models.ObjectInfo getObjectInfo(io.openio.sds.models.OioUrl url, boolean loadProperties) throws io.openio.sds.exceptions.OioException
url
- the url of the objectloadProperties
- if true, additional request is performed to get object
properties assigned to the specified objectObjectInfo
io.openio.sds.exceptions.ContainerNotFoundException
- if the specified container doesn't existio.openio.sds.exceptions.ObjectNotFoundException
- if the specified object doesn't existio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
io.openio.sds.models.ObjectInfo getObjectInfo(io.openio.sds.models.OioUrl url, java.lang.Long version) throws io.openio.sds.exceptions.OioException
url
- the url of the objectversion
- the version to get (could be null
to get latest
version)ObjectInfo
io.openio.sds.exceptions.ContainerNotFoundException
- if the specified container doesn't existio.openio.sds.exceptions.ObjectNotFoundException
- if the specified object doesn't existio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
io.openio.sds.models.ObjectInfo getObjectInfo(io.openio.sds.models.OioUrl url, java.lang.Long version, boolean loadProperties) throws io.openio.sds.exceptions.OioException
url
- the url of the objectversion
- the version to get (could be null
to get latest
version)loadProperties
- if true, additional request is performed to get object
properties assigned to the specified objectObjectInfo
io.openio.sds.exceptions.ContainerNotFoundException
- if the specified container doesn't existio.openio.sds.exceptions.ObjectNotFoundException
- if the specified object doesn't existio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
java.io.InputStream downloadObject(io.openio.sds.models.ObjectInfo oinf) throws io.openio.sds.exceptions.OioException
oinf
- the information about object to downloadio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
java.io.InputStream downloadObject(io.openio.sds.models.ObjectInfo oinf, io.openio.sds.models.Range range)
oinf
- the information about object to downloadrange
- the wanted data rangeInputStream
formatio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionvoid deleteObject(io.openio.sds.models.OioUrl url) throws io.openio.sds.exceptions.OioException
url
- the url of the object to deleteio.openio.sds.exceptions.ContainerNotFoundException
- if the specified container doesn't existio.openio.sds.exceptions.ObjectNotFoundException
- if the specified object doesn't existio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
@Deprecated void deleteObject(io.openio.sds.models.OioUrl url, java.lang.Long version) throws io.openio.sds.exceptions.OioException
url
- the url of the object to deleteversion
- the version to delete (could be null
to delete latest
version)io.openio.sds.exceptions.ContainerNotFoundException
- if the specified container doesn't existio.openio.sds.exceptions.ObjectNotFoundException
- if the specified object doesn't existio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
void deleteObject(io.openio.sds.models.OioUrl url, io.openio.sds.models.ObjectDeletionOptions options) throws io.openio.sds.exceptions.OioException
url
- the url of the object to deleteoptions
- the options of object to deleteio.openio.sds.exceptions.ContainerNotFoundException
- if the specified container doesn't existio.openio.sds.exceptions.ObjectNotFoundException
- if the specified object doesn't existio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
void setObjectProperties(io.openio.sds.models.OioUrl url, java.util.Map<java.lang.String,java.lang.String> props) throws io.openio.sds.exceptions.OioException
url
- the url of the objectprops
- the properties to setio.openio.sds.exceptions.ContainerNotFoundException
- if the specified container doesn't existio.openio.sds.exceptions.ObjectNotFoundException
- if the specified object doesn't existio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
void setObjectProperties(io.openio.sds.models.OioUrl url, java.lang.Long version, java.util.Map<java.lang.String,java.lang.String> props) throws io.openio.sds.exceptions.OioException
url
- the url of the objectversion
- the version to manipulate
(could be null
to manipulate latest version)props
- the properties to setio.openio.sds.exceptions.ContainerNotFoundException
- if the specified container doesn't existio.openio.sds.exceptions.ObjectNotFoundException
- if the specified object doesn't existio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
void setObjectProperties(io.openio.sds.models.OioUrl url, java.util.Map<java.lang.String,java.lang.String> props, boolean clear) throws io.openio.sds.exceptions.OioException
url
- the url of the objectprops
- the properties to setclear
- clear previous propertiesio.openio.sds.exceptions.ContainerNotFoundException
- if the specified container doesn't existio.openio.sds.exceptions.ObjectNotFoundException
- if the specified object doesn't existio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
void setObjectProperties(io.openio.sds.models.OioUrl url, java.lang.Long version, java.util.Map<java.lang.String,java.lang.String> props, boolean clear) throws io.openio.sds.exceptions.OioException
url
- the url of the objectversion
- the version to manipulate
(could be null
to manipulate latest version)props
- the properties to setclear
- clear previous propertiesio.openio.sds.exceptions.ContainerNotFoundException
- if the specified container doesn't existio.openio.sds.exceptions.ObjectNotFoundException
- if the specified object doesn't existio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
java.util.Map<java.lang.String,java.lang.String> getObjectProperties(io.openio.sds.models.OioUrl url) throws io.openio.sds.exceptions.OioException
url
- the url of the objectio.openio.sds.exceptions.ContainerNotFoundException
- if the specified container doesn't existio.openio.sds.exceptions.ObjectNotFoundException
- if the specified object doesn't existio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
java.util.Map<java.lang.String,java.lang.String> getObjectProperties(io.openio.sds.models.OioUrl url, java.lang.Long version) throws io.openio.sds.exceptions.OioException
url
- the url of the objectversion
- the version to manipulate
(could be null
to manipulate latest version)io.openio.sds.exceptions.ContainerNotFoundException
- if the specified container doesn't existio.openio.sds.exceptions.ObjectNotFoundException
- if the specified object doesn't existio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
void deleteObjectProperties(io.openio.sds.models.OioUrl url, java.lang.String... keys) throws io.openio.sds.exceptions.OioException
url
- the url of the objectkeys
- the property keys to dropio.openio.sds.exceptions.ContainerNotFoundException
- if the specified container doesn't existio.openio.sds.exceptions.ObjectNotFoundException
- if the specified object doesn't existio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
void deleteObjectProperties(io.openio.sds.models.OioUrl url, java.lang.Long version, java.lang.String... keys) throws io.openio.sds.exceptions.OioException
url
- the url of the objectversion
- the version to manipulate
(could be null
to manipulate latest version)keys
- the property keys to dropio.openio.sds.exceptions.ContainerNotFoundException
- if the specified container doesn't existio.openio.sds.exceptions.ObjectNotFoundException
- if the specified object doesn't existio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
void deleteObjectProperties(io.openio.sds.models.OioUrl url, java.util.List<java.lang.String> keys) throws io.openio.sds.exceptions.OioException
url
- the url of the objectkeys
- the property keys to dropio.openio.sds.exceptions.ContainerNotFoundException
- if the specified container doesn't existio.openio.sds.exceptions.ObjectNotFoundException
- if the specified object doesn't existio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException
void deleteObjectProperties(io.openio.sds.models.OioUrl url, java.lang.Long version, java.util.List<java.lang.String> keys) throws io.openio.sds.exceptions.OioException
url
- the url of the objectversion
- the version to manipulate
(could be null
to manipulate latest version)keys
- the property keys to dropio.openio.sds.exceptions.ContainerNotFoundException
- if the specified container doesn't existio.openio.sds.exceptions.ObjectNotFoundException
- if the specified object doesn't existio.openio.sds.exceptions.OioSystemException
- if any error occurs during request executionio.openio.sds.exceptions.OioException