Class ChangeLogRecord
- java.lang.Object
- 
- org.apache.jackrabbit.core.cluster.ClusterRecord
- 
- 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.ClusterRecordEND_MARKER, record, workspace
 
- 
 - 
Constructor SummaryConstructors Constructor Description ChangeLogRecord(ChangeLog changes, List<EventState> events, Record record, String workspace, long timestamp, String userData)Create a new instance of this class.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoRead()Deserialize this record.protected voiddoWrite()Serialize this record.ChangeLoggetChanges()Return the changes.List<EventState>getEvents()Return the events.longgetTimestamp()Returns the timestamp.StringgetUserData()Returns the user data.voidprocess(ClusterRecordProcessor processor)Process this record, calling the appropriateprocessmethod.protected voidreadEndMarker()Read end marker.- 
Methods inherited from class org.apache.jackrabbit.core.cluster.ClusterRecordcancelUpdate, getRevision, getWorkspace, read, update, write
 
- 
 
- 
- 
- 
Constructor Detail- 
ChangeLogRecordpublic ChangeLogRecord(ChangeLog changes, List<EventState> events, Record record, String workspace, long timestamp, String userData) Create a new instance of this class. Used when serializing.- Parameters:
- changes- changes
- events- list of- EventStates
- record- record
- workspace- workspace
- timestamp- when the changes for this record were persisted.
- userData- the user data associated with these changes.
 
 
- 
 - 
Method Detail- 
doReadprotected void doRead() throws JournalExceptionDeserialize this record. Subclass responsibility.- Specified by:
- doReadin class- ClusterRecord
- Throws:
- JournalException- if an error occurs
 
 - 
readEndMarkerprotected void readEndMarker() throws JournalExceptionRead end marker.- Overrides:
- readEndMarkerin class- ClusterRecord
- Throws:
- JournalException- if an error occurs
 
 - 
doWriteprotected void doWrite() throws JournalExceptionSerialize this record. Subclass responsibility.- Specified by:
- doWritein class- ClusterRecord
- Throws:
- JournalException- if an error occurs
 
 - 
processpublic void process(ClusterRecordProcessor processor) Process this record, calling the appropriateprocessmethod.- Specified by:
- processin class- ClusterRecord
- Parameters:
- processor- processor
 
 - 
getChangespublic ChangeLog getChanges() Return the changes.- Returns:
- changes
 
 - 
getEventspublic List<EventState> getEvents() Return the events.- Returns:
- events
 
 - 
getTimestamppublic long getTimestamp() Returns the timestamp.- Returns:
- the timestamp.
 
 - 
getUserDatapublic String getUserData() Returns the user data.- Returns:
- the user data.
 
 
- 
 
-