|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.core.cluster.ClusterRecord
public abstract class ClusterRecord
Base cluster record. Used to serialize and deserialize cluster operations using journal records.
Field Summary | |
---|---|
protected static char |
END_MARKER
End marker. |
protected Record |
record
Journal record. |
protected String |
workspace
Workspace name. |
Constructor Summary | |
---|---|
protected |
ClusterRecord(Record record)
Create a new instance of this class. |
protected |
ClusterRecord(Record record,
String workspace)
Create a new instance of this class. |
Method Summary | |
---|---|
void |
cancelUpdate()
Cancel updating the record. |
protected abstract void |
doRead()
Deserialize this record. |
protected abstract void |
doWrite()
Serialize this record. |
long |
getRevision()
Return the record revision. |
String |
getWorkspace()
Return the workspace name. |
abstract void |
process(ClusterRecordProcessor processor)
Process this record, calling the appropriate process
method. |
void |
read()
Deserialize this record. |
protected void |
readEndMarker()
Read end marker. |
void |
update()
Update the record. |
void |
write()
Serialize this record. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final char END_MARKER
protected final Record record
protected String workspace
Constructor Detail |
---|
protected ClusterRecord(Record record, String workspace)
record
- journal recordworkspace
- workspaceprotected ClusterRecord(Record record)
record
- journal recordMethod Detail |
---|
public final void read() throws JournalException
JournalException
- if an error occursprotected abstract void doRead() throws JournalException
JournalException
- if an error occurspublic final void write() throws JournalException
JournalException
- if an error occursprotected abstract void doWrite() throws JournalException
JournalException
- if an error occursprotected void readEndMarker() throws JournalException
JournalException
- if an error occurspublic abstract void process(ClusterRecordProcessor processor)
process
method.
processor
- processorpublic void update() throws JournalException
JournalException
- if an error occursRecord.update()
public void cancelUpdate()
Record.cancelUpdate()
public long getRevision()
Record.getRevision()
public String getWorkspace()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |