Package io.aeron.cluster
Class RecordingLog.Entry
java.lang.Object
io.aeron.cluster.RecordingLog.Entry
- Enclosing class:
- RecordingLog
Representation of the entry in the
RecordingLog.-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal StringEndpoint for an archive where a remote snapshot is located.final intIndex of the entry in the recording log.final booleanFlag to indicate if the entry is invalid and thus should be ignored.final longIdentity of the leadership term.final longPosition the log has reached for the entry.final longIdentity of the recording in the archive.final intIdentity of the service associated with the entry.final longThe log position at the base of the leadership term.final longTimestamp for the cluster clock in the time units configured for the cluster.final intType, or classification, of the entry, e.g. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
recordingId
public final long recordingIdIdentity of the recording in the archive. -
leadershipTermId
public final long leadershipTermIdIdentity of the leadership term. -
termBaseLogPosition
public final long termBaseLogPositionThe log position at the base of the leadership term. -
logPosition
public final long logPositionPosition the log has reached for the entry. -
timestamp
public final long timestampTimestamp for the cluster clock in the time units configured for the cluster. -
serviceId
public final int serviceIdIdentity of the service associated with the entry. -
type
public final int typeType, or classification, of the entry, e.g.RecordingLog.ENTRY_TYPE_TERMorRecordingLog.ENTRY_TYPE_SNAPSHOT. -
entryIndex
public final int entryIndexIndex of the entry in the recording log. -
isValid
public final boolean isValidFlag to indicate if the entry is invalid and thus should be ignored. -
archiveEndpoint
Endpoint for an archive where a remote snapshot is located.
-
-
Constructor Details
-
Entry
public Entry(long recordingId, long leadershipTermId, long termBaseLogPosition, long logPosition, long timestamp, int serviceId, int type, String archiveEndpoint, boolean isValid, long position, int entryIndex) A new entry in the recording log.- Parameters:
recordingId- of the entry in an archive.leadershipTermId- of this entry.termBaseLogPosition- position of the log over leadership terms at the beginning of this term.logPosition- position reached when the entry was createdtimestamp- of this entry.serviceId- service id for snapshot.type- of the entry as a log of a term or a snapshot.archiveEndpoint- archive where the snapshot is located, ifentryType == ENTRY_TYPE_STANDBY_SNAPSHOT.isValid- indicates if the entry is valid,RecordingLog.invalidateEntry(int)marks it invalid.position- of the entry on disk.entryIndex- of the entry on disk.- Throws:
ClusterException- ifentryType == ENTRY_TYPE_STANDBY_SNAPSHOTandendpointis null or empty.
-
-
Method Details