public class StorageMetadata extends java.lang.Object implements java.lang.Comparable<StorageMetadata>
| Modifier and Type | Field and Description |
|---|---|
java.net.URI |
artifactURI |
java.lang.String |
contentEncoding |
java.lang.String |
contentType |
| Constructor and Description |
|---|
StorageMetadata(org.opencadc.inventory.StorageLocation storageLocation)
Constructor for an invalid stored object that should be cleaned up.
|
StorageMetadata(org.opencadc.inventory.StorageLocation storageLocation,
java.net.URI contentChecksum,
java.lang.Long contentLength,
java.util.Date contentLastModified)
Constructor for a valid stored object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(StorageMetadata rhs) |
boolean |
equals(java.lang.Object o) |
java.net.URI |
getContentChecksum() |
java.util.Date |
getContentLastModified() |
java.lang.Long |
getContentLength() |
org.opencadc.inventory.StorageLocation |
getStorageLocation() |
int |
hashCode() |
boolean |
isValid() |
java.lang.String |
toString() |
public java.net.URI artifactURI
public java.lang.String contentEncoding
public java.lang.String contentType
public StorageMetadata(org.opencadc.inventory.StorageLocation storageLocation,
java.net.URI contentChecksum,
java.lang.Long contentLength,
java.util.Date contentLastModified)
storageLocation - location of the file in back end storagecontentChecksum - checksum of the file in the form {algorithm}:{hex value}contentLength - length of the file in bytescontentLastModified - timestamp when the file was last modifiedpublic StorageMetadata(org.opencadc.inventory.StorageLocation storageLocation)
storageLocation - location of the file in back end storagepublic boolean isValid()
public org.opencadc.inventory.StorageLocation getStorageLocation()
public java.net.URI getContentChecksum()
public java.lang.Long getContentLength()
public java.util.Date getContentLastModified()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(StorageMetadata rhs)
compareTo in interface java.lang.Comparable<StorageMetadata>public java.lang.String toString()
toString in class java.lang.Object