![]() |
GridGain C++
|
#include <ignite_client.h>
Public Member Functions | |
IgniteClient () | |
Default constructor. | |
~IgniteClient () | |
Destructor. | |
template<typename K , typename V > | |
cache::CacheClient< K, V > | GetCache (const char *name) |
Get cache. More... | |
template<typename K , typename V > | |
cache::CacheClient< K, V > | GetOrCreateCache (const char *name) |
Get or create cache. More... | |
template<typename K , typename V > | |
cache::CacheClient< K, V > | CreateCache (const char *name) |
Create cache. More... | |
void | DestroyCache (const char *name) |
Destroy cache by name. More... | |
void | GetCacheNames (std::vector< std::string > &cacheNames) |
Get names of currently available caches or an empty collection if no caches are available. More... | |
transactions::ClientTransactions | ClientTransactions () |
Starts transactions. | |
compute::ComputeClient | GetCompute () |
Get client compute API. | |
Static Public Member Functions | |
static IgniteClient | Start (const IgniteClientConfiguration &cfg) |
Start client. More... | |
Ignite client class.
This is an entry point for Thin C++ Ignite client. Its main purpose is to establish connection to the remote server nodes.
This class is implemented as a reference to an implementation so copying of this class instance will only create another reference to the same underlying object. Underlying object will be released automatically once all the instances are destructed.
|
inline |
Create cache.
name | Cache name. |
void ignite::thin::IgniteClient::DestroyCache | ( | const char * | name | ) |
Destroy cache by name.
name | Cache name. |
|
inline |
Get cache.
name | Cache name. |
void ignite::thin::IgniteClient::GetCacheNames | ( | std::vector< std::string > & | cacheNames | ) |
Get names of currently available caches or an empty collection if no caches are available.
cacheNames | Cache names. Output parameter. |
|
inline |
Get or create cache.
name | Cache name. |
|
static |
Start client.
cfg | Client configuration. |
IgnitError | on inability to connect. |