|
||||||||||
| 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.RenamingJournalRecoveryLog
public class RenamingJournalRecoveryLog
A production-oriented implementation of JournalRecoveryLog. The name
of the log file contains a time-stamp, so we can be sure that it won't
over-write an existing log file. Also, the name is prefixed with an '_'
(underscore) while the recovery is in progress, so we can see when it
finishes.
| Field Summary |
|---|
| Fields inherited from class fedora.server.journal.recoverylog.JournalRecoveryLog |
|---|
server |
| Constructor Summary | |
|---|---|
RenamingJournalRecoveryLog(java.util.Map<java.lang.String,java.lang.String> parameters,
java.lang.String role,
ServerInterface server)
|
|
| Method Summary | |
|---|---|
void |
log(java.lang.String message)
A request to log a message just writes it to the log file and flushes it (if shutdown has not been called). |
void |
shutdown()
On the first call to this method, close the log file and rename it. |
java.lang.String |
toString()
|
| 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 RenamingJournalRecoveryLog(java.util.Map<java.lang.String,java.lang.String> parameters,
java.lang.String role,
ServerInterface server)
throws ModuleInitializationException
parameters - role - server -
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 | |||||||||