holoscan::distributed::ServiceWorkerEndpoint

Beta
View as Markdown

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.

#include <holoscan/distributed/fragment_service.hpp>

Constructors

ServiceWorkerEndpoint

holoscan::distributed::ServiceWorkerEndpoint::ServiceWorkerEndpoint() = default

Destructor

~ServiceWorkerEndpoint

virtual holoscan::distributed::ServiceWorkerEndpoint::~ServiceWorkerEndpoint() = default

Methods

worker_connect

virtual void holoscan::distributed::ServiceWorkerEndpoint::worker_connect(
std::string_view driver_ip
)

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
std::string_view

The IP address of the driver fragment to connect to.

worker_disconnect

virtual void holoscan::distributed::ServiceWorkerEndpoint::worker_disconnect()

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.