Table of Contents

Class DaemonCommandData

Namespace
FishMMO.Database.Data
Assembly
FishMMO-DB.dll

One instruction for a daemon.

public sealed class DaemonCommandData
Inheritance
DaemonCommandData
Inherited Members

Properties

AppName

Which supervised application, by name.

public string AppName { get; set; }

Property Value

string

ClaimedBy

Which daemon instance took it.

public string ClaimedBy { get; set; }

Property Value

string

ClaimedUtc

When a daemon took it, by the database clock.

public DateTime? ClaimedUtc { get; set; }

Property Value

DateTime?

CompletedUtc

When it finished, by the database clock.

public DateTime? CompletedUtc { get; set; }

Property Value

DateTime?

ExpiresInSeconds

Seconds left before ExpiresUtc, measured by the database clock in the statement that claimed this command. Null on a row that was not read by a claim.

public double? ExpiresInSeconds { get; set; }

Property Value

double?

Remarks

What a daemon judges expiry by, together with its own monotonic clock (DaemonCommandExpiry). It must never compare ExpiresUtc with its own wall clock: the stamp is the database's, so that comparison measured the skew between the two machines along with the time left, and a daemon five minutes ahead of the database refused every command it was given.

ExpiresUtc

After which it must not be executed, by the database clock.

public DateTime ExpiresUtc { get; set; }

Property Value

DateTime

HostName

Which host it is for.

public string HostName { get; set; }

Property Value

string

ID

Surrogate key.

public long ID { get; set; }

Property Value

long

Outcome

What happened, in words.

public string Outcome { get; set; }

Property Value

string

Reason

Why.

public string Reason { get; set; }

Property Value

string

RequestedBy

The operator account that asked.

public string RequestedBy { get; set; }

Property Value

string

RequestedUtc

When they asked, by the database clock.

public DateTime RequestedUtc { get; set; }

Property Value

DateTime

Succeeded

Whether it worked.

public bool? Succeeded { get; set; }

Property Value

bool?

Verb

Start, stop or restart.

public DaemonCommandVerb Verb { get; set; }

Property Value

DaemonCommandVerb