|
Rosetta
|

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], MsgpackHmacSocketHandler] | get (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) |
Cache mutable dask worker logger handlers up to a maximum size, pruning least recently used (LRU) dask worker loggers first.
| None pyrosetta.distributed.cluster.logging_handlers.MultiSocketHandler.__init__ | ( | self, | |
| Union[str, int] | logging_level = logging.NOTSET, |
||
| int | maxsize = 128 |
||
| ) |
| None pyrosetta.distributed.cluster.logging_handlers.MultiSocketHandler.close | ( | self | ) |
Logging handler custom close method override.
References pyrosetta.distributed.cluster.logging_handlers.MultiSocketHandler.purge_all().
Referenced by pyrosetta.distributed.utility.log.LoggingContext.__exit__(), ez_setup.ContextualZipFile.__exit__(), PyMOL-Rosetta-relay-client.SecretInputDialog.__init__(), and PyMOL-Rosetta-relay-client.SecretInputDialog.start_server().
| None pyrosetta.distributed.cluster.logging_handlers.MultiSocketHandler.emit | ( | self, | |
| logging.LogRecord | record | ||
| ) |
Logging handler custom emit method override.
References pyrosetta.distributed.cluster.logging_handlers.HandlerMixin._locked(), SVC_Q.cache, ONE_CLASS_Q.cache, SVR_Q.cache, binder::Config.get(), ui::task::Updater.get(), utility::thread::SharedThreadLocalData< T >.get(), detail::locale_ref.get(), error_code.get(), buffered_file.get(), utility::pointer::DeepCopyOP< T >.get(), utility::io::icstream.get(), utility::io::izstream.get(), utility::io::irstream.get(), pseudoTrace.get(), pseudoTraceRecords.get(), SetOfClusters.get(), basic_format_args< format_context >.get(), basic_format_args< wformat_context >.get(), basic_format_args< Context >.get(), basic_format_args< basic_printf_context >.get(), basic_format_args< basic_format_context >.get(), utility::thread::MutableCache< K, V >.get(), pyrosetta.distributed.cluster.logging_handlers.MultiSocketHandler.get(), numeric::UniformRotationSampler.get(), numeric::AxisRotationSampler.get(), ObjexxFCL::Fstring.get, basic::datacache::DataCache< Data >.get(), basic::datacache::DataCache< CacheableData >.get(), basic::datacache::ConstDataMap.get(), basic::datacache::DataMap.get(), basic::datacache::HierarchicalDataMap.get(), utility::DenseBoolMap< NUM_ELEMS, BASE_INDEX >.get(), and pyrosetta.distributed.cluster.logging_filters.split_socket_address().
| Tuple[Tuple[str, int], MsgpackHmacSocketHandler] pyrosetta.distributed.cluster.logging_handlers.MultiSocketHandler.get | ( | self, | |
| str | host, | ||
| int | port | ||
| ) |
Set a key as most recently used, and return the key and value from the cache.
References pyrosetta.distributed.cluster.logging_handlers.HandlerMixin._locked(), SVC_Q.cache, ONE_CLASS_Q.cache, SVR_Q.cache, pyrosetta.distributed.cluster.logging_handlers.MultiSocketHandler.maybe_prune(), pyrosetta.distributed.cluster.logging_handlers.MultiSocketHandler.setup_handler(), and pyrosetta.distributed.cluster.logging_listeners.SocketListener.setup_handler().
Referenced by pyrosetta.distributed.cluster.logging_handlers.MultiSocketHandler.emit(), pyrosetta.distributed.cluster.logging_handlers.MultiSocketHandler.pop_masked_key(), and pyrosetta.distributed.cluster.logging_handlers.MultiSocketHandler.set_masked_key().
| None pyrosetta.distributed.cluster.logging_handlers.MultiSocketHandler.maybe_prune | ( | self | ) |
Prune the least recently used (LRU) items within the maximum size of the cache.
References pyrosetta.distributed.cluster.logging_handlers.HandlerMixin._locked(), SVC_Q.cache, ONE_CLASS_Q.cache, SVR_Q.cache, and ObjexxFCL.len().
Referenced by pyrosetta.distributed.cluster.logging_handlers.MultiSocketHandler.get().
| None pyrosetta.distributed.cluster.logging_handlers.MultiSocketHandler.pop_masked_key | ( | self, | |
| Tuple[str, int] | socket_listener_address, | ||
| str | task_id | ||
| ) |
Pop a masked key a handler cache.
References pyrosetta.distributed.cluster.logging_handlers.HandlerMixin._locked(), binder::Config.get(), ui::task::Updater.get(), utility::thread::SharedThreadLocalData< T >.get(), detail::locale_ref.get(), error_code.get(), buffered_file.get(), utility::pointer::DeepCopyOP< T >.get(), utility::io::icstream.get(), utility::io::izstream.get(), utility::io::irstream.get(), pseudoTrace.get(), pseudoTraceRecords.get(), SetOfClusters.get(), basic_format_args< wformat_context >.get(), basic_format_args< format_context >.get(), basic_format_args< Context >.get(), basic_format_args< basic_printf_context >.get(), basic_format_args< basic_format_context >.get(), utility::thread::MutableCache< K, V >.get(), pyrosetta.distributed.cluster.logging_handlers.MultiSocketHandler.get(), numeric::UniformRotationSampler.get(), numeric::AxisRotationSampler.get(), ObjexxFCL::Fstring.get, basic::datacache::DataCache< CacheableData >.get(), basic::datacache::DataCache< Data >.get(), basic::datacache::ConstDataMap.get(), basic::datacache::DataMap.get(), basic::datacache::HierarchicalDataMap.get(), and utility::DenseBoolMap< NUM_ELEMS, BASE_INDEX >.get().
| None pyrosetta.distributed.cluster.logging_handlers.MultiSocketHandler.purge_address | ( | self, | |
| Tuple[str, int] | key | ||
| ) |
Close and remove an item from the cache.
References pyrosetta.distributed.cluster.logging_handlers.HandlerMixin._locked(), SVC_Q.cache, ONE_CLASS_Q.cache, and SVR_Q.cache.
| None pyrosetta.distributed.cluster.logging_handlers.MultiSocketHandler.purge_all | ( | self | ) |
Close and remove all items from the cache.
References SVC_Q.cache, ONE_CLASS_Q.cache, SVR_Q.cache, and test.T040_Types.values.
Referenced by pyrosetta.distributed.cluster.logging_handlers.MultiSocketHandler.close().
| None pyrosetta.distributed.cluster.logging_handlers.MultiSocketHandler.set_masked_key | ( | self, | |
| Tuple[str, int] | socket_listener_address, | ||
| str | task_id, | ||
| bytes | masked_key | ||
| ) |
Set a masked key to handler cache.
References pyrosetta.distributed.cluster.logging_handlers.HandlerMixin._locked(), binder::Config.get(), ui::task::Updater.get(), utility::thread::SharedThreadLocalData< T >.get(), detail::locale_ref.get(), error_code.get(), buffered_file.get(), utility::pointer::DeepCopyOP< T >.get(), utility::io::icstream.get(), utility::io::izstream.get(), utility::io::irstream.get(), pseudoTrace.get(), pseudoTraceRecords.get(), SetOfClusters.get(), basic_format_args< wformat_context >.get(), basic_format_args< format_context >.get(), basic_format_args< Context >.get(), basic_format_args< basic_printf_context >.get(), basic_format_args< basic_format_context >.get(), utility::thread::MutableCache< K, V >.get(), pyrosetta.distributed.cluster.logging_handlers.MultiSocketHandler.get(), numeric::UniformRotationSampler.get(), numeric::AxisRotationSampler.get(), ObjexxFCL::Fstring.get, basic::datacache::DataCache< CacheableData >.get(), basic::datacache::DataCache< Data >.get(), basic::datacache::ConstDataMap.get(), basic::datacache::DataMap.get(), basic::datacache::HierarchicalDataMap.get(), and utility::DenseBoolMap< NUM_ELEMS, BASE_INDEX >.get().
| MsgpackHmacSocketHandler pyrosetta.distributed.cluster.logging_handlers.MultiSocketHandler.setup_handler | ( | self, | |
| str | host, | ||
| int | port | ||
| ) |
Setup a `MsgpackHmacSocketHandler` instance.
References pyrosetta.distributed.cluster.core.PyRosettaCluster.logging_level.
Referenced by pyrosetta.distributed.cluster.logging_handlers.MultiSocketHandler.get().