nvflare.private.fed.client.admin module

The FedAdmin to communicate with the Admin server.

class FedAdminAgent(client_name: str, cell: Cell, app_ctx)[source]

Bases: object

FedAdminAgent communicate with the FedAdminServer.

Init the FedAdminAgent.

Parameters:
  • client_name – client name

  • app_ctx – application context

  • cell – the Cell for communication

register_cell_cb()[source]
register_processor(processor: RequestProcessor)[source]

To register the RequestProcessor.

Parameters:

processor – RequestProcessor

class RequestProcessor[source]

Bases: object

The RequestProcessor is responsible for processing a request.

get_topics() [<class 'str'>][source]

Get topics that this processor will handle.

Returns: list of topics

process(req: Message, app_ctx) Message[source]

Called to process the specified request.

Parameters:
  • req – request message

  • app_ctx – application context

Returns: reply message