mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 20:48:21 +00:00
Separate supervisor node config and status data structures
This commit is contained in:
parent
520c6e3ebf
commit
0ff99c3df8
6 changed files with 93 additions and 64 deletions
|
@ -28,7 +28,7 @@ event Supervisor::status_request(reqid: string, nodes: string)
|
|||
Broker::publish(topic, Supervisor::status_response, reqid, res);
|
||||
}
|
||||
|
||||
event Supervisor::create_request(reqid: string, node: Node)
|
||||
event Supervisor::create_request(reqid: string, node: NodeConfig)
|
||||
{
|
||||
local res = Supervisor::create(node);
|
||||
local topic = Supervisor::topic_prefix + fmt("/create_response/%s", reqid);
|
||||
|
@ -54,7 +54,7 @@ function Supervisor::status(nodes: string): Status
|
|||
return Supervisor::__status(nodes);
|
||||
}
|
||||
|
||||
function Supervisor::create(node: Node): string
|
||||
function Supervisor::create(node: NodeConfig): string
|
||||
{
|
||||
return Supervisor::__create(node);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue