MCPcopy
hub / github.com/netdata/netdata / Stop

Method Stop

src/go/plugin/framework/dyncfg/handler.go:41–41  ·  view source on GitHub ↗

Stop stops all work and cleans up all component state for a config. Safe to call for non-running configs (all ops are no-ops).

(cfg C)

Source from the content-addressed store, hash-verified

39 // Stop stops all work and cleans up all component state for a config.
40 // Safe to call for non-running configs (all ops are no-ops).
41 Stop(cfg C)
42
43 // OnStatusChange is called after status transitions in enable/disable/update.
44 // Not called in CmdAdd or CmdRemove.

Callers 15

TestNagiosCollectorJobV2Function · 0.65
stopAndWaitForJobFunction · 0.65
flushWriteQueueMethod · 0.65
TestPersister_RunFunction · 0.65
TestManager_RunFunction · 0.65
stopTimersLockedMethod · 0.65
TestJob_StartFunction · 0.65
TestJob_MainLoop_PanicFunction · 0.65

Implementers 5

mockCallbackssrc/go/plugin/framework/dyncfg/handler
sdCallbackssrc/go/plugin/agent/discovery/sd/dyncf
collectorSeqTestCallbackssrc/go/plugin/agent/jobmgr/dyncfg_coll
collectorCallbackssrc/go/plugin/agent/jobmgr/dyncfg_coll
secretStoreCallbackssrc/go/plugin/agent/jobmgr/secretsctl/

Calls

no outgoing calls

Tested by 10

TestNagiosCollectorJobV2Function · 0.52
stopAndWaitForJobFunction · 0.52
TestPersister_RunFunction · 0.52
TestManager_RunFunction · 0.52
TestJob_StartFunction · 0.52
TestJob_MainLoop_PanicFunction · 0.52
TestTickerFunction · 0.52