Table of Contents

Class MaintenanceTargetEntity

Namespace
FishMMO.Database.Npgsql.Entities
Assembly
FishMMO-DB.dll

One server inside a maintenance window, with what was written to it and what has been seen of it since.

public class MaintenanceTargetEntity
Inheritance
MaintenanceTargetEntity
Inherited Members

Remarks

There is no foreign key to world_servers or scene_servers, and there must not be. A world server deletes its registration as it exits — that deletion is precisely how this row knows the shutdown worked — so a foreign key would either block the server from stopping or cascade away the record of the window that stopped it. The server id and the name are copied for the same reason.

The columns split into two groups, and keeping them apart is what makes this row readable: *_written_utc is what this operation did, and observed_* is what the server's row said the last time anybody looked. A disagreement between them is not a bug, it is the interesting case — somebody rescheduled the shutdown by hand, or the server never read it.

Properties

ID

Surrogate key of this target row, not of the server.

public long ID { get; set; }

Property Value

long

Kind

world or scene. The same vocabulary as the per-server routes.

public string Kind { get; set; }

Property Value

string

LockWrittenUtc

When the lock was written. The lock outlives the shutdown; see the data type.

public DateTime? LockWrittenUtc { get; set; }

Property Value

DateTime?

Note

What was concluded, and why, in words.

public string Note { get; set; }

Property Value

string

ObservedCharacterCount

Players on it at that moment. The drain, in one number.

public int ObservedCharacterCount { get; set; }

Property Value

int

ObservedLastPulseUtc

When it last pulsed. Null once its registration is gone.

public DateTime? ObservedLastPulseUtc { get; set; }

Property Value

DateTime?

ObservedLocked

Whether its row still said locked.

public bool ObservedLocked { get; set; }

Property Value

bool

ObservedRegistered

Whether its registration row still exists.

public bool ObservedRegistered { get; set; }

Property Value

bool

ObservedShutdownUtc

The deadline its row carried, which need not be the one written here.

public DateTime? ObservedShutdownUtc { get; set; }

Property Value

DateTime?

ObservedUtc

When this target's server row was last read.

public DateTime? ObservedUtc { get; set; }

Property Value

DateTime?

Operation

The window this belongs to.

public MaintenanceOperationEntity Operation { get; set; }

Property Value

MaintenanceOperationEntity

OperationID

The window this belongs to.

public long OperationID { get; set; }

Property Value

long

PulsingAtStart

Whether the server was pulsing when the window was planned.

public bool PulsingAtStart { get; set; }

Property Value

bool

ScheduledShutdownUtc

The deadline this operation wrote to the server's row.

public DateTime? ScheduledShutdownUtc { get; set; }

Property Value

DateTime?

ServerID

The server's primary key, within its tier. Not a foreign key; see the remarks.

public long ServerID { get; set; }

Property Value

long

ServerName

The server's name as it read when the window was planned.

public string ServerName { get; set; }

Property Value

string

ShutdownClearedUtc

When a cancellation cleared the deadline again. The lock stays set.

public DateTime? ShutdownClearedUtc { get; set; }

Property Value

DateTime?

ShutdownWrittenUtc

When the deadline was written to the server's row.

public DateTime? ShutdownWrittenUtc { get; set; }

Property Value

DateTime?

Remarks

Null means the write has not happened or did not succeed, which is a state this row is allowed to be in: the plan is committed before the servers are touched, so a panel that dies between the two leaves a visible half-written window rather than a locked shard nobody has a record of. The advance pass finishes the writing.

Status

Where this target has got to.

public MaintenanceStatus Status { get; set; }

Property Value

MaintenanceStatus