Rosetta
Public Member Functions | Public Attributes | Static Public Attributes | Private Attributes | List of all members
pyrosetta.distributed.cluster.logging_listeners.SocketListener Class Reference
Inheritance diagram for pyrosetta.distributed.cluster.logging_listeners.SocketListener:
Inheritance graph
[legend]

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
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __init__()

None pyrosetta.distributed.cluster.logging_listeners.SocketListener.__init__ (   self,
str  logging_address,
str  logging_file,
str  logging_level,
Union[float, int]  timeout,
bool  ignore_errors 
)

Member Function Documentation

◆ serve_until_stopped()

None pyrosetta.distributed.cluster.logging_listeners.SocketListener.serve_until_stopped (   self)

◆ setup_handler()

logging.FileHandler pyrosetta.distributed.cluster.logging_listeners.SocketListener.setup_handler (   self,
str  logging_file,
str  logging_level 
)

◆ start()

None pyrosetta.distributed.cluster.logging_listeners.SocketListener.start (   self)

◆ stop()

None pyrosetta.distributed.cluster.logging_listeners.SocketListener.stop (   self)

Member Data Documentation

◆ _thread

pyrosetta.distributed.cluster.logging_listeners.SocketListener._thread
private

◆ abort

pyrosetta.distributed.cluster.logging_listeners.SocketListener.abort

◆ allow_reuse_address

bool pyrosetta.distributed.cluster.logging_listeners.SocketListener.allow_reuse_address = True
static

◆ handler

pyrosetta.distributed.cluster.logging_listeners.SocketListener.handler

◆ ignore_errors

pyrosetta.distributed.cluster.logging_listeners.SocketListener.ignore_errors

◆ max_packet_size

pyrosetta.distributed.cluster.logging_listeners.SocketListener.max_packet_size

◆ passkey

pyrosetta.distributed.cluster.logging_listeners.SocketListener.passkey

◆ socket_listener_address

pyrosetta.distributed.cluster.logging_listeners.SocketListener.socket_listener_address

◆ timeout

pyrosetta.distributed.cluster.logging_listeners.SocketListener.timeout

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