Table of Contents

Class BackupArchiveLog

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

A range of a timeline's archive (ReadLog(string, Guid, long, long, bool, int)).

public sealed record BackupArchiveLog : IEquatable<BackupArchiveLog>
Inheritance
BackupArchiveLog
Implements
Inherited Members

Constructors

BackupArchiveLog(Guid, long, long, IReadOnlyList<BackupArchivedSegment>, IReadOnlyList<BackupArchiveGap>, IReadOnlyList<BackupTimeSample>, IReadOnlyList<BackupLogFrame>, bool)

A range of a timeline's archive (ReadLog(string, Guid, long, long, bool, int)).

public BackupArchiveLog(Guid TimelineId, long FromLsn, long ToLsn, IReadOnlyList<BackupArchivedSegment> Segments, IReadOnlyList<BackupArchiveGap> Gaps, IReadOnlyList<BackupTimeSample> Samples, IReadOnlyList<BackupLogFrame> Frames, bool Truncated)

Parameters

TimelineId Guid

The timeline read.

FromLsn long

The range's first LSN.

ToLsn long

The range's last LSN.

Segments IReadOnlyList<BackupArchivedSegment>

The segments overlapping it.

Gaps IReadOnlyList<BackupArchiveGap>

The gaps overlapping it.

Samples IReadOnlyList<BackupTimeSample>

The time samples inside it.

Frames IReadOnlyList<BackupLogFrame>

With commits, every frame ending inside it, up to the limit; empty otherwise.

Truncated bool

Whether the limit stopped the frame list.

Properties

Frames

With commits, every frame ending inside it, up to the limit; empty otherwise.

public IReadOnlyList<BackupLogFrame> Frames { get; init; }

Property Value

IReadOnlyList<BackupLogFrame>

FromLsn

The range's first LSN.

public long FromLsn { get; init; }

Property Value

long

Gaps

The gaps overlapping it.

public IReadOnlyList<BackupArchiveGap> Gaps { get; init; }

Property Value

IReadOnlyList<BackupArchiveGap>

Samples

The time samples inside it.

public IReadOnlyList<BackupTimeSample> Samples { get; init; }

Property Value

IReadOnlyList<BackupTimeSample>

Segments

The segments overlapping it.

public IReadOnlyList<BackupArchivedSegment> Segments { get; init; }

Property Value

IReadOnlyList<BackupArchivedSegment>

TimelineId

The timeline read.

public Guid TimelineId { get; init; }

Property Value

Guid

ToLsn

The range's last LSN.

public long ToLsn { get; init; }

Property Value

long

Truncated

Whether the limit stopped the frame list.

public bool Truncated { get; init; }

Property Value

bool

Methods

Deconstruct(out Guid, out long, out long, out IReadOnlyList<BackupArchivedSegment>, out IReadOnlyList<BackupArchiveGap>, out IReadOnlyList<BackupTimeSample>, out IReadOnlyList<BackupLogFrame>, out bool)

public void Deconstruct(out Guid TimelineId, out long FromLsn, out long ToLsn, out IReadOnlyList<BackupArchivedSegment> Segments, out IReadOnlyList<BackupArchiveGap> Gaps, out IReadOnlyList<BackupTimeSample> Samples, out IReadOnlyList<BackupLogFrame> Frames, out bool Truncated)

Parameters

TimelineId Guid
FromLsn long
ToLsn long
Segments IReadOnlyList<BackupArchivedSegment>
Gaps IReadOnlyList<BackupArchiveGap>
Samples IReadOnlyList<BackupTimeSample>
Frames IReadOnlyList<BackupLogFrame>
Truncated bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(BackupArchiveLog?)

public bool Equals(BackupArchiveLog? other)

Parameters

other BackupArchiveLog

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(BackupArchiveLog?, BackupArchiveLog?)

public static bool operator ==(BackupArchiveLog? left, BackupArchiveLog? right)

Parameters

left BackupArchiveLog
right BackupArchiveLog

Returns

bool

operator !=(BackupArchiveLog?, BackupArchiveLog?)

public static bool operator !=(BackupArchiveLog? left, BackupArchiveLog? right)

Parameters

left BackupArchiveLog
right BackupArchiveLog

Returns

bool