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
Nullable!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", Host[], "unused") getServerLoads(Miniorm db, Host[] filterBy_)

Get all servers.

newServer
void newServer(Miniorm db, HostLoad a)

Update the data for a server.

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, Host[] hosts)
Undocumented in source. Be warned that the author may not have intended to support it.
syncCluster
void syncCluster(Miniorm db, Host[] cluster)

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

updateServer
void updateServer(Miniorm db, HostLoad a)

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)