org.fcrepo.server.journal.entry
Class ConsumerJournalEntry

java.lang.Object
  extended by org.fcrepo.server.journal.entry.JournalEntry
      extended by org.fcrepo.server.journal.entry.ConsumerJournalEntry

public class ConsumerJournalEntry
extends JournalEntry

The JournalEntry to use when consuming a journal file.

Before invoking a method, write the entry to the recovery logger. After invoking the method, log a completion message.

Author:
Jim Blake

Constructor Summary
ConsumerJournalEntry(String methodName, JournalEntryContext context)
           
 
Method Summary
 String getIdentifier()
           
 void invokeMethod(ManagementDelegate delegate, JournalRecoveryLog recoveryLog)
           
 void setIdentifier(String identifier)
           
 String toString()
           
 
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, wait, wait, wait
 

Constructor Detail

ConsumerJournalEntry

public ConsumerJournalEntry(String methodName,
                            JournalEntryContext context)
Method Detail

invokeMethod

public void invokeMethod(ManagementDelegate delegate,
                         JournalRecoveryLog recoveryLog)
                  throws ServerException,
                         JournalException
Throws:
ServerException
JournalException

setIdentifier

public void setIdentifier(String identifier)

getIdentifier

public String getIdentifier()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 DuraSpace. All Rights Reserved.