xrootdlib.streams.XrdXrootdMon package¶
Stream of the XrdXrootdMon monitoring messages
This module presents a high-level stream representation of the XrdXrootdMon
struct primitives.
It provides two stream mechanisms of different complexity:
stream_packetsprovides an ordered stream of rawPacketmap_streamsprovides a stream offstat,redir,trace, andmap
-
class
stream_packets(*slave_args, **slave_kwargs)¶ Bases:
chainlet.genlink.GeneratorLinkProvide a stream of packets from a readable bytes buffer
Parameters: - packet_source – a bytes buffer providing serialised packet data
- sort_window – window size in which to sort packets by their assigned order
The
packet_sourcemay be any bytes buffer supportingreadoperations. This can be an open file, but also a socket or wrapped memory. While the buffer may be extended indefinitely, it should always contain complete packets.The
sort_windowis required to ensure ordering of the packet data. Since XRootD uses several packet buffers, concurrent packets may arrive in arbitrary order. To remove this ambiguity,sort_windowpackets are buffered and provided in order.Note that an ideal
sort_windowcorresponds to the number of out-of-order packets. It is not to the maximum difference in ordering of each packet.
-
map_streams¶ alias of
xrootdlib.streams.XrdXrootdMon.StreamMapper