|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectControl
dk.statsbiblioteket.doms.summa.SummaStorage
public class SummaStorage
Implementation of the Summa IO Storage API on top of Fedoras OAIProvider plugin. This implementation provides read-only access to the Fedora DOMS Repository. Methods from the Control interface that modify the Storage will in this implementation throw an UnsupprtedOperationException.
| Field Summary | |
|---|---|
private long |
currentIterKey
|
private OAIDateFormat |
dateFormatter
|
private static boolean |
doDebug
|
private java.lang.String |
fedoraBaseURL
|
private java.lang.String |
fedoraRecordDisseminator
|
private java.util.Map<java.lang.Long,java.util.Iterator<Record>> |
iterators
|
private static Log |
log
|
private Client |
oaiClient
|
| Constructor Summary | |
|---|---|
SummaStorage()
|
|
| Method Summary | |
|---|---|
Record |
createNewRecord(java.lang.String name,
byte[] data,
java.lang.String base)
NOT IMPLEMENTED. |
Record |
createNewRecord(java.lang.String name,
java.lang.String base)
NOT IMPLEMENTED. |
private RecordIterator |
createRecordIterator(ListRecordsResponse response)
|
boolean |
deleteRecord(java.lang.String name)
NOT IMPLEMENTED. |
void |
exportRMIInterface()
Exports this objects Access interface over RMI. |
Record |
getRecord(java.lang.String name)
Get the record with the given name. |
RecordIterator |
getRecords(java.lang.String base)
Get an iterator over all records in the DOMS or all records belonging to a given OAI set. |
RecordIterator |
getRecordsFrom(java.lang.String name,
java.lang.String base)
NOT IMPLEMENTED. |
RecordIterator |
getRecordsModifiedAfter(long time,
java.lang.String base)
Get an iterator over all records from a given OIA set modified after the given time. |
RecordIterator[] |
getSplits(int splits,
java.lang.String base)
NOT IMPLEMENTED. |
RecordAndNext |
next(java.lang.Long iteratorKey)
Return the next record in the record iteration identified by the given iterator key. |
void |
perform()
NOT IMPLEMENTED. |
boolean |
recordActive(java.lang.String name)
NOT IMPLEMENTED. |
boolean |
recordExists(java.lang.String name)
NOT IMPLEMENTED. |
void |
removeDeletedBefore(long time,
java.lang.String base)
NOT IMPLEMENTED. |
void |
updateRecord(Record record)
NOT IMPLEMENTED. |
void |
updateRecord(java.lang.String name,
byte[] data)
NOT IMPLEMENTED. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final Log log
private static boolean doDebug
private Client oaiClient
private long currentIterKey
private java.util.Map<java.lang.Long,java.util.Iterator<Record>> iterators
private OAIDateFormat dateFormatter
private java.lang.String fedoraBaseURL
private java.lang.String fedoraRecordDisseminator
| Constructor Detail |
|---|
public SummaStorage()
throws java.rmi.RemoteException
java.rmi.RemoteException| Method Detail |
|---|
public RecordIterator getRecords(java.lang.String base)
throws java.rmi.RemoteException
base - The OAI set from which to harvest records. If this is an
empty string all records will be iterated.
java.rmi.RemoteException
public RecordIterator getRecordsModifiedAfter(long time,
java.lang.String base)
throws java.rmi.RemoteException
time - a timestamp in millisecondsbase - the name of the OAI set to retrieve records from The empty
string implies all records.
java.rmi.RemoteException
public RecordIterator getRecordsFrom(java.lang.String name,
java.lang.String base)
throws java.rmi.RemoteException
name - record name (bib#/id)base - the name of the original record base
java.rmi.RemoteException
public RecordIterator[] getSplits(int splits,
java.lang.String base)
throws java.rmi.RemoteException
splits - the number of iteratorsbase - the name of the original record base
java.rmi.RemoteException
public Record getRecord(java.lang.String name)
throws java.rmi.RemoteException
name - record name (bib#/id)
java.rmi.RemoteException
public Record createNewRecord(java.lang.String name,
java.lang.String base)
throws java.rmi.RemoteException
name - record name (bib#/id)base - the name of the original record base
java.rmi.RemoteException
public Record createNewRecord(java.lang.String name,
byte[] data,
java.lang.String base)
throws java.rmi.RemoteException
name - record name (bib#/id)data - record database - the name of the original record base
java.rmi.RemoteException
public boolean deleteRecord(java.lang.String name)
throws java.rmi.RemoteException
name - record name (bib#/id)
java.rmi.RemoteException
public void removeDeletedBefore(long time,
java.lang.String base)
throws java.rmi.RemoteException
time - upper bound time stampbase - name of the original record base
java.rmi.RemoteException
public void updateRecord(Record record)
throws java.rmi.RemoteException
record - the record to be updated in storage
java.rmi.RemoteException
public void updateRecord(java.lang.String name,
byte[] data)
throws java.rmi.RemoteException
name - record name (bib#/id)data - record data
java.rmi.RemoteException
public boolean recordExists(java.lang.String name)
throws java.rmi.RemoteException
name - record name (bib#/id)
java.rmi.RemoteException
public boolean recordActive(java.lang.String name)
throws java.rmi.RemoteException
name - record name (bib#/id)
java.rmi.RemoteException
public RecordAndNext next(java.lang.Long iteratorKey)
throws java.rmi.RemoteException
iteratorKey - iterator key
java.rmi.RemoteExceptionpublic void perform()
public void exportRMIInterface()
throws java.rmi.RemoteException
java.rmi.RemoteException - if export fails.private RecordIterator createRecordIterator(ListRecordsResponse response)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||