Table of Contents

Class DaemonAppEntity

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

One application a daemon supervises, as it last reported it.

public class DaemonAppEntity
Inheritance
DaemonAppEntity
Inherited Members

Remarks

This row is a report, not a definition. What the name actually launches — the executable path, the arguments, the working directory — lives only in the daemon's configuration file on that host and is deliberately absent here. A database row that carried a path would make the database able to decide what runs on a game server, which is precisely the property the command queue is designed not to have.

The consequence is that this table cannot be used to add an application. A daemon reports what its own config already told it to supervise; an operator adding one edits that file.

Properties

Host

Navigation to the host.

public DaemonHostEntity Host { get; set; }

Property Value

DaemonHostEntity

HostID

The host supervising it.

public long HostID { get; set; }

Property Value

long

ID

Surrogate key.

public long ID { get; set; }

Property Value

long

LastReportedUtc

When the daemon last reported on it, by the database clock.

public DateTime LastReportedUtc { get; set; }

Property Value

DateTime

MaxRestartAttempts

How many it is allowed before giving up.

public int MaxRestartAttempts { get; set; }

Property Value

int

MonitoredPort

The port it is health-checked on.

public int MonitoredPort { get; set; }

Property Value

int

Name

The name from the daemon's configuration. Unique within a host.

public string Name { get; set; }

Property Value

string

ProcessID

The process id, when it is running.

public int? ProcessID { get; set; }

Property Value

int?

RestartAttempts

How many times the daemon has restarted it.

public int RestartAttempts { get; set; }

Property Value

int

Status

What the daemon last observed.

public DaemonAppStatus Status { get; set; }

Property Value

DaemonAppStatus