nvflare.app_opt.xgboost.histogram_based_v2.mock.mock_secure_client_runner module

class MockSecureClientRunner(sample_size=1000)[source]

Bases: AppRunner, FLComponent

is_stopped() -> (<class 'bool'>, <class 'int'>)[source]

Called to check whether the runner is already stopped.

Returns: whether the runner is stopped. If stopped, the exit code.

run(ctx: dict)[source]

Called to start the execution of app processing logic.

Parameters:

ctx – the contextual info to help the runner execution

Returns: None

stop()[source]

Called to stop the runner.

Returns:

encode_msg(msg: dict)[source]