class type processor_hooks = object
.. end
method post_add_hook : socket_service -> unit
A user-supplied function that is called after the service has been
added to the controller
method post_rm_hook : socket_service -> unit
A user-supplied function that is called after the service has been
removed from the controller
method pre_start_hook : socket_service ->
controller -> container_id -> unit
A user-supplied function that is called before the container is
created and started. It is called from the process/thread of the
controller.
method post_start_hook : container -> unit
A user-supplied function that is called after the container is
created and started, but before the first service request arrives.
It is called from the process/thread of the
container.
method pre_finish_hook : container -> unit
A user-supplied function that is called just before the container is
terminated. It is called from the process/thread of the
container.
method post_finish_hook : socket_service ->
controller -> container_id -> unit
A user-supplied function that is called after the container is
terminated. It is called from the process/thread of the
controller.
method receive_message : container -> string -> string array -> unit
This function is called when a broadcast message is received.
The first string is the name of the message, and the array are
the arguments.
method receive_admin_message : container -> string -> string array -> unit
This function is called when a broadcast admin message is received.
The first string is the name of the message, and the array are
the arguments.
method shutdown : unit -> unit
A user-supplied function that is called when a shutdown notification
arrives.
method global_exception_handler : exn -> bool
This method is called when an uncaught exception would otherwise
terminate the container. It can return true
to indicate that
the container continues running.