ClientBoot
Object Hierarchy:
Description:
public class ClientBoot : Object
Ensure
ollmfilesd
is running before
Client.connect on Unix.
The caller supplies every path; there is no default
~/.local/share/ollmchat
in this class.
Constructor args
pid and
socket are basenames within
data_dir; the
pid
and
socket properties hold the full paths used for probe, spawn, and
kill-and-respawn.
Parameter order after the three required strings: debug, then
pass_data_dir.
debug defaults to true because in-tree callers almost always want
ollmfilesd --debug
.
pass_data_dir defaults to false; only out-of-band vector test CLIs
set it true because standard and custom dirs share the same basename layout and spawn cannot infer
--data-dir=DIR
from paths alone.
Spawn argv: debug adds
--debug
;
pass_data_dir adds
--data-dir=data_dir
. Executable:
OLLM_OLLMFILESD
env when set (meson v2testing wrappers), else
ollmfilesd
on
PATH
; env selects the binary only and does not set debug or data-dir flags (see §5.5.4).
Production code constructs this only from Client.connect. Callers set paths on
Client — see §5.5.6 and §5.5.7.
Content:
Properties:
- public string data_dir { get; construct; }
- public bool debug { get; construct; }
- public uint grace { get; set; }
Pause after SIGTERM before respawn (milliseconds).
- public bool pass_data_dir { get; construct; }
- public string pid { get; construct; }
- public uint poll { get; set; }
Poll interval after spawn (milliseconds).
- public uint probe { get; set; }
Connect probe timeout (seconds).
- public string socket { get; construct; }
- public uint startup_wait { get; set; }
Max wait after each spawn (seconds).
Creation methods:
- public ClientBoot (string data_dir, string pid, string socket, bool debug = true, bool pass_data_dir = false)
Methods:
- public bool connectable ()
- public async void ensure_daemon () throws IOError
Block until
socket accepts a connection, spawning or kill-and-respawning ollmfilesd
when needed.
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref