MCPcopy
hub / github.com/NVIDIA/aistore / GetNode

Method GetNode

cluster/map.go:382–387  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

380}
381
382func (m *Smap) GetNode(id string) *Snode {
383 if node := m.GetTarget(id); node != nil {
384 return node
385 }
386 return m.GetProxy(id)
387}
388
389func (m *Smap) GetRandTarget() (tsi *Snode, err error) {
390 for _, tsi = range m.Tmap {

Callers 15

GetNodeNotMaintMethod · 0.95
PresentInMaintMethod · 0.95
removeNodeFromSmapFunction · 0.80
showNodeConfigFunction · 0.80
showDaemonLogHandlerFunction · 0.80
showClusterStatsHandlerFunction · 0.80
k8sShowSingleDaemonFunction · 0.80
fmtDaemonIDFunction · 0.80
receiveRMDMethod · 0.80
reverseHandlerMethod · 0.80
staffICMethod · 0.80

Calls 2

GetTargetMethod · 0.95
GetProxyMethod · 0.95

Tested by 2

killRestoreDiffIPFunction · 0.64
testNodeShutdownFunction · 0.64