2 Run the supervisor on the target for the public IP:
3 ---------------------------------------------------
7 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
8 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
9 inet 127.0.0.1/8 scope host lo
10 valid_lft forever preferred_lft forever
11 2: eth0: <BROADCAST,MULTICAST,DYNAMIC,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
12 link/ether ee:85:bb:23:a2:26 brd ff:ff:ff:ff:ff:ff
13 inet 192.168.0.34/24 brd 192.168.0.255 scope global eth0
14 valid_lft forever preferred_lft forever
16 # afs-supervisor 192.168.0.34:5555/supervisor
21 # afb-client-demo -H -d 192.168.0.34:5555/
23 It is an issue that supervisor provides a direct client.
24 This may change in some future to include HTTP websocket negociation and token exchange.
26 Commands that can be run:
27 -------------------------
31 send SIGHUP to daemons not recorded to make them connected
35 list the connected daemons
39 get the configuration of the daemon of pid X
43 get the active sessions and token of the daemon of pid X
45 - session-close {"pid":X, "uuid":UUID}
47 closes the sessions of uuid UUID for the daemon of pid X
49 - exit {"pid":X,"code":Y}
51 exit the daemon of pid X with optional code Y (default 0)
53 - debug-wait {"pid":X}
55 make the daemon of pid X wait for a signal SIGINT
57 - debug-break {"pid":X}
59 make the daemon of pid X self killing with SIGINT
61 - do {"pid":X,"api":A,"verb":V,"args":A}
63 execute the API/VERB(ARGS) for the daemon of pid X
65 usefull for (s/g)etting monitor info. ex: monitor/get({"apis":true})
67 bound to the current client session (to be checked: usurpation of session?)
69 - trace {"pid":X, ...}
71 like monitor/trace but not bound to session (in the future monitor/trace
72 will be bound to sessions)
74 allows to trace specific session or any session
76 actually events generated by tracing are named with the prefix
77 "$/" (that is the internal prefix of supervision in binders)
78 could change in future
80 the pid isn't returned in the event (not sure to want it but open...)
82 use "name" and "tag" feature of "trace" to discrimate events on the client side.
88 ON-REPLY-SUCCESS 1:discover:
93 ON-REPLY-SUCCESS 2:list:
100 "label":"User::App::nfc-binding",
107 "id":"homescreen-service-2017",
108 "label":"User::App::homescreen-service-2017",
115 "id":"homescreen-2017",
116 "label":"User::App::homescreen-2017",
123 "id":"agl-service-wifi",
124 "label":"User::App::agl-service-wifi",
131 "id":"windowmanager-service-2017",
132 "label":"User::App::windowmanager-service-2017",
139 "id":"agl-service-geoclue",
140 "label":"User::App::agl-service-geoclue",
147 "id":"persistence-binding",
148 "label":"User::App::persistence-binding",
155 "id":"agl-service-bluetooth",
156 "label":"User::App::agl-service-bluetooth",
163 "id":"agl-identity-service",
164 "label":"User::App::agl-identity-service",
171 "id":"agl-service-unicens",
172 "label":"User::App::agl-service-unicens",
187 ON-REPLY-SUCCESS 4:config:
189 "console":".\/AFB-console.out",
190 "rootdir":"\/var\/local\/lib\/afm\/applications\/windowmanager-service-2017\/0.1",
194 "workdir":"\/home\/0\/app-data\/windowmanager-service-2017",
197 "name":"afbd-windowmanager-service-2017@0.1",
211 "\/var\/local\/lib\/afm\/applications\/windowmanager-service-2017\/0.1\/lib\/windowmanager-service.so"
223 "cacheTimeout":100000,
225 "cntxTimeout":32000000,
240 sessions {"pid":4117}
241 ON-REPLY-SUCCESS 5:sessions:
246 "fa050ca1-80b4-41af-bf72-4a1a8e7ee5b6":{
252 do {"pid":4117,"api":"monitor","verb":"get","args":{"apis":true}}
253 ON-REPLY-SUCCESS 6:do:
259 "description":"monitoring of bindings and internals",
262 "x-binding-c-generator":{
276 "url":"ws:\/\/{host}:{port}\/api\/monitor",
277 "description":"The API server.",
280 "default":"localhost"
288 "$ref":"#\/components\/schemas\/afb-event"
296 "$ref":"#\/components\/schemas\/afb-reply-v1"
299 "$ref":"#\/components\/schemas\/afb-event-v1"
302 "title":"Generic response.",
363 "$ref":"#\/components\/schemas\/verbosity-map"
366 "$ref":"#\/components\/schemas\/verbosity-level"
374 "$ref":"#\/components\/schemas\/get-verbosity"
377 "$ref":"#\/components\/schemas\/get-apis"
385 "$ref":"#\/components\/schemas\/verbosity-map"
426 "patternProperties":{
428 "$ref":"#\/components\/schemas\/verbosity-level"
450 "$ref":"#\/components\/schemas\/trace-add-object"
454 "$ref":"#\/components\/schemas\/trace-add-any"
461 "$ref":"#\/components\/schemas\/trace-add-request"
464 "$ref":"#\/components\/schemas\/trace-add-object"
473 "description":"name of the generated event",
478 "description":"tag for grouping traces",
483 "description":"api for requests, daemons and services"
487 "description":"verb for requests"
491 "description":"uuid of session for requests"
495 "description":"pattern for events"
498 "$ref":"#\/components\/schemas\/trace-add-request"
501 "$ref":"#\/components\/schemas\/trace-add-daemon"
504 "$ref":"#\/components\/schemas\/trace-add-service"
507 "$ref":"#\/components\/schemas\/trace-add-event"
510 "$ref":"#\/components\/schemas\/trace-add-session"
513 "$ref":"#\/components\/schemas\/trace-add"
531 "trace-add-request":{
536 "$ref":"#\/components\/schemas\/trace-request-names"
540 "$ref":"#\/components\/schemas\/trace-request-names"
544 "trace-request-names":{
545 "title":"name of traceable items of requests",
575 "subcallsync_result",
589 "$ref":"#\/components\/schemas\/trace-daemon-names"
593 "$ref":"#\/components\/schemas\/trace-daemon-names"
597 "trace-daemon-names":{
598 "title":"name of traceable items of daemons",
603 "event_broadcast_after",
604 "event_broadcast_before",
612 "require_api_result",
614 "rootdir_open_locale",
619 "trace-add-service":{
624 "$ref":"#\/components\/schemas\/trace-service-names"
628 "$ref":"#\/components\/schemas\/trace-service-names"
632 "trace-service-names":{
633 "title":"name of traceable items of services",
652 "$ref":"#\/components\/schemas\/trace-event-names"
656 "$ref":"#\/components\/schemas\/trace-event-names"
660 "trace-event-names":{
661 "title":"name of traceable items of events",
676 "trace-add-session":{
681 "$ref":"#\/components\/schemas\/trace-session-names"
685 "$ref":"#\/components\/schemas\/trace-session-names"
689 "trace-session-names":{
690 "title":"name of traceable items for sessions",
752 "description":"Get monitoring data.",
763 "$ref":"#\/components\/schemas\/get-verbosity"
771 "$ref":"#\/components\/schemas\/get-apis"
777 "description":"A complex object array response",
779 "application\/json":{
781 "$ref":"#\/components\/schemas\/afb-reply"
790 "description":"Set monitoring actions.",
801 "$ref":"#\/components\/schemas\/set-verbosity"
807 "description":"A complex object array response",
809 "application\/json":{
811 "$ref":"#\/components\/schemas\/afb-reply"
820 "description":"Set monitoring actions.",
831 "$ref":"#\/components\/schemas\/trace-add"
839 "$ref":"#\/components\/schemas\/trace-drop"
845 "description":"A complex object array response",
847 "application\/json":{
849 "$ref":"#\/components\/schemas\/afb-reply"
858 "description":"describes the session.",
866 "name":"refresh-token",
875 "description":"A complex object array response",
877 "application\/json":{
879 "$ref":"#\/components\/schemas\/afb-reply"
892 "title":"windowmanager",
894 "description":"windowmanager"
901 "description":"requestsurface"
906 "\/requestsurfacexdg":{
910 "description":"requestsurfacexdg"
915 "\/activatesurface":{
919 "description":"activatesurface"
924 "\/deactivatesurface":{
928 "description":"deactivatesurface"
937 "description":"enddraw"
946 "description":"getdisplayinfo"
955 "description":"getareainfo"
964 "description":"wm_subscribe"
969 "\/list_drawing_names":{
973 "description":"list_drawing_names"
991 "description":"debug_status"
1000 "description":"debug_layers"
1005 "\/debug_surfaces":{
1009 "description":"debug_surfaces"
1014 "\/debug_terminate":{
1018 "description":"debug_terminate"
1029 trace { "pid": 4117, "add": { "request": "common" } }
1030 ON-EVENT-CREATE: [4:$/trace]
1031 ON-EVENT-SUBSCRIBE 15:trace: [4:$/trace]
1032 ON-REPLY-SUCCESS 15:trace:
1036 ON-EVENT-PUSH: [4:$/trace]
1038 "time":"30862.255651",
1047 "session":"fa050ca1-80b4-41af-bf72-4a1a8e7ee5b6"
1050 ON-EVENT-PUSH: [4:$/trace]
1052 "time":"30862.255788",
1061 "session":"fa050ca1-80b4-41af-bf72-4a1a8e7ee5b6"
1069 ON-EVENT-PUSH: [4:$/trace]
1071 "time":"30862.255871",
1080 "session":"fa050ca1-80b4-41af-bf72-4a1a8e7ee5b6"
1083 "result":"Some String",
1084 "info":"Ping Binder Daemon tag=pingSample count=1 query={ \"toto\": \"1\" }"
1087 ON-EVENT-PUSH: [4:$/trace]
1089 "time":"30862.255980",
1098 "session":"fa050ca1-80b4-41af-bf72-4a1a8e7ee5b6"