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.ClusterRecord
END_MARKER, record, workspace
-
-
Constructor Summary
Constructors Constructor Description ChangeLogRecord(ChangeLog changes, List<EventState> events, Record record, String workspace, long timestamp, String userData)Create a new instance of this class.
-
Method Summary
All 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.ClusterRecord
cancelUpdate, getRevision, getWorkspace, read, update, write
-
-
-
-
Constructor Detail
-
ChangeLogRecord
public 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- changesevents- list ofEventStatesrecord- recordworkspace- workspacetimestamp- when the changes for this record were persisted.userData- the user data associated with these changes.
-
-
Method Detail
-
doRead
protected void doRead() throws JournalExceptionDeserialize this record. Subclass responsibility.- Specified by:
doReadin classClusterRecord- Throws:
JournalException- if an error occurs
-
readEndMarker
protected void readEndMarker() throws JournalExceptionRead end marker.- Overrides:
readEndMarkerin classClusterRecord- Throws:
JournalException- if an error occurs
-
doWrite
protected void doWrite() throws JournalExceptionSerialize this record. Subclass responsibility.- Specified by:
doWritein classClusterRecord- Throws:
JournalException- if an error occurs
-
process
public void process(ClusterRecordProcessor processor)
Process this record, calling the appropriateprocessmethod.- Specified by:
processin classClusterRecord- Parameters:
processor- processor
-
getChanges
public ChangeLog getChanges()
Return the changes.- Returns:
- changes
-
getEvents
public List<EventState> getEvents()
Return the events.- Returns:
- events
-
getTimestamp
public long getTimestamp()
Returns the timestamp.- Returns:
- the timestamp.
-
getUserData
public String getUserData()
Returns the user data.- Returns:
- the user data.
-
-