public class CreatorJournalEntry extends JournalEntry
JournalEntry to use when creating a journal file.
When invoking the management method, take a moment to write to the journal before returning.
| Constructor and Description |
|---|
CreatorJournalEntry(String methodName,
Context context)
Don't store the Context that was given; store a writable version of it.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
addArgument, addArgument, addArgument, addArgument, close, getArgumentsMap, getBooleanArgument, getContext, getDateArgument, getIntegerArgument, getMethod, getMethodName, getStreamArgument, getStringArgument, getStringArrayArgument, setRecoveryValue, setRecoveryValuespublic 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.
ServerExceptionJournalExceptionpublic Object invokeAndClose(ManagementDelegate delegate, JournalWriter writer) throws ServerException, JournalException
ServerExceptionJournalExceptionCopyright © 2013 DuraSpace. All Rights Reserved.