|
| | DisciplineClient () |
| | Construct a new Discipline Client object.
|
| |
| void | ConnectChannel (const std::shared_ptr< grpc::ChannelInterface > &channel) |
| | Connect to a gRPC channel.
|
| |
| void | GetInfo () |
| | Get the discipline info.
|
| |
| void | SendStreamOptions () |
| | Send the stream options to the server.
|
| |
| void | SendOptions (const philote::DisciplineOptions &options) |
| | Send the discipline options to the server.
|
| |
| void | Setup () |
| | Setup the discipline.
|
| |
| void | GetVariableDefinitions () |
| | Get the variable definitions from the server.
|
| |
| void | GetPartialDefinitions () |
| | Get the partial definitions from the server.
|
| |
| std::vector< std::string > | GetVariableNames () |
| | Get the variable names.
|
| |
| VariableMetaData | GetVariableMeta (const std::string &name) |
| | Get the variable meta data.
|
| |
| std::vector< philote::PartialsMetaData > | GetPartialsMeta () |
| | Get the partials meta data.
|
| |
| void | SetStub (std::unique_ptr< philote::DisciplineService::StubInterface > stub) |
| | Set the stub.
|
| |
| const StreamOptions & | GetStreamOptions () const noexcept |
| | Get the stream options.
|
| |
| void | SetStreamOptions (const StreamOptions &options) |
| | Set the stream options.
|
| |
| const DisciplineProperties & | GetProperties () const noexcept |
| | Get the discipline properties.
|
| |
| void | SetProperties (const DisciplineProperties &props) |
| | Set the discipline properties.
|
| |
| const std::vector< VariableMetaData > & | GetVariableMetaAll () const noexcept |
| | Get the variable metadata.
|
| |
| void | SetVariableMeta (const std::vector< VariableMetaData > &meta) |
| | Set the variable metadata.
|
| |
| const std::vector< PartialsMetaData > & | GetPartialsMetaConst () const noexcept |
| | Get the partials metadata (const version)
|
| |
| void | SetPartialsMetaData (const std::vector< PartialsMetaData > &meta) |
| | Set the partials metadata.
|
| |
| void | SetRPCTimeout (std::chrono::milliseconds timeout) |
| | Set the RPC timeout for all client operations.
|
| |
| std::chrono::milliseconds | GetRPCTimeout () const noexcept |
| | Get the current RPC timeout.
|
| |
Client class for interacting with a discipline server.
- Note
- Thread Safety: This class is NOT thread-safe. Each thread should create its own DisciplineClient instance. Concurrent calls to methods on the same instance (e.g., ComputeFunction, GetInfo) will cause data races as they modify internal state. The underlying gRPC channel is thread-safe, so multiple client instances can safely share the same channel.