Class IgniteClientDelegate
java.lang.Object
org.gridgain.ignite.migrationtools.adapter.internal.ignite2.proxies.IgniteClientDelegate
- All Implemented Interfaces:
AutoCloseable,org.apache.ignite.client.IgniteClient
Static delegate that exposes an
IgniteClientProxy as IgniteClient.
The cacheConfigConverter function converts ClientCacheConfiguration (Ignite 2 thin-client API)
to CacheConfiguration (Ignite 2 full API) as expected by the adapter implementation.
It is looked up once at construction time via the guest classloader.
-
Constructor Summary
ConstructorsConstructorDescriptionIgniteClientDelegate(org.gridgain.ignite.migrationtools.adapter.internal.ignite2.proxies.client.IgniteClientProxy target, Function<org.apache.ignite.client.ClientCacheConfiguration, org.apache.ignite.configuration.CacheConfiguration<?, ?>> cacheConfigConverter) Creates a delegate wrapping the given proxy and using the given converter for cache configuration. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.ignite.client.ClientAtomicLongatomicLong(String name, long initVal, boolean create) org.apache.ignite.client.ClientAtomicLongatomicLong(String name, org.apache.ignite.client.ClientAtomicConfiguration cfg, long initVal, boolean create) org.apache.ignite.client.ClientAtomicSequenceatomicSequence(String name, long initVal, boolean create) org.apache.ignite.client.ClientAtomicSequenceatomicSequence(String name, org.apache.ignite.client.ClientAtomicConfiguration cfg, long initVal, boolean create) org.apache.ignite.IgniteBinarybinary()<K,V> org.apache.ignite.client.ClientCache<K, V> org.apache.ignite.client.IgniteClientFuture<Collection<String>>voidclose()org.apache.ignite.client.ClientClustercluster()org.apache.ignite.client.ClientComputecompute()org.apache.ignite.client.ClientComputecompute(org.apache.ignite.client.ClientClusterGroup grp) <K,V> org.apache.ignite.client.ClientCache<K, V> createCache(String cacheName) <K,V> org.apache.ignite.client.ClientCache<K, V> createCache(org.apache.ignite.client.ClientCacheConfiguration cacheCfg) <K,V> org.apache.ignite.client.IgniteClientFuture<org.apache.ignite.client.ClientCache<K, V>> createCacheAsync(String cacheName) <K,V> org.apache.ignite.client.IgniteClientFuture<org.apache.ignite.client.ClientCache<K, V>> createCacheAsync(org.apache.ignite.client.ClientCacheConfiguration cacheCfg) voiddestroyCache(String cacheName) org.apache.ignite.client.IgniteClientFuture<Void>destroyCacheAsync(String cacheName) <K,V> org.apache.ignite.client.ClientCache<K, V> getOrCreateCache(String cacheName) <K,V> org.apache.ignite.client.ClientCache<K, V> getOrCreateCache(org.apache.ignite.client.ClientCacheConfiguration cacheCfg) <K,V> org.apache.ignite.client.IgniteClientFuture<org.apache.ignite.client.ClientCache<K, V>> getOrCreateCacheAsync(String cacheName) <K,V> org.apache.ignite.client.IgniteClientFuture<org.apache.ignite.client.ClientCache<K, V>> getOrCreateCacheAsync(org.apache.ignite.client.ClientCacheConfiguration cacheCfg) org.apache.ignite.cache.query.FieldsQueryCursor<List<?>>query(org.apache.ignite.cache.query.SqlFieldsQuery qry) org.apache.ignite.client.ClientServicesservices()org.apache.ignite.client.ClientServicesservices(org.apache.ignite.client.ClientClusterGroup grp) <T> org.apache.ignite.client.ClientIgniteSet<T>org.apache.ignite.client.ClientTransactions
-
Constructor Details
-
IgniteClientDelegate
public IgniteClientDelegate(org.gridgain.ignite.migrationtools.adapter.internal.ignite2.proxies.client.IgniteClientProxy target, Function<org.apache.ignite.client.ClientCacheConfiguration, org.apache.ignite.configuration.CacheConfiguration<?, ?>> cacheConfigConverter) Creates a delegate wrapping the given proxy and using the given converter for cache configuration.
-
-
Method Details
-
getOrCreateCache
public <K,V> org.apache.ignite.client.ClientCache<K,V> getOrCreateCache(String cacheName) throws org.apache.ignite.client.ClientException - Specified by:
getOrCreateCachein interfaceorg.apache.ignite.client.IgniteClient- Throws:
org.apache.ignite.client.ClientException
-
getOrCreateCache
public <K,V> org.apache.ignite.client.ClientCache<K,V> getOrCreateCache(org.apache.ignite.client.ClientCacheConfiguration cacheCfg) throws org.apache.ignite.client.ClientException - Specified by:
getOrCreateCachein interfaceorg.apache.ignite.client.IgniteClient- Throws:
org.apache.ignite.client.ClientException
-
getOrCreateCacheAsync
public <K,V> org.apache.ignite.client.IgniteClientFuture<org.apache.ignite.client.ClientCache<K,V>> getOrCreateCacheAsync(String cacheName) throws org.apache.ignite.client.ClientException - Specified by:
getOrCreateCacheAsyncin interfaceorg.apache.ignite.client.IgniteClient- Throws:
org.apache.ignite.client.ClientException
-
getOrCreateCacheAsync
public <K,V> org.apache.ignite.client.IgniteClientFuture<org.apache.ignite.client.ClientCache<K,V>> getOrCreateCacheAsync(org.apache.ignite.client.ClientCacheConfiguration cacheCfg) throws org.apache.ignite.client.ClientException - Specified by:
getOrCreateCacheAsyncin interfaceorg.apache.ignite.client.IgniteClient- Throws:
org.apache.ignite.client.ClientException
-
cache
- Specified by:
cachein interfaceorg.apache.ignite.client.IgniteClient
-
cacheNames
- Specified by:
cacheNamesin interfaceorg.apache.ignite.client.IgniteClient- Throws:
org.apache.ignite.client.ClientException
-
cacheNamesAsync
public org.apache.ignite.client.IgniteClientFuture<Collection<String>> cacheNamesAsync() throws org.apache.ignite.client.ClientException- Specified by:
cacheNamesAsyncin interfaceorg.apache.ignite.client.IgniteClient- Throws:
org.apache.ignite.client.ClientException
-
destroyCache
- Specified by:
destroyCachein interfaceorg.apache.ignite.client.IgniteClient- Throws:
org.apache.ignite.client.ClientException
-
destroyCacheAsync
public org.apache.ignite.client.IgniteClientFuture<Void> destroyCacheAsync(String cacheName) throws org.apache.ignite.client.ClientException - Specified by:
destroyCacheAsyncin interfaceorg.apache.ignite.client.IgniteClient- Throws:
org.apache.ignite.client.ClientException
-
createCache
public <K,V> org.apache.ignite.client.ClientCache<K,V> createCache(String cacheName) throws org.apache.ignite.client.ClientException - Specified by:
createCachein interfaceorg.apache.ignite.client.IgniteClient- Throws:
org.apache.ignite.client.ClientException
-
createCache
public <K,V> org.apache.ignite.client.ClientCache<K,V> createCache(org.apache.ignite.client.ClientCacheConfiguration cacheCfg) throws org.apache.ignite.client.ClientException - Specified by:
createCachein interfaceorg.apache.ignite.client.IgniteClient- Throws:
org.apache.ignite.client.ClientException
-
createCacheAsync
public <K,V> org.apache.ignite.client.IgniteClientFuture<org.apache.ignite.client.ClientCache<K,V>> createCacheAsync(String cacheName) throws org.apache.ignite.client.ClientException - Specified by:
createCacheAsyncin interfaceorg.apache.ignite.client.IgniteClient- Throws:
org.apache.ignite.client.ClientException
-
createCacheAsync
public <K,V> org.apache.ignite.client.IgniteClientFuture<org.apache.ignite.client.ClientCache<K,V>> createCacheAsync(org.apache.ignite.client.ClientCacheConfiguration cacheCfg) throws org.apache.ignite.client.ClientException - Specified by:
createCacheAsyncin interfaceorg.apache.ignite.client.IgniteClient- Throws:
org.apache.ignite.client.ClientException
-
binary
public org.apache.ignite.IgniteBinary binary()- Specified by:
binaryin interfaceorg.apache.ignite.client.IgniteClient
-
query
public org.apache.ignite.cache.query.FieldsQueryCursor<List<?>> query(org.apache.ignite.cache.query.SqlFieldsQuery qry) - Specified by:
queryin interfaceorg.apache.ignite.client.IgniteClient
-
transactions
public org.apache.ignite.client.ClientTransactions transactions()- Specified by:
transactionsin interfaceorg.apache.ignite.client.IgniteClient
-
compute
public org.apache.ignite.client.ClientCompute compute()- Specified by:
computein interfaceorg.apache.ignite.client.IgniteClient
-
compute
public org.apache.ignite.client.ClientCompute compute(org.apache.ignite.client.ClientClusterGroup grp) - Specified by:
computein interfaceorg.apache.ignite.client.IgniteClient
-
cluster
public org.apache.ignite.client.ClientCluster cluster()- Specified by:
clusterin interfaceorg.apache.ignite.client.IgniteClient
-
services
public org.apache.ignite.client.ClientServices services()- Specified by:
servicesin interfaceorg.apache.ignite.client.IgniteClient
-
services
public org.apache.ignite.client.ClientServices services(org.apache.ignite.client.ClientClusterGroup grp) - Specified by:
servicesin interfaceorg.apache.ignite.client.IgniteClient
-
atomicLong
public org.apache.ignite.client.ClientAtomicLong atomicLong(String name, long initVal, boolean create) - Specified by:
atomicLongin interfaceorg.apache.ignite.client.IgniteClient
-
atomicLong
public org.apache.ignite.client.ClientAtomicLong atomicLong(String name, org.apache.ignite.client.ClientAtomicConfiguration cfg, long initVal, boolean create) - Specified by:
atomicLongin interfaceorg.apache.ignite.client.IgniteClient
-
set
public <T> org.apache.ignite.client.ClientIgniteSet<T> set(String name, org.apache.ignite.client.ClientCollectionConfiguration cfg) - Specified by:
setin interfaceorg.apache.ignite.client.IgniteClient
-
atomicSequence
public org.apache.ignite.client.ClientAtomicSequence atomicSequence(String name, long initVal, boolean create) throws org.apache.ignite.IgniteException - Specified by:
atomicSequencein interfaceorg.apache.ignite.client.IgniteClient- Throws:
org.apache.ignite.IgniteException
-
atomicSequence
public org.apache.ignite.client.ClientAtomicSequence atomicSequence(String name, org.apache.ignite.client.ClientAtomicConfiguration cfg, long initVal, boolean create) throws org.apache.ignite.IgniteException - Specified by:
atomicSequencein interfaceorg.apache.ignite.client.IgniteClient- Throws:
org.apache.ignite.IgniteException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceorg.apache.ignite.client.IgniteClient
-