mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 02:58:20 +00:00
Move supervisor control events into SupervisorControl namespace
This commit is contained in:
parent
68b513a364
commit
bbdf5f8938
9 changed files with 166 additions and 140 deletions
|
@ -114,76 +114,4 @@ export {
|
|||
## It's an error to call this function from a process other than
|
||||
## a supervised one.
|
||||
global node: function(): NodeConfig;
|
||||
|
||||
## Send a request to a remote Supervisor process to create a node.
|
||||
##
|
||||
## reqid: an arbitrary string that will be directly echoed in the response
|
||||
##
|
||||
## node: the desired configuration for the new supervised node process.
|
||||
global Supervisor::create_request: event(reqid: string, node: NodeConfig);
|
||||
|
||||
## Handle a response from a Supervisor process that received
|
||||
## :zeek:see:`Supervisor::create_request`.
|
||||
##
|
||||
## reqid: an arbitrary string matching the value in the original request.
|
||||
##
|
||||
## result: the return value of the remote call to
|
||||
## :zeek:see:`Supervisor::create`.
|
||||
global Supervisor::create_response: event(reqid: string, result: string);
|
||||
|
||||
## Send a request to a remote Supervisor process to retrieve node status.
|
||||
##
|
||||
## reqid: an arbitrary string that will be directly echoed in the response
|
||||
##
|
||||
## node: the name of the node to get status of or empty string to mean "all
|
||||
## nodes".
|
||||
global Supervisor::status_request: event(reqid: string, node: string);
|
||||
|
||||
## Handle a response from a Supervisor process that received
|
||||
## :zeek:see:`Supervisor::status_request`.
|
||||
##
|
||||
## reqid: an arbitrary string matching the value in the original request.
|
||||
##
|
||||
## result: the return value of the remote call to
|
||||
## :zeek:see:`Supervisor::status`.
|
||||
global Supervisor::status_response: event(reqid: string, result: Status);
|
||||
|
||||
## Send a request to a remote Supervisor process to restart a node.
|
||||
##
|
||||
## reqid: an arbitrary string that will be directly echoed in the response
|
||||
##
|
||||
## node: the name of the node to restart or empty string to mean "all
|
||||
## nodes".
|
||||
global Supervisor::restart_request: event(reqid: string, node: string);
|
||||
|
||||
## Handle a response from a Supervisor process that received
|
||||
## :zeek:see:`Supervisor::restart_request`.
|
||||
##
|
||||
## reqid: an arbitrary string matching the value in the original request.
|
||||
##
|
||||
## result: the return value of the remote call to
|
||||
## :zeek:see:`Supervisor::restart`.
|
||||
global Supervisor::restart_response: event(reqid: string, result: bool);
|
||||
|
||||
## Send a request to a remote Supervisor process to destroy a node.
|
||||
##
|
||||
## reqid: an arbitrary string that will be directly echoed in the response
|
||||
##
|
||||
## node: the name of the node to destory or empty string to mean "all
|
||||
## nodes".
|
||||
global Supervisor::destroy_request: event(reqid: string, node: string);
|
||||
|
||||
## Handle a response from a Supervisor process that received
|
||||
## :zeek:see:`Supervisor::destroy_request`.
|
||||
##
|
||||
## reqid: an arbitrary string matching the value in the original request.
|
||||
##
|
||||
## result: the return value of the remote call to
|
||||
## :zeek:see:`Supervisor::destroy`.
|
||||
global Supervisor::destroy_response: event(reqid: string, result: bool);
|
||||
|
||||
## Send a request to a remote Supervisor to stop and shutdown its
|
||||
## process tree. There is no response to this message as the Supervisor
|
||||
## simply terminates on receipt.
|
||||
global Supervisor::stop_request: event();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue