NVIDIA Holoscan SDK v3.5.0

Class ServiceWorkerEndpoint

Derived Type

class ServiceWorkerEndpoint

Interface for services that act as worker endpoints in distributed applications.

ServiceWorkerEndpoint defines the interface for services that participate as workers in a distributed application. Workers typically connect to a driver fragment to participate in distributed coordination.

Subclassed by holoscan::DistributedAppService

Public Functions

ServiceWorkerEndpoint() = default
virtual ~ServiceWorkerEndpoint() = default
virtual void worker_connect(std::string_view driver_ip) = 0

Connect the worker endpoint to the driver.

This method is called by the framework on worker fragments to establish a connection with the driver fragment. Implementations should connect to the driver and prepare to participate in distributed operations.

Parameters

driver_ip – The IP address of the driver fragment to connect to.

virtual void worker_disconnect() = 0

Disconnect the worker endpoint from the driver.

This method is called by the framework when the worker needs to disconnect from the driver. Implementations should clean up the connection and any associated resources.

Previous Class ServiceDriverEndpoint
Next Class DistributedAppService
© Copyright 2022-2025, NVIDIA. Last updated on Aug 1, 2025.