Traits§
- Last
Active Ts - Trait for types that have a last active timestamp.
Functions§
- accept_
ingest_ workload - Determines if a datanode is capable of accepting ingest workloads.
Returns
true
if the datanode’s workload types include ingest capability, or if the node is not of type [NodeWorkloads::Datanode]. - alive_
datanode - Returns the alive datanode peer.
- alive_
datanodes - Returns the alive datanodes.
- alive_
flownodes - Returns the alive flownodes.
- alive_
frontends - Returns the alive frontends.
- build_
active_ filter - Builds a filter closure that checks whether a
LastActiveTs
item is still within the specified active duration, relative to the current time provided by the givenSystemTimer
. - find_
datanode_ lease_ value - Returns the lease value of the given datanode id, if the datanode is not found, returns None.