holoscan::distributed::ServiceDriverEndpoint

Beta
View as Markdown

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

ServiceDriverEndpoint defines the interface for services that need to coordinate distributed operations from a driver fragment. The driver typically acts as a central coordinator for distributed services across multiple worker fragments.

#include <holoscan/distributed/fragment_service.hpp>

Constructors

ServiceDriverEndpoint

holoscan::distributed::ServiceDriverEndpoint::ServiceDriverEndpoint() = default

Destructor

~ServiceDriverEndpoint

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

Methods

driver_start

virtual void holoscan::distributed::ServiceDriverEndpoint::driver_start(
std::string_view driver_ip
)

Start the driver endpoint for distributed coordination.

This method is called by the framework on the driver fragment when the distributed application starts. Implementations should initialize any necessary resources for coordinating with worker fragments.

Parameters

driver_ip
std::string_view

The IP address of the driver fragment.

driver_shutdown

virtual void holoscan::distributed::ServiceDriverEndpoint::driver_shutdown()

Shutdown the driver endpoint.

This method is called by the framework when the distributed application is shutting down. Implementations should clean up resources and notify any connected workers of the shutdown.