nvflare.client.cell.attach_rendezvous module
Shared-filesystem discovery for a CJ-owned Client API Attach listener.
- class AttachEndpointKey[source]
Bases:
object- ATTACH_ID = 'attach_id'
- CJ_FQCN = 'cj_fqcn'
- CONNECTION_SECURITY = 'connection_security'
- CONNECT_URL = 'connect_url'
- INSTANCE_ID = 'instance_id'
- SCHEMA_VERSION = 'schema_version'
- SITE_NAME = 'site_name'
- TRAINER_FQCN = 'trainer_fqcn'
- exception AttachEndpointOwnershipError[source]
Bases:
RuntimeErrorThe publisher’s process-held claim no longer matches its claim directory.
- class AttachEndpointPublisher(root_dir: str, site_name: str, attach_id: str)[source]
Bases:
objectOwn one attach-ID claim and publish a live listener endpoint within it.
- exception AttachRendezvousCancelled[source]
Bases:
RuntimeErrorA trainer stopped while waiting for a shared-file endpoint.
- attach_claim_dir(root_dir: str, site_name: str, attach_id: str) str[source]
Return the deterministic claim directory for one site/attach ID.
Validate a FileDriver listener as a concrete endpoint inside the configured trust root.