org.jclouds.blobstore.domain.internal
Class StorageMetadataImpl
java.lang.Object
org.jclouds.domain.internal.ResourceMetadataImpl<StorageType>
org.jclouds.blobstore.domain.internal.StorageMetadataImpl
- All Implemented Interfaces:
- Serializable, Comparable<ResourceMetadata<StorageType>>, StorageMetadata, ResourceMetadata<StorageType>
- Direct Known Subclasses:
- BlobMetadataImpl
public class StorageMetadataImpl
- extends ResourceMetadataImpl<StorageType>
- implements StorageMetadata, Serializable
Idpayload of the object
- Author:
- Adrian Cole
- See Also:
- Serialized Form
StorageMetadataImpl
public StorageMetadataImpl(StorageType type,
@Nullable
String id,
@Nullable
String name,
@Nullable
Location location,
@Nullable
URI uri,
@Nullable
String eTag,
@Nullable
Date lastModified,
Map<String,String> userMetadata)
getType
public StorageType getType()
- Whether this resource is a container, file, etc.
- Specified by:
getType
in interface StorageMetadata
- Specified by:
getType
in interface ResourceMetadata<StorageType>
hashCode
public int hashCode()
- Overrides:
hashCode
in class ResourceMetadataImpl<StorageType>
equals
public boolean equals(Object obj)
- Overrides:
equals
in class ResourceMetadataImpl<StorageType>
getETag
public String getETag()
- The eTag value stored in the Etag header returned by HTTP.
- Specified by:
getETag
in interface StorageMetadata
- See Also:
org.jclouds.blobstore.attr.ContainerCapability#CONTAINER_ETAG
,
org.jclouds.blobstore.attr.ContainerCapability#BLOB_ETAG
getLastModified
public Date getLastModified()
- Last modification time of the resource
- Specified by:
getLastModified
in interface StorageMetadata
- See Also:
org.jclouds.blobstore.attr.ContainerCapability#CONTAINER_LAST_MODIFIED
,
org.jclouds.blobstore.attr.ContainerCapability#BLOB_LAST_MODIFIED
,
ContainerCapability.MILLISECOND_PRECISION
Copyright © 2009-2012 jclouds. All Rights Reserved.