|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfedora.server.journal.recoverylog.JournalRecoveryLog
fedora.server.journal.recoverylog.BufferedJournalRecoveryLog
RenamingJournalRecoveryLog.
@Deprecated public class BufferedJournalRecoveryLog
Title: BufferedJournalRecoveryLog.java
Description: A simple implementation of JournalRecoveryLog that keeps the entire log in a StringBuffer, and writes it to a file on shutdown().
This is memory-intensive, so it should only be used for System Tests, where the presence of the log file can be treated as a signal that the recovery is complete.
| Field Summary |
|---|
| Fields inherited from class fedora.server.journal.recoverylog.JournalRecoveryLog |
|---|
server |
| Constructor Summary | |
|---|---|
BufferedJournalRecoveryLog(java.util.Map<java.lang.String,java.lang.String> parameters,
java.lang.String role,
ServerInterface server)
Deprecated. Get the name of the log file from the server parameters, but don't create the file yet. |
|
| Method Summary | |
|---|---|
void |
log(java.lang.String message)
Deprecated. Any request to log a message just adds it to the buffer in the StringWriter (if shutdown has not been called). |
void |
shutdown()
Deprecated. On the first call to this method, write the buffer to the log file. |
java.lang.String |
toString()
Deprecated. |
| Methods inherited from class fedora.server.journal.recoverylog.JournalRecoveryLog |
|---|
getInstance, log, log, logHeaderInfo, shutdown |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BufferedJournalRecoveryLog(java.util.Map<java.lang.String,java.lang.String> parameters,
java.lang.String role,
ServerInterface server)
throws ModuleInitializationException
ModuleInitializationException| Method Detail |
|---|
public void log(java.lang.String message)
log in class JournalRecoveryLogpublic void shutdown()
shutdown in class JournalRecoveryLogpublic 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 | |||||||||