|
||||||||||
| 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.multifile.MultiFileJournalWriter
public class MultiFileJournalWriter
Title: MultiFileJournalWriter.java
Description: An implementation of JournalWriter that writes a series of Journal files to a specified directory. New files are begun when the current file becomes too large or too old.
| Field Summary |
|---|
| Fields inherited from class fedora.server.journal.JournalWriter |
|---|
parameters, role, server, SYNCHRONIZER |
| Fields inherited from interface fedora.server.journal.readerwriter.multifile.MultiFileJournalConstants |
|---|
DEFAULT_FOLLOW_POLLING_INTERVAL, PARAMETER_ARCHIVE_DIRECTORY, PARAMETER_FOLLOW_POLLING_INTERVAL, PARAMETER_JOURNAL_DIRECTORY, PARAMETER_LOCK_ACCEPTED_FILENAME, PARAMETER_LOCK_REQUESTED_FILENAME, PARAMETER_PAUSE_BEFORE_POLLING |
| Constructor Summary | |
|---|---|
MultiFileJournalWriter(java.util.Map<java.lang.String,java.lang.String> parameters,
java.lang.String role,
ServerInterface server)
Parse the parameters to find out how we are operating. |
|
| Method Summary | |
|---|---|
void |
prepareToWriteJournalEntry()
Before writing an entry, check to see whether we need to close the current file and/or open a new one. |
void |
shutdown()
Close the current journal file. |
java.lang.String |
toString()
Create an informative message for debugging purposes. |
void |
writeJournalEntry(CreatorJournalEntry journalEntry)
We've prepared for the entry, so just write it, but remember to synchronize on the file, so we don't get an asynchronous close while we're writing. |
| 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, wait, wait, wait |
| Constructor Detail |
|---|
public MultiFileJournalWriter(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 JournalWriterJournalExceptionpublic 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 | |||||||||