|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfedora.server.journal.xmlhelpers.AbstractXmlReader
fedora.server.journal.JournalReader
fedora.server.journal.readerwriter.singlefile.SingleFileJournalReader
public class SingleFileJournalReader
Title: SingleFileJournalReader.java
Description: A rudimentary implementation of JournalReader that just reads all entries from a single Journal file. Useful only for System tests.
| Field Summary |
|---|
| Fields inherited from class fedora.server.journal.JournalReader |
|---|
parameters, recoveryLog, role, server |
| Fields inherited from interface fedora.server.journal.readerwriter.singlefile.SingleFileJournalConstants |
|---|
PARAMETER_JOURNAL_FILENAME |
| Constructor Summary | |
|---|---|
SingleFileJournalReader(java.util.Map<java.lang.String,java.lang.String> parameters,
java.lang.String role,
JournalRecoveryLog recoveryLog,
ServerInterface server)
Get the name of the journal file from the server parameters, wrap it in an XMLEventReader, and advance past the document header to the first JournalEntry. |
|
| Method Summary | |
|---|---|
ConsumerJournalEntry |
readJournalEntry()
Advance past any white space, and then see whether we have any more JournalEntry tags. |
void |
shutdown()
On the first call, Just close the reader. |
java.lang.String |
toString()
|
| Methods inherited from class fedora.server.journal.JournalReader |
|---|
checkRepositoryHash, getInstance, readJournalEntry |
| Methods inherited from class fedora.server.journal.xmlhelpers.AbstractXmlReader |
|---|
advancePastWhitespace, getNotCharactersException, getNotEndTagException, getNotNextMemberOrEndOfGroupException, getNotStartTagException, getOptionalAttributeValue, getRequiredAttributeValue, isEndTagEvent, isStartTagEvent, readCharactersUntilEndTag, readStartTag |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SingleFileJournalReader(java.util.Map<java.lang.String,java.lang.String> parameters,
java.lang.String role,
JournalRecoveryLog recoveryLog,
ServerInterface server)
throws ModuleInitializationException,
JournalException
JournalException
ModuleInitializationException| Method Detail |
|---|
public ConsumerJournalEntry readJournalEntry()
throws JournalException,
javax.xml.stream.XMLStreamException
readJournalEntry in class JournalReaderJournalException
javax.xml.stream.XMLStreamException
public void shutdown()
throws JournalException
shutdown in class JournalReaderJournalExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||