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() |
void |
close() |
<K,V> ClientCache<K,V> |
createCache(ClientCacheConfiguration cfg)
Create cache.
|
<K,V> ClientCache<K,V> |
createCache(String name)
Create cache.
|
void |
destroyCache(String name)
Destroy cache.
|
<K,V> ClientCache<K,V> |
getOrCreateCache(ClientCacheConfiguration cfg)
Get existing cache or create the cache if it does not exist.
|
<K,V> ClientCache<K,V> |
getOrCreateCache(String name)
Get existing cache or create the cache if it does not exist.
|
FieldsQueryCursor<List<?>> |
query(SqlFieldsQuery qry)
Execute SQL query and get cursor to iterate over results.
|
static IgniteClient |
start(ClientConfiguration cfg)
Initializes new instance of
IgniteClient. |
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> ClientCache<K,V> getOrCreateCache(ClientCacheConfiguration cfg) throws ClientException
getOrCreateCache in interface IgniteClientcfg - Cache configuration.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 void destroyCache(String name) throws ClientException
destroyCache in interface IgniteClientClientExceptionpublic <K,V> ClientCache<K,V> createCache(String name) throws ClientException
createCache in interface IgniteClientname - Cache name.ClientExceptionpublic <K,V> ClientCache<K,V> createCache(ClientCacheConfiguration cfg) throws ClientException
createCache 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 static IgniteClient start(ClientConfiguration cfg) throws ClientException
IgniteClient.
Server connection will be lazily initialized when first required.
cfg - Thin client configuration.ClientException
Follow @ApacheIgnite
Ignite Fabric : ver. 2.6.0 Release Date : July 10 2018