Class StorageMetadataImpl
- java.lang.Object
-
- org.jclouds.domain.internal.ResourceMetadataImpl<StorageType>
-
- org.jclouds.blobstore.domain.internal.StorageMetadataImpl
-
- All Implemented Interfaces:
Comparable<ResourceMetadata<StorageType>>
,StorageMetadata
,ResourceMetadata<StorageType>
- Direct Known Subclasses:
BlobMetadataImpl
public class StorageMetadataImpl extends ResourceMetadataImpl<StorageType> implements StorageMetadata
Idpayload of the object
-
-
Constructor Summary
Constructors Constructor Description StorageMetadataImpl(StorageType type, String id, String name, Location location, URI uri, String eTag, Date creationDate, Date lastModified, Map<String,String> userMetadata)
Deprecated.call StorageMetadataImpl(StorageType.class, String.class, String.class, Location.class, URI.class, String.class, Date.class, Date.class, Map.class, Long.class)StorageMetadataImpl(StorageType type, String id, String name, Location location, URI uri, String eTag, Date creationDate, Date lastModified, Map<String,String> userMetadata, Long size)
Deprecated.call StorageMetadataImpl(StorageType.class, String.class, String.class, Location.class, URI.class, String.class, Date.class, Date.class, Map.class, Long.class, Tier.class)StorageMetadataImpl(StorageType type, String id, String name, Location location, URI uri, String eTag, Date creationDate, Date lastModified, Map<String,String> userMetadata, Long size, Tier tier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Date
getCreationDate()
Creation date of the resource, possibly null.String
getETag()
The eTag value stored in the Etag header returned by HTTP.Date
getLastModified()
Last modification time of the resourceLong
getSize()
Size of the resource, possibly null.Tier
getTier()
StorageType
getType()
Whether this resource is a container, file, etc.int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
-
Methods inherited from class org.jclouds.domain.internal.ResourceMetadataImpl
compareTo, getLocation, getName, getProviderId, getUri, getUserMetadata, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface org.jclouds.domain.ResourceMetadata
getLocation
-
Methods inherited from interface org.jclouds.blobstore.domain.StorageMetadata
getName, getProviderId, getUri, getUserMetadata
-
-
-
-
Constructor Detail
-
StorageMetadataImpl
public StorageMetadataImpl(StorageType type, @Nullable String id, @Nullable String name, @Nullable Location location, @Nullable URI uri, @Nullable String eTag, @Nullable Date creationDate, @Nullable Date lastModified, Map<String,String> userMetadata, @Nullable Long size, Tier tier)
-
StorageMetadataImpl
@Deprecated public StorageMetadataImpl(StorageType type, @Nullable String id, @Nullable String name, @Nullable Location location, @Nullable URI uri, @Nullable String eTag, @Nullable Date creationDate, @Nullable Date lastModified, Map<String,String> userMetadata, @Nullable Long size)
Deprecated.call StorageMetadataImpl(StorageType.class, String.class, String.class, Location.class, URI.class, String.class, Date.class, Date.class, Map.class, Long.class, Tier.class)
-
StorageMetadataImpl
@Deprecated public StorageMetadataImpl(StorageType type, @Nullable String id, @Nullable String name, @Nullable Location location, @Nullable URI uri, @Nullable String eTag, @Nullable Date creationDate, @Nullable Date lastModified, Map<String,String> userMetadata)
Deprecated.call StorageMetadataImpl(StorageType.class, String.class, String.class, Location.class, URI.class, String.class, Date.class, Date.class, Map.class, Long.class)
-
-
Method Detail
-
getType
public StorageType getType()
Whether this resource is a container, file, etc.- Specified by:
getType
in interfaceResourceMetadata<StorageType>
- Specified by:
getType
in interfaceStorageMetadata
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classResourceMetadataImpl<StorageType>
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classResourceMetadataImpl<StorageType>
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
- Overrides:
string
in classResourceMetadataImpl<StorageType>
-
getETag
public String getETag()
The eTag value stored in the Etag header returned by HTTP.- Specified by:
getETag
in interfaceStorageMetadata
- See Also:
org.jclouds.blobstore.attr.ContainerCapability#CONTAINER_ETAG
,org.jclouds.blobstore.attr.ContainerCapability#BLOB_ETAG
-
getCreationDate
public Date getCreationDate()
Description copied from interface:StorageMetadata
Creation date of the resource, possibly null.- Specified by:
getCreationDate
in interfaceStorageMetadata
-
getLastModified
public Date getLastModified()
Last modification time of the resource- Specified by:
getLastModified
in interfaceStorageMetadata
- See Also:
org.jclouds.blobstore.attr.ContainerCapability#CONTAINER_LAST_MODIFIED
,org.jclouds.blobstore.attr.ContainerCapability#BLOB_LAST_MODIFIED
,ContainerCapability.MILLISECOND_PRECISION
-
getSize
public Long getSize()
Description copied from interface:StorageMetadata
Size of the resource, possibly null.- Specified by:
getSize
in interfaceStorageMetadata
-
getTier
public Tier getTier()
- Specified by:
getTier
in interfaceStorageMetadata
-
-