public static final class RecordingLog.Entry extends Object
RecordingLog.| Modifier and Type | Field and Description |
|---|---|
String |
archiveEndpoint
Endpoint for an archive where a remote snapshot is located.
|
int |
entryIndex
Index of the entry in the recording log.
|
boolean |
isValid
Flag to indicate if the entry is invalid and thus should be ignored.
|
long |
leadershipTermId
Identity of the leadership term.
|
long |
logPosition
Position the log has reached for the entry.
|
long |
recordingId
Identity of the recording in the archive.
|
int |
serviceId
Identity of the service associated with the entry.
|
long |
termBaseLogPosition
The log position at the base of the leadership term.
|
long |
timestamp
Timestamp for the cluster clock in the time units configured for the cluster.
|
int |
type
Type, or classification, of the entry, e.g.
|
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
int |
length()
Binary length of the serialised entry including alignment.
|
String |
toString() |
public final long recordingId
public final long leadershipTermId
public final long termBaseLogPosition
public final long logPosition
public final long timestamp
public final int serviceId
public final int type
RecordingLog.ENTRY_TYPE_TERM or RecordingLog.ENTRY_TYPE_SNAPSHOT.public final int entryIndex
public final boolean isValid
public final String archiveEndpoint
public Entry(long recordingId,
long leadershipTermId,
long termBaseLogPosition,
long logPosition,
long timestamp,
int serviceId,
int type,
String archiveEndpoint,
boolean isValid,
long position,
int entryIndex)
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, if
entryType == ENTRY_TYPE_STANDBY_SNAPSHOT.isValid - indicates if the entry is valid, RecordingLog.invalidateEntry(long, int)
marks it invalid.position - of the entry on disk.entryIndex - of the entry on disk.ClusterException - if entryType == ENTRY_TYPE_STANDBY_SNAPSHOT and endpoint
is null or empty.Copyright © 2014-2023 Real Logic Limited. All Rights Reserved.