selinon.strategy module
Strategy for scheduling dispatcher - system state sampling.
-
class
selinon.strategy.
Strategy
(module=None, function=None, func_args=None)[source]
Bases: object
Sampling strategy for Dispatcher.
-
classmethod
from_dict
(strategy_dict, flow_name)[source]
Parse strategy entry.
Parameters: |
- strategy_dict – strategy entry in config to be parsed
- flow_name – name of the flow for which the strategy function should be used.
|