Uses of Class
fedora.server.journal.JournalException

Packages that use JournalException
fedora.server.journal   
fedora.server.journal.entry   
fedora.server.journal.helpers   
fedora.server.journal.managementmethods   
fedora.server.journal.readerwriter.multicast   
fedora.server.journal.readerwriter.multicast.request   
fedora.server.journal.readerwriter.multicast.rmi   
fedora.server.journal.readerwriter.multifile   
fedora.server.journal.readerwriter.singlefile   
fedora.server.journal.xmlhelpers   
 

Uses of JournalException in fedora.server.journal
 

Methods in fedora.server.journal that throw JournalException
protected  void JournalReader.checkRepositoryHash(java.lang.String hash)
          Compare the repository hash from the journal file with the current hash obtained from the server.
static JournalWriter JournalWriter.getInstance(java.util.Map<java.lang.String,java.lang.String> parameters, java.lang.String role, ServerInterface server)
          Create an instance of the proper JournalWriter child class, as determined by the server parameters.
abstract  void JournalWriter.prepareToWriteJournalEntry()
          Concrete sub-classes should insure that a message transport is ready, and call {@link #writeDocumentHeader(XMLEventWriter) if needed.
abstract  ConsumerJournalEntry JournalReader.readJournalEntry()
          Concrete sub-classes should insure that their XMLEventReader is positioned at the beginning of a JournalEntry, and call JournalReader.readJournalEntry(XMLEventReader).
protected  ConsumerJournalEntry JournalReader.readJournalEntry(javax.xml.stream.XMLEventReader reader)
          Read a JournalEntry from the journal, to produce a ConsumerJournalEntry instance.
abstract  void JournalWriter.shutdown()
           
abstract  void JournalReader.shutdown()
          Concrete sub-classes should probably synchronize this method, since it can be called either from the JournalConsumerThread or from the Server.
protected  void JournalWriter.writeDocumentHeader(javax.xml.stream.XMLEventWriter writer)
          Subclasses should call this method to initialize a new Journal file.
protected  void JournalWriter.writeDocumentHeader(javax.xml.stream.XMLEventWriter writer, java.lang.String repositoryHash, java.util.Date currentDate)
          Subclasses should call this method to initialize a new Journal file, if they already know the repository hash and the current date.
protected  void JournalWriter.writeDocumentTrailer(javax.xml.stream.XMLEventWriter writer)
          Subclasses should call this method to close a Journal file.
abstract  void JournalWriter.writeJournalEntry(CreatorJournalEntry journalEntry)
          Concrete sub-classes should provide an XMLEventWriter, and call #writeJournalEntry(XMLEventWriter), after which, they should probably flush the XMLEventWriter.
protected  void JournalWriter.writeJournalEntry(CreatorJournalEntry journalEntry, javax.xml.stream.XMLEventWriter writer)
          Format a JournalEntry object and write a JournalEntry tag to the journal.
 

Constructors in fedora.server.journal that throw JournalException
JournalReader(java.util.Map<java.lang.String,java.lang.String> parameters, java.lang.String role, JournalRecoveryLog recoveryLog, ServerInterface server)
          Concrete sub-classes must implement this constructor.
 

Uses of JournalException in fedora.server.journal.entry
 

Methods in fedora.server.journal.entry that throw JournalException
 void JournalEntry.addArgument(java.lang.String key, java.io.InputStream stream)
          If handed an InputStream as an argument, copy it to a temp file and store that File in the arguments map instead.
 java.io.InputStream JournalEntry.getStreamArgument(java.lang.String name)
          If they ask for an InputStream argument, get the File from the arguments map and create an InputStream on that file.
 java.lang.Object CreatorJournalEntry.invokeAndClose(ManagementDelegate delegate, JournalWriter writer)
          A convenience method that invokes the management method and then closes the JournalEntry, thereby cleaning up any temp files.
 void ConsumerJournalEntry.invokeMethod(ManagementDelegate delegate, JournalRecoveryLog recoveryLog)
           
 java.lang.Object CreatorJournalEntry.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.
 

Uses of JournalException in fedora.server.journal.helpers
 

Methods in fedora.server.journal.helpers that throw JournalException
static java.lang.Object JournalHelper.createInstanceAccordingToParameter(java.lang.String parameterName, java.lang.Class<?>[] argClasses, java.lang.Object[] args, java.util.Map<java.lang.String,java.lang.String> parameters)
          Look in the system parameters and create an instance of the named class.
static java.lang.Object JournalHelper.createInstanceFromClassname(java.lang.String className, java.lang.Class<?>[] argClasses, java.lang.Object[] args)
          Create an instance of the named class.
static boolean ParameterHelper.getOptionalBooleanParameter(java.util.Map<java.lang.String,java.lang.String> parameters, java.lang.String parameterName, boolean defaultValue)
          Get an optional boolean parameter.
static java.util.Date JournalHelper.parseDate(java.lang.String date)
          Parse a date from the journal.
static long ParameterHelper.parseParametersForAgeLimit(java.util.Map<java.lang.String,java.lang.String> parameters)
          Get the age limit parameter (or let it default), and convert it to milliseconds.
static long ParameterHelper.parseParametersForSizeLimit(java.util.Map<java.lang.String,java.lang.String> parameters)
          Get the size limit parameter (or let it default), and convert it to bytes.
static java.io.File ParameterHelper.parseParametersForWritableDirectory(java.util.Map<java.lang.String,java.lang.String> parameters, java.lang.String parameterName)
          Look in the parameters for the path to a writable directory.
 

Uses of JournalException in fedora.server.journal.managementmethods
 

Methods in fedora.server.journal.managementmethods that throw JournalException
 java.lang.Object PutTempStreamMethod.invoke(ManagementDelegate delegate)
           
 java.lang.Object ModifyDatastreamByValueMethod.invoke(ManagementDelegate delegate)
           
abstract  java.lang.Object ManagementMethod.invoke(ManagementDelegate delegate)
          Each concrete sub-class should use this method to pull the necessary arguments from the map of the parent JournalEntry, call the appropriate method on the ManagementDelegate, and perhaps store the result in the context of the parent JournalEntry (depends on the sub-class).
 java.lang.Object IngestObjectMethod.invoke(ManagementDelegate delegate)
           
 

Uses of JournalException in fedora.server.journal.readerwriter.multicast
 

Methods in fedora.server.journal.readerwriter.multicast that throw JournalException
protected  void MulticastJournalWriter.checkTransportParametersForValidity()
          "protected" so we can mock it out in unit tests.
abstract  void Transport.closeFile()
          Subclasses should implement this to close a logical journal file.
 void LocalDirectoryTransport.closeFile()
          On a request to close the file, check that we are in a valid state, close the XMLEventWriter and the TransportOutputFile, set the state.
 long JournalEntrySizeEstimator.estimateSize(JournalEntry journalEntry)
          Create a modified entry, minus any file arguments, and ask the JournalWriter to format it so we can check the size.
abstract  javax.xml.stream.XMLEventWriter Transport.getWriter()
          Subclasses should implement this to provite an XMLEventWriter for the JournalWriter to write to.
 javax.xml.stream.XMLEventWriter LocalDirectoryTransport.getWriter()
          Check that our current state is correct before filling a request for an XMLEventWriter.
abstract  void Transport.openFile(java.lang.String repositoryHash, java.lang.String filename, java.util.Date currentDate)
          Subclasses should implement this to create a new logical journal file.
 void LocalDirectoryTransport.openFile(java.lang.String repositoryHash, java.lang.String filename, java.util.Date currentDate)
          On a request to open the file, check that we are in a valid state, create the file, create the XMLEventWriter for use on the file, ask the parent to write the header to the file, set the state.
 void MulticastJournalWriter.prepareToWriteJournalEntry()
           Get ready to write a journal entry, insuring that we have an open file.
 void Transport.setState(Transport.State newState)
          Subclasses should call this to change the current state, after the operation has been performed.
abstract  void Transport.shutdown()
          Subclasses should implement this to close any resources associated with the Transport (unless it is already shut down).
 void MulticastJournalWriter.shutdown()
           Shut it down
 void LocalDirectoryTransport.shutdown()
          On a request to shut down, check that we are in a valid state, set the state. If we have already shut down, a second call is not an error, but requires no action.
 void Transport.testStateChange(Transport.State desiredState)
           Subclasses should call this before attempting an operation that will change the current state, so if the change is not permitted, it will not be performed.
protected  void Transport.testWriterState()
          Subclasses should call this before executing a getWriter request.
 void TransportParent.writeDocumentHeader(javax.xml.stream.XMLEventWriter writer, java.lang.String repositoryHash, java.util.Date currentDate)
           
 void MulticastJournalWriter.writeDocumentHeader(javax.xml.stream.XMLEventWriter writer, java.lang.String repositoryHash, java.util.Date currentDate)
          make this public so the Transport classes can call it via TransportParent.
 void TransportParent.writeDocumentTrailer(javax.xml.stream.XMLEventWriter xmlWriter)
           
 void MulticastJournalWriter.writeDocumentTrailer(javax.xml.stream.XMLEventWriter writer)
          make this public so the Transport classes can call it via TransportParent.
 void MulticastJournalWriter.writeJournalEntry(CreatorJournalEntry journalEntry)
           Write a journal entry.
 void MulticastJournalWriter.writeJournalEntry(CreatorJournalEntry journalEntry, javax.xml.stream.XMLEventWriter writer)
          make this public, so the TransportRequest class can call it.
 

Constructors in fedora.server.journal.readerwriter.multicast that throw JournalException
LocalDirectoryTransport(java.util.Map<java.lang.String,java.lang.String> parameters, boolean crucial, TransportParent parent)
           
MulticastJournalWriter(java.util.Map<java.lang.String,java.lang.String> parameters, java.lang.String role, ServerInterface server)
           
Transport(java.util.Map<java.lang.String,java.lang.String> parameters, boolean crucial, TransportParent parent)
           
 

Uses of JournalException in fedora.server.journal.readerwriter.multicast.request
 

Methods in fedora.server.journal.readerwriter.multicast.request that throw JournalException
 void WriteEntryRequest.performRequest(Transport transport)
           
abstract  void TransportRequest.performRequest(Transport transport)
           
 void ShutdownRequest.performRequest(Transport transport)
           
 void OpenFileRequest.performRequest(Transport transport)
           
 void CloseFileRequest.performRequest(Transport transport)
           
 

Uses of JournalException in fedora.server.journal.readerwriter.multicast.rmi
 

Methods in fedora.server.journal.readerwriter.multicast.rmi that throw JournalException
 void RmiTransport.closeFile()
          check state, write the file closing, close/flush the writer, send the close request, set state.
 void RmiJournalReceiverInterface.closeFile()
           
 void RmiJournalReceiver.closeFile()
          Request to close a file.
 javax.xml.stream.XMLEventWriter RmiTransport.getWriter()
          check state, hand over to the writer
 void RmiJournalReceiverInterface.openFile(java.lang.String repositoryHash, java.lang.String filename)
           
 void RmiJournalReceiver.openFile(java.lang.String repositoryHash, java.lang.String filename)
          Request to open a file.
 void RmiTransport.openFile(java.lang.String repositoryHash, java.lang.String filename, java.util.Date currentDate)
          check state, send the open request, open a very special writer, write the file opening, set state
 void RmiTransport.shutdown()
          check state, set state.
 void RmiJournalReceiverInterface.writeText(java.lang.String indexedHash, java.lang.String text)
           
 void RmiJournalReceiver.writeText(java.lang.String indexedHash, java.lang.String text)
          Request to write text to the current journal file.
 

Constructors in fedora.server.journal.readerwriter.multicast.rmi that throw JournalException
RmiTransport(java.util.Map<java.lang.String,java.lang.String> parameters, boolean crucial, TransportParent parent)
           
RmiTransportWriter(RmiJournalReceiverInterface receiver, java.lang.String repositoryHash, java.lang.String filename)
          When the writer is created, open the connection to the receiver.
 

Uses of JournalException in fedora.server.journal.readerwriter.multifile
 

Methods in fedora.server.journal.readerwriter.multifile that throw JournalException
protected  fedora.server.journal.readerwriter.multifile.JournalInputFile MultiFileJournalReader.openNextFile()
          Look in the directory for files that match the prefix.
protected  fedora.server.journal.readerwriter.multifile.JournalInputFile MultiFileFollowingJournalReader.openNextFile()
          Deprecated. Ask for a new file, using the superclass method, but if none is found, wait for a while and ask again.
protected  fedora.server.journal.readerwriter.multifile.JournalInputFile LockingFollowingJournalReader.openNextFile()
          Process the locking mechanism.
 void MultiFileJournalWriter.prepareToWriteJournalEntry()
          Before writing an entry, check to see whether we need to close the current file and/or open a new one.
 ConsumerJournalEntry MultiFileJournalReader.readJournalEntry()
           
 void MultiFileJournalWriter.shutdown()
          Close the current journal file.
 void MultiFileJournalReader.shutdown()
           
 void MultiFileFollowingJournalReader.shutdown()
          Deprecated. If the server requests a shutdown, stop waiting the next file to come in.
 void LockingFollowingJournalReader.shutdown()
          If the server requests a shutdown, stop waiting the next file to come in.
 void MultiFileJournalWriter.writeJournalEntry(CreatorJournalEntry journalEntry)
          We've prepared for the entry, so just write it, but remember to synchronize on the file, so we don't get an asynchronous close while we're writing.
 

Constructors in fedora.server.journal.readerwriter.multifile that throw JournalException
LockingFollowingJournalReader(java.util.Map<java.lang.String,java.lang.String> parameters, java.lang.String role, JournalRecoveryLog recoveryLog, ServerInterface server)
          Require parameters for polling interval, lock request filename and lock acceptance filename.
MultiFileFollowingJournalReader(java.util.Map<java.lang.String,java.lang.String> parameters, java.lang.String role, JournalRecoveryLog recoveryLog, ServerInterface server)
          Deprecated. Do the super-class constructor, and then find the polling interval.
MultiFileJournalReader(java.util.Map<java.lang.String,java.lang.String> parameters, java.lang.String role, JournalRecoveryLog recoveryLog, ServerInterface server)
           
MultiFileJournalWriter(java.util.Map<java.lang.String,java.lang.String> parameters, java.lang.String role, ServerInterface server)
          Parse the parameters to find out how we are operating.
 

Uses of JournalException in fedora.server.journal.readerwriter.singlefile
 

Methods in fedora.server.journal.readerwriter.singlefile that throw JournalException
 void SingleFileJournalWriter.prepareToWriteJournalEntry()
          Make sure that the file has been initialized before writing any journal entries.
 ConsumerJournalEntry SingleFileJournalReader.readJournalEntry()
          Advance past any white space, and then see whether we have any more JournalEntry tags.
 void SingleFileJournalWriter.shutdown()
          Add the document trailer and close the journal file.
 void SingleFileJournalReader.shutdown()
          On the first call, Just close the reader.
 void SingleFileJournalWriter.writeJournalEntry(CreatorJournalEntry journalEntry)
          Every journal entry just gets added to the file.
 

Constructors in fedora.server.journal.readerwriter.singlefile that throw JournalException
SingleFileJournalReader(java.util.Map<java.lang.String,java.lang.String> parameters, java.lang.String role, JournalRecoveryLog recoveryLog, ServerInterface server)
          Get the name of the journal file from the server parameters, wrap it in an XMLEventReader, and advance past the document header to the first JournalEntry.
SingleFileJournalWriter(java.util.Map<java.lang.String,java.lang.String> parameters, java.lang.String role, ServerInterface server)
          Get the name of the journal file from the server parameters, create the file, wrap it in an XMLEventWriter, and initialize it with a document header.
 

Uses of JournalException in fedora.server.journal.xmlhelpers
 

Methods in fedora.server.journal.xmlhelpers that return JournalException
protected  JournalException AbstractXmlReader.getNotCharactersException(javax.xml.namespace.QName tagName, javax.xml.stream.events.XMLEvent event)
          If we encounter an unexpected event when reading the journal file, create an exception with all of the pertinent information.
protected  JournalException AbstractXmlReader.getNotEndTagException(javax.xml.namespace.QName tagName, javax.xml.stream.events.XMLEvent event)
          Complain when we were expecting a end tag, and didn't find it.
protected  JournalException AbstractXmlReader.getNotNextMemberOrEndOfGroupException(javax.xml.namespace.QName groupTagName, javax.xml.namespace.QName memberTagName, javax.xml.stream.events.XMLEvent event)
          While traversing a group of member tags, we expected either the start of another member tag, or the end of the group.
protected  JournalException AbstractXmlReader.getNotStartTagException(javax.xml.namespace.QName tagName, javax.xml.stream.events.XMLEvent event)
          Complain when we were expecting a start tag, and didn't find it.
 

Methods in fedora.server.journal.xmlhelpers that throw JournalException
protected  java.lang.String AbstractXmlReader.getRequiredAttributeValue(javax.xml.stream.events.StartElement start, javax.xml.namespace.QName attributeName)
          Get the value of a given attribute from this start tag, or complain if it's not there.
 DSBindingMap BindingMapXmlReader.readBindingMap(javax.xml.stream.XMLEventReader reader)
           
protected  java.lang.String AbstractXmlReader.readCharactersUntilEndTag(javax.xml.stream.XMLEventReader reader, javax.xml.namespace.QName tagName)
          Loop through a series of character events, accumulating the data into a String.
 JournalEntryContext ContextXmlReader.readContext(javax.xml.stream.XMLEventReader reader)
          Read the context tax and populate a JournalEntryContext object.
protected  javax.xml.stream.events.XMLEvent AbstractXmlReader.readStartTag(javax.xml.stream.XMLEventReader reader, javax.xml.namespace.QName tagName)
          Read the next event and complain if it is not the Start Tag that we expected.