Package org.jclouds.blobstore.domain
Interface StorageMetadata
-
- All Superinterfaces:
Comparable<ResourceMetadata<StorageType>>,ResourceMetadata<StorageType>
- All Known Subinterfaces:
BlobMetadata,MutableBlobMetadata,MutableStorageMetadata
- All Known Implementing Classes:
BlobMetadataImpl,MutableBlobMetadataImpl,MutableStorageMetadataImpl,StorageMetadataImpl
public interface StorageMetadata extends ResourceMetadata<StorageType>
Identifies containers, files, etc.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DategetCreationDate()Creation date of the resource, possibly null.StringgetETag()The eTag value stored in the Etag header returned by HTTP.DategetLastModified()Last modification time of the resourceStringgetName()Name of this resource.StringgetProviderId()Unique identifier of this resource within its enclosing namespace.LonggetSize()Size of the resource, possibly null.TiergetTier()StorageTypegetType()Whether this resource is a container, file, etc.URIgetUri()URI used to access this resourceMap<String,String>getUserMetadata()Any key-value pairs associated with the resource.-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface org.jclouds.domain.ResourceMetadata
getLocation
-
-
-
-
Method Detail
-
getType
StorageType getType()
Whether this resource is a container, file, etc.- Specified by:
getTypein interfaceResourceMetadata<StorageType>
-
getProviderId
String getProviderId()
Unique identifier of this resource within its enclosing namespace. In some scenarios, this id is not user assignable. For files, this may be an system generated key, or the full path to the resource. ex. /path/to/file.txt- Specified by:
getProviderIdin interfaceResourceMetadata<StorageType>- See Also:
org.jclouds.blobstore.attr.ContainerCapability#CONTAINER_METADATA
-
getName
String getName()
Name of this resource. Names are dictated by the user. For files, this may be the filename, ex. file.txt- Specified by:
getNamein interfaceResourceMetadata<StorageType>
-
getUri
URI getUri()
URI used to access this resource- Specified by:
getUriin interfaceResourceMetadata<StorageType>
-
getUserMetadata
Map<String,String> getUserMetadata()
Any key-value pairs associated with the resource.- Specified by:
getUserMetadatain interfaceResourceMetadata<StorageType>- See Also:
org.jclouds.blobstore.attr.ContainerCapability#CONTAINER_METADATA,org.jclouds.blobstore.attr.ContainerCapability#BLOB_METADATA
-
getETag
String getETag()
The eTag value stored in the Etag header returned by HTTP.- See Also:
org.jclouds.blobstore.attr.ContainerCapability#CONTAINER_ETAG,org.jclouds.blobstore.attr.ContainerCapability#BLOB_ETAG
-
getCreationDate
Date getCreationDate()
Creation date of the resource, possibly null.
-
getLastModified
Date getLastModified()
Last modification time of the resource- See Also:
org.jclouds.blobstore.attr.ContainerCapability#CONTAINER_LAST_MODIFIED,org.jclouds.blobstore.attr.ContainerCapability#BLOB_LAST_MODIFIED,ContainerCapability.MILLISECOND_PRECISION
-
getSize
Long getSize()
Size of the resource, possibly null.
-
getTier
Tier getTier()
-
-