Package org.fcrepo.server.journal.entry

Examples of org.fcrepo.server.journal.entry.ConsumerJournalEntry


            reader.nextEvent();
            next = reader.peek();
        }
        if (isStartTagEvent(next, QNAME_TAG_JOURNAL_ENTRY)) {
            String identifier = peekAtJournalEntryIdentifier();
            ConsumerJournalEntry journalEntry = super.readJournalEntry(reader);
            journalEntry.setIdentifier(identifier);
            return journalEntry;
        } else if (isEndTagEvent(next, QNAME_TAG_JOURNAL)) {
            return null;
        } else {
            throw getNotNextMemberOrEndOfGroupException(QNAME_TAG_JOURNAL,
View Full Code Here


        if (currentFile == null) {
            return null;
        } else {
            String identifier = peekAtJournalEntryIdentifier(currentFile);
            ConsumerJournalEntry journalEntry =
                    super.readJournalEntry(currentFile.getReader());
            journalEntry.setIdentifier(identifier);
            return journalEntry;
        }
    }
View Full Code Here

            while (true) {
                if (shutdown) {
                    break;
                }
                ConsumerJournalEntry cje = reader.readJournalEntry();
                if (cje == null) {
                    break;
                }
                cje.invokeMethod(delegate, recoveryLog);
                cje.close();
            }
            reader.shutdown();

            recoveryLog.log("Recovery complete.");
        } catch (Throwable e) {
View Full Code Here

        String methodName =
                getRequiredAttributeValue(startTag, QNAME_ATTR_METHOD);

        JournalEntryContext context =
                new ContextXmlReader().readContext(reader);
        ConsumerJournalEntry cje =
                new ConsumerJournalEntry(methodName, context);

        readArguments(reader, cje);

        return cje;
    }
View Full Code Here

        advancePastWhitespace(xmlReader);

        XMLEvent next = xmlReader.peek();
        if (isStartTagEvent(next, QNAME_TAG_JOURNAL_ENTRY)) {
            ConsumerJournalEntry journalEntry =
                    super.readJournalEntry(xmlReader);
            journalEntry.setIdentifier(new Date().toString());
            return journalEntry;
        } else if (isEndTagEvent(next, QNAME_TAG_JOURNAL)) {
            return null;
        } else {
            throw getNotNextMemberOrEndOfGroupException(QNAME_TAG_JOURNAL,
View Full Code Here

TOP

Related Classes of org.fcrepo.server.journal.entry.ConsumerJournalEntry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.