|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfedora.server.journal.xmlhelpers.AbstractXmlWriter
fedora.server.journal.JournalWriter
fedora.server.journal.readerwriter.singlefile.SingleFileJournalWriter
public class SingleFileJournalWriter
Title: SingleFileJournalWriter.java
Description: A rudimentary implementation of JournalWriter that just writes all entries to a single Journal file. Useful only for System tests.
| Field Summary |
|---|
| Fields inherited from class fedora.server.journal.JournalWriter |
|---|
parameters, role, server, SYNCHRONIZER |
| Fields inherited from interface fedora.server.journal.readerwriter.singlefile.SingleFileJournalConstants |
|---|
PARAMETER_JOURNAL_FILENAME |
| Constructor Summary | |
|---|---|
SingleFileJournalWriter(java.util.Map<java.lang.String,java.lang.String> parameters,
java.lang.String role,
ServerInterface server)
Get the name of the journal file from the server parameters, create the file, wrap it in an XMLEventWriter, and initialize it with a document header. |
|
| Method Summary | |
|---|---|
void |
prepareToWriteJournalEntry()
Make sure that the file has been initialized before writing any journal entries. |
void |
shutdown()
Add the document trailer and close the journal file. |
void |
writeJournalEntry(CreatorJournalEntry journalEntry)
Every journal entry just gets added to the file. |
| Methods inherited from class fedora.server.journal.JournalWriter |
|---|
getInstance, writeDocumentHeader, writeDocumentHeader, writeDocumentTrailer, writeJournalEntry |
| Methods inherited from class fedora.server.journal.xmlhelpers.AbstractXmlWriter |
|---|
putAttribute, putAttributeIfNotNull, putCharacters, putEndDocument, putEndTag, putStartDocument, putStartTag |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SingleFileJournalWriter(java.util.Map<java.lang.String,java.lang.String> parameters,
java.lang.String role,
ServerInterface server)
throws JournalException
JournalException| Method Detail |
|---|
public void prepareToWriteJournalEntry()
throws JournalException
prepareToWriteJournalEntry in class JournalWriterJournalException
public void writeJournalEntry(CreatorJournalEntry journalEntry)
throws JournalException
writeJournalEntry in class JournalWriterJournalException
public void shutdown()
throws JournalException
shutdown in class JournalWriterJournalException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||