|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Journal
Generic journal interface.
| Method Summary | |
|---|---|
void |
close()
Close this journal. |
InstanceRevision |
getInstanceRevision()
Gets the instance that manages the cluster node's local revision. |
RecordProducer |
getProducer(String identifier)
Return the record producer for a given identifier. |
RecordIterator |
getRecords()
Return an iterator over all available records in the journal. |
RecordIterator |
getRecords(long startRevision)
Return an iterator over all records after the specified revision. |
void |
init(String id,
NamespaceResolver resolver)
Initialize journal. |
void |
register(RecordConsumer consumer)
Register a record consumer. |
void |
sync()
Synchronize contents from journal. |
boolean |
unregister(RecordConsumer consumer)
Unregister a record processor. |
| Method Detail |
|---|
void init(String id,
NamespaceResolver resolver)
throws JournalException
id - id this journal should use to write its own recordsresolver - resolver used when reading/writing records
JournalException - if an error occurs
void register(RecordConsumer consumer)
throws JournalException
consumer - record consumer
JournalException - if an error occursboolean unregister(RecordConsumer consumer)
consumer - record processor to unregister
true if the consumer was previously registered;
false otherwise
void sync()
throws JournalException
RecordConsumer.consume(org.apache.jackrabbit.core.journal.Record) method when their identifier
matches the one found in the records.
JournalException - if an error occurs
RecordProducer getProducer(String identifier)
throws JournalException
identifier - identifier
JournalException - if an error occursvoid close()
InstanceRevision getInstanceRevision()
throws JournalException
JournalException - on error
RecordIterator getRecords(long startRevision)
throws JournalException
startRevision - start point (exlusive)
JournalException - if an error occurs
RecordIterator getRecords()
throws JournalException
JournalException - if an error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||