public abstract class AbstractStorage extends java.lang.Object implements Storage
Constructor and Description |
---|
AbstractStorage() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
createObject(java.lang.String objectID,
java.lang.String objectName,
HeaderSet txnMetadata,
long timestamp)
Version with enhanced logging (stores txnMetadata in transaction)
|
void |
deleteAttributes(java.lang.String objectID,
java.lang.String elementID,
java.lang.String[] attributeKeys,
HeaderSet txnMetadata,
long timestamp)
Version with enhanced logging (stores txnMetadata in transaction)
|
boolean |
deleteDataElement(java.lang.String objectID,
java.lang.String elementID,
HeaderSet txnMetadata,
long timestamp)
Version with enhanced logging (stores txnMetadata in transaction)
|
void |
deleteObject(java.lang.String objectID,
HeaderSet txnMetadata,
long asOfTimestamp)
Version with enhanced logging (stores txnMetadata in transaction)
|
AbstractTransactionQueue |
getTransactionQueue()
Returns the transaction queue set up by this storage
|
void |
initTransactionQueue(java.io.File txnDir)
Initialize the transaction queue in the given directory---server calls this after initializing storage
|
static boolean |
isConcatenatedQueueNeeded(java.io.File txnDir) |
void |
setAttributes(java.lang.String objectID,
java.lang.String elementID,
HeaderSet attributes,
HeaderSet txnMetadata,
long timestamp)
Version with enhanced logging (stores txnMetadata in transaction)
|
void |
setTransactionQueue(AbstractTransactionQueue txnQueue)
Set the transaction queue (used e.g.
|
void |
storeDataElement(java.lang.String objectID,
java.lang.String elementID,
java.io.InputStream input,
HeaderSet txnMetadata,
boolean append,
long timestamp)
Version with enhanced logging (stores txnMetadata in transaction)
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, createObject, createObject, deleteAttributes, deleteDataElement, deleteDataElement, deleteObject, deleteObject, deserializeObject, doesDataElementExist, doesObjectExist, getAttributes, getDataElement, getFileForDataElement, getObjectInfo, initWithDirectory, listDataElements, listObjects, serializeObject, setAttributes, setObjectInfo, storeDataElement, storeDataElement
public void initTransactionQueue(java.io.File txnDir) throws java.lang.Exception
Storage
initTransactionQueue
in interface Storage
java.lang.Exception
public static boolean isConcatenatedQueueNeeded(java.io.File txnDir)
public AbstractTransactionQueue getTransactionQueue()
Storage
getTransactionQueue
in interface Storage
public void setTransactionQueue(AbstractTransactionQueue txnQueue)
Storage
setTransactionQueue
in interface Storage
public java.lang.String createObject(java.lang.String objectID, java.lang.String objectName, HeaderSet txnMetadata, long timestamp) throws DOException
Storage
createObject
in interface Storage
DOException
public void deleteObject(java.lang.String objectID, HeaderSet txnMetadata, long asOfTimestamp) throws DOException
Storage
deleteObject
in interface Storage
DOException
public void storeDataElement(java.lang.String objectID, java.lang.String elementID, java.io.InputStream input, HeaderSet txnMetadata, boolean append, long timestamp) throws DOException
Storage
storeDataElement
in interface Storage
DOException
public boolean deleteDataElement(java.lang.String objectID, java.lang.String elementID, HeaderSet txnMetadata, long timestamp) throws DOException
Storage
deleteDataElement
in interface Storage
DOException
public void setAttributes(java.lang.String objectID, java.lang.String elementID, HeaderSet attributes, HeaderSet txnMetadata, long timestamp) throws DOException
Storage
setAttributes
in interface Storage
DOException
public void deleteAttributes(java.lang.String objectID, java.lang.String elementID, java.lang.String[] attributeKeys, HeaderSet txnMetadata, long timestamp) throws DOException
Storage
deleteAttributes
in interface Storage
DOException