ClientBoot
Object Hierarchy:
Description:
public class ClientBoot : Object
Ensure ollmfilesd is running when passed to Client.connect.
The caller supplies every path, or passes new ClientBoot() and lets
Client.connect copy empty fields from the client. There is no default ~/.local/share/ollmchat path in this class. Constructor args
pid and socket_name are basenames within
data_dir; the pid
and socket_path properties hold the full paths used for probe,
spawn, and kill-and-respawn.
Parameter order after the three strings: debug, then
pass_data_dir.
debug defaults to true because in-tree callers almost always want ollmfilesd
with --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 (build wrapper scripts), else ollmfilesd on PATH; env selects the binary only and does not set debug or data-
dir flags (see ยง5.5.4).
Callers construct this and pass it to Client.connect. A null boot means
connect-only (no spawn).
Content:
Properties:
- public string data_dir { get; set; }
- public bool debug { get; set; }
- public uint grace { get; set; }
Pause after SIGTERM before respawn (milliseconds).
- public bool pass_data_dir { get; set; }
- public string pid { get; set; }
- public uint poll { get; set; }
Poll interval after spawn (milliseconds).
- public uint probe { get; set; }
Connect probe timeout (seconds).
- public string socket_path { get; set; }
- public uint startup_wait { get; set; }
Max wait after each spawn (seconds).
Creation methods:
- public ClientBoot (string data_dir = "", string pid = "", string socket_name = "", bool debug = true, bool pass_data_dir = false)
Methods:
- public async SocketConnection connect () throws Error
- public bool connectable ()
- public async void ensure_daemon () throws IOError
Block until
socket_path 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