flip.nvflare.components.flip_server_event_handler ================================================= .. py:module:: flip.nvflare.components.flip_server_event_handler Classes ------- .. autoapisummary:: flip.nvflare.components.flip_server_event_handler.ServerEventHandler Module Contents --------------- .. py:class:: ServerEventHandler(model_id: str = '', validation_json_generator_id: str = 'json_generator', persist_and_cleanup_id: str = 'persist_and_cleanup', flip: flip.FLIP = FLIP()) Bases: :py:obj:`nvflare.apis.fl_component.FLComponent` ServerEventHandler is a generic component that handles system events triggered by nvflare or custom flip events. It executes logic inside its own event handler but may also call other component's event handlers directly to overcome the non-deterministic order in which nvflare handles events i.e handling ValidationJsonGenerator component events. :param model_id: :type model_id: string, not required :param validation_json_generator_id: :type validation_json_generator_id: string, not required :param persist_and_cleanup_id: :type persist_and_cleanup_id: string, not required :param flip: :type flip: object, not required :raises ValueError: when model ID is not a valid UUID .. py:attribute:: model_id :value: '' .. py:attribute:: validation_json_generator_id :value: 'json_generator' .. py:attribute:: validation_json_generator :value: None .. py:attribute:: persist_and_cleanup_id :value: 'persist_and_cleanup' .. py:attribute:: persist_and_cleanup :value: None .. py:attribute:: flip .. py:attribute:: fatal_error :value: False .. py:attribute:: final_status :value: None .. py:method:: handle_event(event_type: str, fl_ctx: nvflare.apis.fl_context.FLContext)