#include <ignite_client.h>
◆ configuration()
Gets client configuration.
- Returns
- Configuration.
◆ get_cluster_nodes()
| std::vector< cluster_node > ignite::ignite_client::get_cluster_nodes |
( |
| ) |
|
|
nodiscard |
Gets the cluster nodes. NOTE: Temporary API to enable Compute until we have proper Cluster API.
- Returns
- The list of cluster nodes upon success.
◆ get_cluster_nodes_async()
| void ignite::ignite_client::get_cluster_nodes_async |
( |
ignite_callback< std::vector< cluster_node > > | callback | ) |
|
Gets the cluster nodes asynchronously. NOTE: Temporary API to enable Compute until we have proper Cluster API.
- Parameters
-
| callback | Callback called with the list of cluster nodes upon success. |
◆ get_compute()
| compute ignite::ignite_client::get_compute |
( |
| ) |
const |
|
nodiscardnoexcept |
Gets the Compute API.
- Returns
- Compute API.
◆ get_sql()
| sql ignite::ignite_client::get_sql |
( |
| ) |
const |
|
nodiscardnoexcept |
Gets the SQL API.
- Returns
- SQL API.
◆ get_tables()
| tables ignite::ignite_client::get_tables |
( |
| ) |
const |
|
nodiscardnoexcept |
Gets the table API.
- Returns
- Table API.
◆ get_transactions()
| transactions ignite::ignite_client::get_transactions |
( |
| ) |
const |
|
nodiscardnoexcept |
Gets the Transactions API.
- Returns
- Transactions API.
◆ start()
Starts a client synchronously.
- See also
- start_async for details.
- Parameters
-
| configuration | Client configuration. |
| timeout | Operation timeout. |
- Returns
- ignite_client instance.
◆ start_async()
Starts a client asynchronously.
Client tries to establish connection to every endpoint. At first, an endpoint is selected randomly. After that, round-robin is used to determine the next address to establish connection to.
System means are used to resolve endpoint IP addresses. If more than one IP address is returned, the client attempts to connect to them in random order.
Only one connection establishment can be in process at the same time.
Client considered connected to a cluster when there is at least one connection to any node of the cluster. Upon this event, a callback will be called with a usable ignite_client instance.
- Parameters
-
| configuration | Client configuration. |
| timeout | Operation timeout. |
| callback | Callback to be called once the operation is complete. |
The documentation for this class was generated from the following files: