Table of Contents

Class BackupStatusReport

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

What ReadStatus(string) found for a bundle or a store.

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

Constructors

BackupStatusReport(bool, int, string, string, bool, BackupStatus, BackupStoreStatus, BackupHealth, string)

What ReadStatus(string) found for a bundle or a store.

public BackupStatusReport(bool EngineLive, int Pid, string Machine, string StorePath, bool AcceptsRequests, BackupStatus Status, BackupStoreStatus Store, BackupHealth Health, string Reason)

Parameters

EngineLive bool

An engine runs on the bundle now (its status file is current).

Pid int

The process that wrote the status file; 0 for a store.

Machine string

Its machine; null for a store.

StorePath string

The store the bundle's engine backs up into, or the store asked about.

AcceptsRequests bool

A backup.request would be honoured now (a live engine that accepts requests).

Status BackupStatus

The engine's status, its health judged again now (a stopped engine's status degrades by itself); null for a store.

Store BackupStoreStatus

The store's own status from its packs, or null when it cannot be read.

Health BackupHealth

The verdict.

Reason string

Why, in one sentence.

Properties

AcceptsRequests

A backup.request would be honoured now (a live engine that accepts requests).

public bool AcceptsRequests { get; init; }

Property Value

bool

EngineLive

An engine runs on the bundle now (its status file is current).

public bool EngineLive { get; init; }

Property Value

bool

Health

The verdict.

public BackupHealth Health { get; init; }

Property Value

BackupHealth

Machine

Its machine; null for a store.

public string Machine { get; init; }

Property Value

string

Pid

The process that wrote the status file; 0 for a store.

public int Pid { get; init; }

Property Value

int

Reason

Why, in one sentence.

public string Reason { get; init; }

Property Value

string

Status

The engine's status, its health judged again now (a stopped engine's status degrades by itself); null for a store.

public BackupStatus Status { get; init; }

Property Value

BackupStatus

Store

The store's own status from its packs, or null when it cannot be read.

public BackupStoreStatus Store { get; init; }

Property Value

BackupStoreStatus

StorePath

The store the bundle's engine backs up into, or the store asked about.

public string StorePath { get; init; }

Property Value

string

Methods

Deconstruct(out bool, out int, out string, out string, out bool, out BackupStatus, out BackupStoreStatus, out BackupHealth, out string)

public void Deconstruct(out bool EngineLive, out int Pid, out string Machine, out string StorePath, out bool AcceptsRequests, out BackupStatus Status, out BackupStoreStatus Store, out BackupHealth Health, out string Reason)

Parameters

EngineLive bool
Pid int
Machine string
StorePath string
AcceptsRequests bool
Status BackupStatus
Store BackupStoreStatus
Health BackupHealth
Reason string

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(BackupStatusReport?)

public bool Equals(BackupStatusReport? other)

Parameters

other BackupStatusReport

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(BackupStatusReport?, BackupStatusReport?)

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

Parameters

left BackupStatusReport
right BackupStatusReport

Returns

bool

operator !=(BackupStatusReport?, BackupStatusReport?)

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

Parameters

left BackupStatusReport
right BackupStatusReport

Returns

bool