Module monitor

This module provides a HTTP object class to inspect the Prolog threads, Prolog stack frames and Prolog variables of a Prolog instance.

The HTTP object supports GET dispatch and GET upgrade to web sockets. The web sockets are used to notify the HTTP client of state changes.

The following monitor predicates are provided:

initialized(O, S):
The predicate is called when the server S is initialized for object O.
destroyed(O, S):
The predicate is called when the server S is destroyed for object O.
dispatch(O, P, R, S):
The predicate succeeds in dispatching the request for object O, with path P, with request R and and the session S.
upgrade(O, P, R, S):
The predicate succeeds in upgrading the request for object O, with path P, with request R and the session S.

The following monitor Prolog flags are provided:

sys_monitor_config:
Legal values are -1 is no monitor, 0 is a dynamic monitor port and other values are stat-ic monitor ports. The default value is -1. The value can be changed.
sys_monitor_running:
Legal values are -1 is no monitor, 0 is a dynamic monitor port and other values are stat-ic monitor ports. The default value is -1. The value can be changed.
sys_monitor_logging:
Legal values are on and off. The default value is on. The value can be changed.

Kommentare