org.apache.jackrabbit.core.cluster
Class ChangeLogRecord

java.lang.Object
  extended by org.apache.jackrabbit.core.cluster.ClusterRecord
      extended by org.apache.jackrabbit.core.cluster.ChangeLogRecord

public class ChangeLogRecord
extends ClusterRecord

Cluster record representing a workspace or version update.


Field Summary
 
Fields inherited from class org.apache.jackrabbit.core.cluster.ClusterRecord
END_MARKER, record, workspace
 
Constructor Summary
ChangeLogRecord(ChangeLog changes, List events, Record record, String workspace)
          Create a new instance of this class.
 
Method Summary
protected  void doRead()
          Deserialize this record.
protected  void doWrite()
          Serialize this record.
 ChangeLog getChanges()
          Return the changes.
 List getEvents()
          Return the events.
 void process(ClusterRecordProcessor processor)
          Process this record, calling the appropriate process method.
protected  void readEndMarker()
          Read end marker.
 
Methods inherited from class org.apache.jackrabbit.core.cluster.ClusterRecord
cancelUpdate, getRevision, getWorkspace, read, update, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangeLogRecord

public ChangeLogRecord(ChangeLog changes,
                       List events,
                       Record record,
                       String workspace)
Create a new instance of this class. Used when serializing.

Parameters:
changes - changes
list - of EventStates
record - record
workspace - workspace
Method Detail

doRead

protected void doRead()
               throws JournalException
Deserialize this record. Subclass responsibility.

Specified by:
doRead in class ClusterRecord
Throws:
JournalException - if an error occurs

readEndMarker

protected void readEndMarker()
                      throws JournalException
Read end marker.

Overrides:
readEndMarker in class ClusterRecord
Throws:
JournalException - if an error occurs

doWrite

protected void doWrite()
                throws JournalException
Serialize this record. Subclass responsibility.

Specified by:
doWrite in class ClusterRecord
Throws:
JournalException - if an error occurs

process

public void process(ClusterRecordProcessor processor)
Process this record, calling the appropriate process method.

Specified by:
process in class ClusterRecord
Parameters:
processor - processor

getChanges

public ChangeLog getChanges()
Return the changes.

Returns:
changes

getEvents

public List getEvents()
Return the events.

Returns:
events


Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.