Builder class for constructing std::shared_ptr<ucxx::Endpoint> objects.
More...
#include <endpoint_builder.h>
Public Member Functions | |
| EndpointBuilder (std::shared_ptr< Worker > worker, std::string ipAddress, uint16_t port) | |
Constructor for EndpointBuilder from hostname and port. More... | |
| EndpointBuilder (std::shared_ptr< Listener > listener, ucp_conn_request_h connRequest) | |
Constructor for EndpointBuilder from a connection request. More... | |
| EndpointBuilder (std::shared_ptr< Worker > worker, std::shared_ptr< Address > address) | |
Constructor for EndpointBuilder from a worker address. More... | |
| ~EndpointBuilder () | |
EndpointBuilder destructor. | |
| EndpointBuilder (const EndpointBuilder &other) | |
| Copy constructor (deep-copies internal state). | |
| EndpointBuilder & | operator= (const EndpointBuilder &other) |
| Copy assignment operator (deep-copies internal state). | |
| EndpointBuilder (EndpointBuilder &&) noexcept | |
| Move constructor. | |
| EndpointBuilder & | operator= (EndpointBuilder &&) noexcept |
| Move assignment operator. | |
| operator std::shared_ptr< Endpoint > () | |
Implicit conversion operator to shared_ptr<Endpoint>. More... | |
| EndpointBuilder & | endpointErrorHandling (bool enable=true) |
| Configure endpoint error handling. More... | |
| std::shared_ptr< Endpoint > | build () |
Build and return the Endpoint. More... | |
Builder class for constructing std::shared_ptr<ucxx::Endpoint> objects.
This class implements the builder pattern for std::shared_ptr<ucxx::Endpoint>. Construction happens when build() is called or when the builder is implicitly converted to std::shared_ptr<Endpoint>.
| ucxx::EndpointBuilder::EndpointBuilder | ( | std::shared_ptr< Worker > | worker, |
| std::string | ipAddress, | ||
| uint16_t | port | ||
| ) |
Constructor for EndpointBuilder from hostname and port.
| [in] | worker | parent worker from which to create the endpoint. |
| [in] | ipAddress | hostname or IP address the listener is bound to. |
| [in] | port | port the listener is bound to. |
| ucxx::EndpointBuilder::EndpointBuilder | ( | std::shared_ptr< Listener > | listener, |
| ucp_conn_request_h | connRequest | ||
| ) |
Constructor for EndpointBuilder from a connection request.
| [in] | listener | listener from which to create the endpoint. |
| [in] | connRequest | connection request delivered by a listener callback. |
| ucxx::EndpointBuilder::EndpointBuilder | ( | std::shared_ptr< Worker > | worker, |
| std::shared_ptr< Address > | address | ||
| ) |
Constructor for EndpointBuilder from a worker address.
| [in] | worker | parent worker from which to create the endpoint. |
| [in] | address | address of the remote UCX worker. |
| std::shared_ptr<Endpoint> ucxx::EndpointBuilder::build | ( | ) |
Build and return the Endpoint.
Each call to build() creates a new Endpoint instance with the current parameters.
shared_ptr<ucxx::Endpoint> object. | EndpointBuilder& ucxx::EndpointBuilder::endpointErrorHandling | ( | bool | enable = true | ) |
Configure endpoint error handling.
| [in] | enable | whether endpoint error handling is enabled (default: true). |
| ucxx::EndpointBuilder::operator std::shared_ptr< Endpoint > | ( | ) |
Implicit conversion operator to shared_ptr<Endpoint>.
shared_ptr<ucxx::Endpoint> object.