Table of Contents

Class BackupArchivedSegment

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

One archived WAL segment.

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

Constructors

BackupArchivedSegment(long, long, long, DateTime?, DateTime, long, long, BackupArchivedSegmentFlags, bool)

One archived WAL segment.

public BackupArchivedSegment(long SegmentId, long FirstLsn, long LastLsn, DateTime? SealedUtc, DateTime ArchivedUtc, long Bytes, long RawBytes, BackupArchivedSegmentFlags Flags, bool SessionStart)

Parameters

SegmentId long

Its id.

FirstLsn long

Its first LSN.

LastLsn long

The archive's end once it is in: its last LSN, or its last record's when that lies further.

SealedUtc DateTime?

When the engine sealed it; null when not recorded (a segment adopted at an open).

ArchivedUtc DateTime

When it was archived.

Bytes long

Its file's bytes.

RawBytes long

The WAL bytes it holds.

Flags BackupArchivedSegmentFlags

What else is known of it.

SessionStart bool

The first segment of an engine session.

Properties

ArchivedUtc

When it was archived.

public DateTime ArchivedUtc { get; init; }

Property Value

DateTime

Bytes

Its file's bytes.

public long Bytes { get; init; }

Property Value

long

FirstLsn

Its first LSN.

public long FirstLsn { get; init; }

Property Value

long

Flags

What else is known of it.

public BackupArchivedSegmentFlags Flags { get; init; }

Property Value

BackupArchivedSegmentFlags

LastLsn

The archive's end once it is in: its last LSN, or its last record's when that lies further.

public long LastLsn { get; init; }

Property Value

long

RawBytes

The WAL bytes it holds.

public long RawBytes { get; init; }

Property Value

long

SealedUtc

When the engine sealed it; null when not recorded (a segment adopted at an open).

public DateTime? SealedUtc { get; init; }

Property Value

DateTime?

SegmentId

Its id.

public long SegmentId { get; init; }

Property Value

long

SessionStart

The first segment of an engine session.

public bool SessionStart { get; init; }

Property Value

bool

Methods

Deconstruct(out long, out long, out long, out DateTime?, out DateTime, out long, out long, out BackupArchivedSegmentFlags, out bool)

public void Deconstruct(out long SegmentId, out long FirstLsn, out long LastLsn, out DateTime? SealedUtc, out DateTime ArchivedUtc, out long Bytes, out long RawBytes, out BackupArchivedSegmentFlags Flags, out bool SessionStart)

Parameters

SegmentId long
FirstLsn long
LastLsn long
SealedUtc DateTime?
ArchivedUtc DateTime
Bytes long
RawBytes long
Flags BackupArchivedSegmentFlags
SessionStart bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(BackupArchivedSegment?)

public bool Equals(BackupArchivedSegment? other)

Parameters

other BackupArchivedSegment

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(BackupArchivedSegment?, BackupArchivedSegment?)

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

Parameters

left BackupArchivedSegment
right BackupArchivedSegment

Returns

bool

operator !=(BackupArchivedSegment?, BackupArchivedSegment?)

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

Parameters

left BackupArchivedSegment
right BackupArchivedSegment

Returns

bool