|
Rosetta
|

Public Member Functions | |
| None | __init__ (self, str logging_address, str logging_file, str logging_level, Union[float, int] timeout, bool ignore_errors) |
| logging.FileHandler | setup_handler (self, str logging_file, str logging_level) |
| None | start (self) |
| None | stop (self) |
| None | serve_until_stopped (self) |
Public Attributes | |
| socket_listener_address | |
| handler | |
| passkey | |
| timeout | |
| ignore_errors | |
| max_packet_size | |
| abort | |
Static Public Attributes | |
| bool | allow_reuse_address = True |
Private Attributes | |
| _thread | |
TCP socket-based logging receiver modified from logging cookbook recipe: https://docs.python.org/3/howto/logging-cookbook.html#sending-and-receiving-logging-events-across-a-network
| None pyrosetta.distributed.cluster.logging_listeners.SocketListener.serve_until_stopped | ( | self | ) |
Run logging socket listener until aborted.
References job_manager.CommandRunner.abort(), pyrosetta.distributed.cluster.logging_listeners.SocketListener.abort, ui::network::Bowman.abort(), ui::network::BowmanThread.abort(), PyMOL-Rosetta-relay-client.PR_UDPServer.socket, PyMOL-RosettaServer.PR_UDPServer.socket, pyrosetta.network.rosetta_udp_to_tcp_bridge.PR_UDPServer.socket, pyrosetta.PyMOLRosettaServer.PR_UDPServer.socket, pyrosetta.distributed.cluster.core.PyRosettaCluster.timeout, pyrosetta.distributed.cluster.logging_listeners.SocketListener.timeout, and ui::network::B.timeout.
| logging.FileHandler pyrosetta.distributed.cluster.logging_listeners.SocketListener.setup_handler | ( | self, | |
| str | logging_file, | ||
| str | logging_level | ||
| ) |
Setup logging file handler for logging socket listener.
References join(), and pyrosetta.distributed.cluster.logging_listeners.SocketListener.socket_listener_address.
Referenced by pyrosetta.distributed.cluster.logging_handlers.MultiSocketHandler.get().
| None pyrosetta.distributed.cluster.logging_listeners.SocketListener.start | ( | self | ) |
Start logging socket listener.
References pyrosetta.distributed.cluster.logging_listeners.SocketListener._thread.
Referenced by pyrosetta.tests.distributed.test_gil.HeartBeat.__enter__(), and enumerate_junctions.Component.to_string().
| None pyrosetta.distributed.cluster.logging_listeners.SocketListener.stop | ( | self | ) |
Stop logging socket listener.
References pyrosetta.distributed.cluster.logging_listeners.SocketListener._thread, and join().
|
private |
| pyrosetta.distributed.cluster.logging_listeners.SocketListener.abort |
|
static |
| pyrosetta.distributed.cluster.logging_listeners.SocketListener.handler |
Referenced by pyrosetta.distributed.utility.log.LoggingContext.__exit__().
| pyrosetta.distributed.cluster.logging_listeners.SocketListener.ignore_errors |
Referenced by pyrosetta.distributed.cluster.core.PyRosettaCluster._run().
| pyrosetta.distributed.cluster.logging_listeners.SocketListener.max_packet_size |
| pyrosetta.distributed.cluster.logging_listeners.SocketListener.passkey |
| pyrosetta.distributed.cluster.logging_listeners.SocketListener.socket_listener_address |
| pyrosetta.distributed.cluster.logging_listeners.SocketListener.timeout |