Rosetta
Public Member Functions | List of all members
pyrosetta.distributed.cluster.logging_handlers.MultiSocketHandler Class Reference
Inheritance diagram for pyrosetta.distributed.cluster.logging_handlers.MultiSocketHandler:
Inheritance graph
[legend]

Public Member Functions

None __init__ (self, Union[str, int] logging_level=logging.NOTSET, int maxsize=128)
 
None set_masked_key (self, Tuple[str, int] socket_listener_address, str task_id, bytes masked_key)
 
None pop_masked_key (self, Tuple[str, int] socket_listener_address, str task_id)
 
MsgpackHmacSocketHandler setup_handler (self, str host, int port)
 
Tuple[Tuple[str, int], MsgpackHmacSocketHandlerget (self, str host, int port)
 
None emit (self, logging.LogRecord record)
 
None maybe_prune (self)
 
None purge_address (self, Tuple[str, int] key)
 
None purge_all (self)
 
None close (self)
 

Additional Inherited Members

- Static Public Member Functions inherited from pyrosetta.distributed.cluster.logging_handlers.HandlerMixin
L lock (L func)
 

Detailed Description

Cache mutable dask worker logger handlers up to a maximum size, pruning least recently used (LRU)
dask worker loggers first.

Constructor & Destructor Documentation

◆ __init__()

None pyrosetta.distributed.cluster.logging_handlers.MultiSocketHandler.__init__ (   self,
Union[str, int]   logging_level = logging.NOTSET,
int   maxsize = 128 
)

Member Function Documentation

◆ close()

None pyrosetta.distributed.cluster.logging_handlers.MultiSocketHandler.close (   self)

◆ emit()

None pyrosetta.distributed.cluster.logging_handlers.MultiSocketHandler.emit (   self,
logging.LogRecord  record 
)

◆ get()

Tuple[Tuple[str, int], MsgpackHmacSocketHandler] pyrosetta.distributed.cluster.logging_handlers.MultiSocketHandler.get (   self,
str  host,
int  port 
)

◆ maybe_prune()

None pyrosetta.distributed.cluster.logging_handlers.MultiSocketHandler.maybe_prune (   self)

◆ pop_masked_key()

None pyrosetta.distributed.cluster.logging_handlers.MultiSocketHandler.pop_masked_key (   self,
Tuple[str, int]  socket_listener_address,
str  task_id 
)

◆ purge_address()

None pyrosetta.distributed.cluster.logging_handlers.MultiSocketHandler.purge_address (   self,
Tuple[str, int]  key 
)

◆ purge_all()

None pyrosetta.distributed.cluster.logging_handlers.MultiSocketHandler.purge_all (   self)

◆ set_masked_key()

None pyrosetta.distributed.cluster.logging_handlers.MultiSocketHandler.set_masked_key (   self,
Tuple[str, int]  socket_listener_address,
str  task_id,
bytes  masked_key 
)

◆ setup_handler()

MsgpackHmacSocketHandler pyrosetta.distributed.cluster.logging_handlers.MultiSocketHandler.setup_handler (   self,
str  host,
int  port 
)

The documentation for this class was generated from the following file: