distssh.database

Members

Functions

clientBeat
void clientBeat(Miniorm db)
Undocumented in source. Be warned that the author may not have intended to support it.
daemonBeat
void daemonBeat(Miniorm db)
Undocumented in source. Be warned that the author may not have intended to support it.
getClientBeat
Duration getClientBeat(Miniorm db)
Undocumented in source. Be warned that the author may not have intended to support it.
getDaemonBeat
Duration getDaemonBeat(Miniorm db)

The heartbeat when daemon was last executed.

getLeastLoadedServer
Host[] getLeastLoadedServer(Miniorm db)
Undocumented in source. Be warned that the author may not have intended to support it.
getOldestServer
Nullable!Host getOldestServer(Miniorm db)
getServerLoads
Tuple!(HostLoad[], "online", HostLoad[], "unused") getServerLoads(Miniorm db, Host[] filterBy_, Duration timeout, Duration maxAge)

Get all servers.

newServer
void newServer(Miniorm db, HostLoad a)

Update the data for a server.

openDatabase
Miniorm openDatabase(Path dbFile)
Undocumented in source. Be warned that the author may not have intended to support it.
openDatabase
Miniorm openDatabase(string dbFile)
Undocumented in source. Be warned that the author may not have intended to support it.
purgeServers
void purgeServers(Miniorm db)
Undocumented in source. Be warned that the author may not have intended to support it.
removeUnusedServers
void removeUnusedServers(Miniorm db, Duration unused)

Those that haven't been used for unused seconds.

syncCluster
void syncCluster(Miniorm db, Host[] cluster)

Sync the hosts in the database with those that the client expect to exist.

updateLastUse
void updateLastUse(Miniorm db, Host[] cluster)
Undocumented in source. Be warned that the author may not have intended to support it.
updateServer
void updateServer(Miniorm db, HostLoad a, SysTime updateTime)

Update the data for a server.

Manifest constants

SchemaVersion
enum SchemaVersion;
Undocumented in source.

Structs

ClientBeat
struct ClientBeat

Clients beat each time they access the database.

DaemonBeat
struct DaemonBeat

The daemon beats ones per minute.

ServerTbl
struct ServerTbl
Undocumented in source.
VersionTbl
struct VersionTbl
Undocumented in source.

Variables

timeout
auto timeout;
Undocumented in source.

Meta

Authors

Joakim Brännström (joakim.brannstrom@gmx.com)