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 booleanequals(Object obj)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 resourceLonggetSize()Size of the resource, possibly null.TiergetTier()StorageTypegetType()Whether this resource is a container, file, etc.inthashCode()protected com.google.common.base.MoreObjects.ToStringHelperstring()-
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:
getTypein interfaceResourceMetadata<StorageType>- Specified by:
getTypein interfaceStorageMetadata
-
hashCode
public int hashCode()
- Overrides:
hashCodein classResourceMetadataImpl<StorageType>
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classResourceMetadataImpl<StorageType>
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
- Overrides:
stringin classResourceMetadataImpl<StorageType>
-
getETag
public String getETag()
The eTag value stored in the Etag header returned by HTTP.- Specified by:
getETagin 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:StorageMetadataCreation date of the resource, possibly null.- Specified by:
getCreationDatein interfaceStorageMetadata
-
getLastModified
public Date getLastModified()
Last modification time of the resource- Specified by:
getLastModifiedin 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:StorageMetadataSize of the resource, possibly null.- Specified by:
getSizein interfaceStorageMetadata
-
getTier
public Tier getTier()
- Specified by:
getTierin interfaceStorageMetadata
-
-