public class StorageMetadataImpl extends ResourceMetadataImpl<StorageType> implements StorageMetadata
Constructor and 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) |
Modifier and Type | Method and 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 resource
|
Long |
getSize()
Size of the resource, possibly null.
|
StorageType |
getType()
Whether this resource is a container, file, etc.
|
int |
hashCode() |
protected com.google.common.base.Objects.ToStringHelper |
string() |
compareTo, getLocation, getName, getProviderId, getUri, getUserMetadata, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getName, getProviderId, getUri, getUserMetadata
getLocation
compareTo
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 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)
public StorageType getType()
getType
in interface StorageMetadata
getType
in interface ResourceMetadata<StorageType>
public int hashCode()
hashCode
in class ResourceMetadataImpl<StorageType>
public boolean equals(Object obj)
equals
in class ResourceMetadataImpl<StorageType>
protected com.google.common.base.Objects.ToStringHelper string()
string
in class ResourceMetadataImpl<StorageType>
public String getETag()
getETag
in interface StorageMetadata
org.jclouds.blobstore.attr.ContainerCapability#CONTAINER_ETAG
,
org.jclouds.blobstore.attr.ContainerCapability#BLOB_ETAG
public Date getCreationDate()
StorageMetadata
getCreationDate
in interface StorageMetadata
public Date getLastModified()
getLastModified
in interface StorageMetadata
org.jclouds.blobstore.attr.ContainerCapability#CONTAINER_LAST_MODIFIED
,
org.jclouds.blobstore.attr.ContainerCapability#BLOB_LAST_MODIFIED
,
ContainerCapability.MILLISECOND_PRECISION
public Long getSize()
StorageMetadata
getSize
in interface StorageMetadata
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.