Class Server

Nested Relationships

Nested Types

Class Documentation

class Server

Public Functions

Server()

Constructs a new Server object.

Server(Server const&) = delete

Copy constructor.

Server &operator=(const Server&) = delete

Copy assignment constructor.

Server(Server &&other) = default

Move constructor.

Server &operator=(Server &&other) = default

Move assignment constructor.

~Server()

Destructor.

void startHttp(uint16_t port) const

Start the HTTP server.

Parameters

port – port to use for the HTTP server

void stopHttp() const

Stop the HTTP server.

void startGrpc(uint16_t port) const

Start the gRPC server.

Parameters

port – port to use for the gRPC server

void stopGrpc() const

Stop the gRPC server.

Public Static Functions

static void setModelRepository(const std::filesystem::path &path)

Set the path to the model repository associated with this server.

Parameters

path – path to the model repository

static void enableRepositoryMonitoring(bool use_polling)

Turn on active monitoring of the model repository path for new files.

Parameters

use_polling – set to true to use polling to check the directory for new files, false to use events. Note that events may not work well on all platforms.

struct ServerImpl