|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fcrepo.server.journal.entry.JournalEntry
org.fcrepo.server.journal.entry.CreatorJournalEntry
public class CreatorJournalEntry
The JournalEntry to use when creating a journal file.
When invoking the management method, take a moment to write to the journal before returning.
| Constructor Summary | |
|---|---|
CreatorJournalEntry(String methodName,
Context context)
Don't store the Context that was given; store a writable version of it. |
|
| Method Summary | |
|---|---|
Object |
invokeAndClose(ManagementDelegate delegate,
JournalWriter writer)
A convenience method that invokes the management method and then closes the JournalEntry, thereby cleaning up any temp files. |
Object |
invokeMethod(ManagementDelegate delegate,
JournalWriter writer)
Process the management method: Check the operating mode - if we are in Read-Only mode, this check will
throw an exception.
Prepare the writer in case we need to initialize a new file with a
repository hash.
Invoke the method on the ManagementDelegate.
Write the full journal entry, including any context changes from the
Management method.
These operations occur within a synchronized block. |
| Methods inherited from class org.fcrepo.server.journal.entry.JournalEntry |
|---|
addArgument, addArgument, addArgument, addArgument, close, getArgumentsMap, getBooleanArgument, getContext, getDateArgument, getIntegerArgument, getMethod, getMethodName, getStreamArgument, getStringArgument, getStringArrayArgument, setRecoveryValue, setRecoveryValues |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CreatorJournalEntry(String methodName,
Context context)
| Method Detail |
|---|
public Object invokeMethod(ManagementDelegate delegate,
JournalWriter writer)
throws ServerException,
JournalException
Read-Only mode, this check will
throw an exception.There might be a way to enforce the synchronization at a lower level, thus increasing throughput, but we haven't explored it yet.
ServerException
JournalException
public Object invokeAndClose(ManagementDelegate delegate,
JournalWriter writer)
throws ServerException,
JournalException
ServerException
JournalException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||