public class TcpIgniteClient extends Object implements IgniteClient
IgniteClient over TCP protocol.| Modifier and Type | Method and Description |
|---|---|
IgniteBinary |
binary() |
<K,V> ClientCache<K,V> |
cache(String name)
Get existing cache.
|
Collection<String> |
cacheNames()
Gets the names of all available caches.
|
IgniteClientFuture<Collection<String>> |
cacheNamesAsync()
Gets the names of all available caches.
|
void |
close() |
ClientCluster |
cluster()
Gets client cluster facade.
|
ClientCompute |
compute()
Gets compute facade over all cluster nodes started in server mode.
|
ClientCompute |
compute(ClientClusterGroup grp)
Gets compute facade over the specified cluster group.
|
<K,V> ClientCache<K,V> |
createCache(ClientCacheConfiguration cfg)
Creates a cache with the specified configuration.
|
<K,V> ClientCache<K,V> |
createCache(String name)
Creates a cache with a default configuration.
|
<K,V> IgniteClientFuture<ClientCache<K,V>> |
createCacheAsync(ClientCacheConfiguration cfg)
Creates a cache with the specified configuration.
|
<K,V> IgniteClientFuture<ClientCache<K,V>> |
createCacheAsync(String name)
Creates a cache with a default configuration.
|
void |
destroyCache(String name)
Destroys the cache with the given name.
|
IgniteClientFuture<Void> |
destroyCacheAsync(String name)
Destroys the cache with the given name.
|
<K,V> ClientCache<K,V> |
getOrCreateCache(ClientCacheConfiguration cfg)
Gets the existing cache or creates a new cache if it does not exist.
|
<K,V> ClientCache<K,V> |
getOrCreateCache(String name)
Gets the existing cache or creates a new cache with default configuration if it does not exist.
|
<K,V> IgniteClientFuture<ClientCache<K,V>> |
getOrCreateCacheAsync(ClientCacheConfiguration cfg)
Gets the existing cache or creates a new cache if it does not exist.
|
<K,V> IgniteClientFuture<ClientCache<K,V>> |
getOrCreateCacheAsync(String name)
Gets the existing cache or creates a new cache with default configuration if it does not exist.
|
FieldsQueryCursor<List<?>> |
query(SqlFieldsQuery qry)
Execute SQL query and get cursor to iterate over results.
|
ClientServices |
services()
Gets
services facade over all cluster nodes started in server mode. |
ClientServices |
services(ClientClusterGroup grp)
Gets
services facade over nodes within the cluster group. |
static IgniteClient |
start(ClientConfiguration cfg)
Initializes new instance of
IgniteClient. |
ClientTransactions |
transactions()
Gets client transactions facade.
|
public void close()
throws Exception
close in interface AutoCloseableExceptionpublic <K,V> ClientCache<K,V> getOrCreateCache(String name) throws ClientException
getOrCreateCache in interface IgniteClientname - Cache name.ClientExceptionpublic <K,V> IgniteClientFuture<ClientCache<K,V>> getOrCreateCacheAsync(String name) throws ClientException
getOrCreateCacheAsync in interface IgniteClientname - Cache name.ClientExceptionpublic <K,V> ClientCache<K,V> getOrCreateCache(ClientCacheConfiguration cfg) throws ClientException
getOrCreateCache in interface IgniteClientcfg - Cache configuration. If the cache exists, this configuration is ignored.ClientExceptionpublic <K,V> IgniteClientFuture<ClientCache<K,V>> getOrCreateCacheAsync(ClientCacheConfiguration cfg) throws ClientException
getOrCreateCacheAsync in interface IgniteClientcfg - Cache configuration. If the cache exists, this configuration is ignored.ClientExceptionpublic <K,V> ClientCache<K,V> cache(String name)
cache in interface IgniteClientname - Cache name.public Collection<String> cacheNames() throws ClientException
cacheNames in interface IgniteClientClientExceptionpublic IgniteClientFuture<Collection<String>> cacheNamesAsync() throws ClientException
cacheNamesAsync in interface IgniteClientClientExceptionpublic void destroyCache(String name) throws ClientException
ClientException if the cache does not exist.destroyCache in interface IgniteClientClientExceptionpublic IgniteClientFuture<Void> destroyCacheAsync(String name) throws ClientException
ClientException if the cache does not exist.destroyCacheAsync in interface IgniteClientClientExceptionpublic <K,V> ClientCache<K,V> createCache(String name) throws ClientException
createCache in interface IgniteClientname - Cache name.ClientExceptionpublic <K,V> IgniteClientFuture<ClientCache<K,V>> createCacheAsync(String name) throws ClientException
createCacheAsync in interface IgniteClientname - Cache name.ClientExceptionpublic <K,V> ClientCache<K,V> createCache(ClientCacheConfiguration cfg) throws ClientException
createCache in interface IgniteClientcfg - Cache configuration.ClientExceptionpublic <K,V> IgniteClientFuture<ClientCache<K,V>> createCacheAsync(ClientCacheConfiguration cfg) throws ClientException
createCacheAsync in interface IgniteClientcfg - Cache configuration.ClientExceptionpublic IgniteBinary binary()
binary in interface IgniteClientIgniteBinary interface.public FieldsQueryCursor<List<?>> query(SqlFieldsQuery qry)
query in interface IgniteClientqry - SQL query.public ClientTransactions transactions()
transactions in interface IgniteClientpublic ClientCompute compute()
compute in interface IgniteClientpublic ClientCompute compute(ClientClusterGroup grp)
ClientCompute instance will only include nodes from
this cluster group.compute in interface IgniteClientgrp - Cluster group.public ClientCluster cluster()
cluster in interface IgniteClientpublic ClientServices services()
services facade over all cluster nodes started in server mode.services in interface IgniteClientpublic ClientServices services(ClientClusterGroup grp)
services facade over nodes within the cluster group. All operations
on the returned ClientServices instance will only include nodes from
the specified cluster group.
Note: In some cases there will be additional requests for each service invocation from client to server
to resolve cluster group.services in interface IgniteClientgrp - Cluster group.Services functionality over given cluster group.public static IgniteClient start(ClientConfiguration cfg) throws ClientException
IgniteClient.cfg - Thin client configuration.ClientException
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021