Facade for all possible network communications between client and server. Introduced to hide protocol implementation (TCP, HTTP) from client code.
Inherits GridGain::Client::Impl::IGridClientConnection.
Inherited by GridGain.Client.Impl.GridClientHttpConnection, and GridGain.Client.Impl.GridClientTcpConnection.
Public Member Functions | |
| abstract void | Close (bool waitCompletion) |
| Closes the connection. | |
| abstract bool | CloseIfIdle (TimeSpan timeout) |
| Closes connection facade if no requests are in progress. | |
| virtual IGridClientFuture < Boolean > | CachePut< TKey, TVal > (String cacheName, ISet< GridClientCacheFlag > cacheFlags, TKey key, TVal val, Guid destNodeId) |
| virtual IGridClientFuture< TVal > | CacheGet< TKey, TVal > (String cacheName, ISet< GridClientCacheFlag > cacheFlags, TKey key, Guid destNodeId) |
| abstract IGridClientFuture < Boolean > | CacheRemove< T > (String cacheName, ISet< GridClientCacheFlag > cacheFlags, T key, Guid destNodeId) |
| abstract IGridClientFuture < Boolean > | CachePutAll< TKey, TVal > (String cacheName, ISet< GridClientCacheFlag > cacheFlags, IDictionary< TKey, TVal > entries, Guid destNodeId) |
| abstract IGridClientFuture < IDictionary< TKey, TVal > > | CacheGetAll< TKey, TVal > (String cacheName, ISet< GridClientCacheFlag > cacheFlags, IEnumerable< TKey > keys, Guid destNodeId) |
| abstract IGridClientFuture < Boolean > | CacheRemoveAll< TKey > (String cacheName, ISet< GridClientCacheFlag > cacheFlags, IEnumerable< TKey > keys, Guid destNodeId) |
| abstract IGridClientFuture < Boolean > | CacheReplace< TKey, TVal > (String cacheName, ISet< GridClientCacheFlag > cacheFlags, TKey key, TVal val, Guid destNodeId) |
| abstract IGridClientFuture < Boolean > | CacheAppend< K, V > (String cacheName, ISet< GridClientCacheFlag > cacheFlags, K key, V val, Guid destNodeId) |
| abstract IGridClientFuture < Boolean > | CachePrepend< K, V > (String cacheName, ISet< GridClientCacheFlag > cacheFlags, K key, V val, Guid destNodeId) |
| abstract IGridClientFuture < Boolean > | CacheCompareAndSet< TKey, TVal > (String cacheName, ISet< GridClientCacheFlag > cacheFlags, TKey key, TVal val1, TVal val2, Guid destNodeId) |
| abstract IGridClientFuture < IGridClientDataMetrics > | CacheMetrics (String cacheName, ISet< GridClientCacheFlag > cacheFlags, Guid destNodeId) |
| abstract IGridClientFuture< T > | Execute< T > (String taskName, Object taskArg, Guid destNodeId) |
| abstract IGridClientFuture < IGridClientNode > | Node (Guid id, bool includeAttrs, bool includeMetrics, Guid destNodeId) |
| abstract IGridClientFuture < IGridClientNode > | Node (String ipAddr, bool includeAttrs, bool includeMetrics, Guid destNodeId) |
| abstract IGridClientFuture < IList< IGridClientNode > > | Topology (bool includeAttrs, bool includeMetrics, Guid destNodeId) |
| abstract IGridClientFuture < IList< String > > | Log (String path, int fromLine, int toLine, Guid destNodeId) |
Protected Member Functions | |
| GridClientConnectionAdapter (Guid clientId, IPEndPoint srvAddr, IGridClientSslContext sslCtx, Object credentials, GridClientTopology top) | |
| Creates a facade. | |
| int | encodeCacheFlags (ICollection< GridClientCacheFlag > flagSet) |
| Encodes cache flags to bit map. | |
| IGridClientDataMetrics | parseCacheMetrics (IDictionary< String, Object > data) |
| Convert the map representation of the cache metrics to an equivalent objects. | |
| IGridClientNodeMetrics | parseNodeMetrics (IDictionary< String, Object > data) |
| Convert the map representation of the node metrics to an equivalent objects. | |
| IDictionary< String, GridClientCacheMode > | parseCacheModes (IDictionary< String, String > rawCaches) |
| Convert the string representation of the cache mode names to an equivalent enumerated objects. | |
Static Protected Member Functions | |
| static Double | AsDouble (Object val) |
| Convert any object to double value. | |
| static long | asLong (Object val) |
| Convert any object to long value. | |
Protected Attributes | |
| readonly GridClientTopology | Top |
| Topology. | |
| readonly Guid | ClientId |
| Client id. | |
| readonly Object | Credentials |
| Client credentials. | |
| readonly IGridClientSslContext | SslCtx |
| SSL context to use if ssl is enabled. | |
Properties | |
| IPEndPoint | ServerAddress [get, set] |
| Server address this connection connected to. | |
| GridGain.Client.Impl.GridClientConnectionAdapter.GridClientConnectionAdapter | ( | Guid | clientId, | |
| IPEndPoint | srvAddr, | |||
| IGridClientSslContext | sslCtx, | |||
| Object | credentials, | |||
| GridClientTopology | top | |||
| ) | [protected] |
| clientId | Client identifier. | |
| srvAddr | Server address this connection connected to. | |
| sslCtx | SSL context to use if SSL is enabled, null otherwise. | |
| credentials | Authentication credentials | |
| top | Topology. |
| static Double GridGain.Client.Impl.GridClientConnectionAdapter.AsDouble | ( | Object | val | ) | [static, protected] |
| val | Json object to convert. |
| static long GridGain.Client.Impl.GridClientConnectionAdapter.asLong | ( | Object | val | ) | [static, protected] |
| val | Json object to convert. |
| abstract IGridClientFuture<Boolean> GridGain.Client.Impl.GridClientConnectionAdapter.CacheAppend< K, V > | ( | String | cacheName, | |
| ISet< GridClientCacheFlag > | cacheFlags, | |||
| K | key, | |||
| V | val, | |||
| Guid | destNodeId | |||
| ) | [pure virtual] |
<inheritdoc>
Implements GridGain.Client.Impl.IGridClientConnection.
Implemented in GridGain.Client.Impl.GridClientHttpConnection, and GridGain.Client.Impl.GridClientTcpConnection.
| abstract IGridClientFuture<Boolean> GridGain.Client.Impl.GridClientConnectionAdapter.CacheCompareAndSet< TKey, TVal > | ( | String | cacheName, | |
| ISet< GridClientCacheFlag > | cacheFlags, | |||
| TKey | key, | |||
| TVal | val1, | |||
| TVal | val2, | |||
| Guid | destNodeId | |||
| ) | [pure virtual] |
<inheritdoc>
| virtual IGridClientFuture<TVal> GridGain.Client.Impl.GridClientConnectionAdapter.CacheGet< TKey, TVal > | ( | String | cacheName, | |
| ISet< GridClientCacheFlag > | cacheFlags, | |||
| TKey | key, | |||
| Guid | destNodeId | |||
| ) | [virtual] |
<inheritdoc>
Reimplemented in GridGain.Client.Impl.GridClientHttpConnection.
| abstract IGridClientFuture<IDictionary<TKey, TVal> > GridGain.Client.Impl.GridClientConnectionAdapter.CacheGetAll< TKey, TVal > | ( | String | cacheName, | |
| ISet< GridClientCacheFlag > | cacheFlags, | |||
| IEnumerable< TKey > | keys, | |||
| Guid | destNodeId | |||
| ) | [pure virtual] |
<inheritdoc>
| abstract IGridClientFuture<IGridClientDataMetrics> GridGain.Client.Impl.GridClientConnectionAdapter.CacheMetrics | ( | String | cacheName, | |
| ISet< GridClientCacheFlag > | cacheFlags, | |||
| Guid | destNodeId | |||
| ) | [pure virtual] |
<inheritdoc>
Implements GridGain.Client.Impl.IGridClientConnection.
Implemented in GridGain.Client.Impl.GridClientHttpConnection, and GridGain.Client.Impl.GridClientTcpConnection.
| abstract IGridClientFuture<Boolean> GridGain.Client.Impl.GridClientConnectionAdapter.CachePrepend< K, V > | ( | String | cacheName, | |
| ISet< GridClientCacheFlag > | cacheFlags, | |||
| K | key, | |||
| V | val, | |||
| Guid | destNodeId | |||
| ) | [pure virtual] |
<inheritdoc>
Implements GridGain.Client.Impl.IGridClientConnection.
Implemented in GridGain.Client.Impl.GridClientHttpConnection, and GridGain.Client.Impl.GridClientTcpConnection.
| virtual IGridClientFuture<Boolean> GridGain.Client.Impl.GridClientConnectionAdapter.CachePut< TKey, TVal > | ( | String | cacheName, | |
| ISet< GridClientCacheFlag > | cacheFlags, | |||
| TKey | key, | |||
| TVal | val, | |||
| Guid | destNodeId | |||
| ) | [virtual] |
<inheritdoc>
Reimplemented in GridGain.Client.Impl.GridClientHttpConnection.
| abstract IGridClientFuture<Boolean> GridGain.Client.Impl.GridClientConnectionAdapter.CachePutAll< TKey, TVal > | ( | String | cacheName, | |
| ISet< GridClientCacheFlag > | cacheFlags, | |||
| IDictionary< TKey, TVal > | entries, | |||
| Guid | destNodeId | |||
| ) | [pure virtual] |
<inheritdoc>
Implemented in GridGain.Client.Impl.GridClientHttpConnection.
| abstract IGridClientFuture<Boolean> GridGain.Client.Impl.GridClientConnectionAdapter.CacheRemove< T > | ( | String | cacheName, | |
| ISet< GridClientCacheFlag > | cacheFlags, | |||
| T | key, | |||
| Guid | destNodeId | |||
| ) | [pure virtual] |
<inheritdoc>
| abstract IGridClientFuture<Boolean> GridGain.Client.Impl.GridClientConnectionAdapter.CacheRemoveAll< TKey > | ( | String | cacheName, | |
| ISet< GridClientCacheFlag > | cacheFlags, | |||
| IEnumerable< TKey > | keys, | |||
| Guid | destNodeId | |||
| ) | [pure virtual] |
<inheritdoc>
| abstract IGridClientFuture<Boolean> GridGain.Client.Impl.GridClientConnectionAdapter.CacheReplace< TKey, TVal > | ( | String | cacheName, | |
| ISet< GridClientCacheFlag > | cacheFlags, | |||
| TKey | key, | |||
| TVal | val, | |||
| Guid | destNodeId | |||
| ) | [pure virtual] |
<inheritdoc>
| abstract void GridGain.Client.Impl.GridClientConnectionAdapter.Close | ( | bool | waitCompletion | ) | [pure virtual] |
| waitCompletion | If true will wait for all pending requests to be proceeded. |
Implements GridGain.Client.Impl.IGridClientConnection.
Implemented in GridGain.Client.Impl.GridClientHttpConnection, and GridGain.Client.Impl.GridClientTcpConnection.
| abstract bool GridGain.Client.Impl.GridClientConnectionAdapter.CloseIfIdle | ( | TimeSpan | timeout | ) | [pure virtual] |
Idle timeout.
True if no requests were in progress and client was closed, True otherwise.
Implements GridGain.Client.Impl.IGridClientConnection.
Implemented in GridGain.Client.Impl.GridClientHttpConnection, and GridGain.Client.Impl.GridClientTcpConnection.
| int GridGain.Client.Impl.GridClientConnectionAdapter.encodeCacheFlags | ( | ICollection< GridClientCacheFlag > | flagSet | ) | [protected] |
| flagSet | Set of flags to be encoded. |
| abstract IGridClientFuture<T> GridGain.Client.Impl.GridClientConnectionAdapter.Execute< T > | ( | String | taskName, | |
| Object | taskArg, | |||
| Guid | destNodeId | |||
| ) | [pure virtual] |
<inheritdoc>
Implements GridGain.Client.Impl.IGridClientConnection.
Implemented in GridGain.Client.Impl.GridClientHttpConnection, and GridGain.Client.Impl.GridClientTcpConnection.
| abstract IGridClientFuture<IList<String> > GridGain.Client.Impl.GridClientConnectionAdapter.Log | ( | String | path, | |
| int | fromLine, | |||
| int | toLine, | |||
| Guid | destNodeId | |||
| ) | [pure virtual] |
<inheritdoc>
Implements GridGain.Client.Impl.IGridClientConnection.
Implemented in GridGain.Client.Impl.GridClientHttpConnection, and GridGain.Client.Impl.GridClientTcpConnection.
| abstract IGridClientFuture<IGridClientNode> GridGain.Client.Impl.GridClientConnectionAdapter.Node | ( | Guid | id, | |
| bool | includeAttrs, | |||
| bool | includeMetrics, | |||
| Guid | destNodeId | |||
| ) | [pure virtual] |
<inheritdoc>
Implements GridGain.Client.Impl.IGridClientConnection.
Implemented in GridGain.Client.Impl.GridClientHttpConnection, and GridGain.Client.Impl.GridClientTcpConnection.
| abstract IGridClientFuture<IGridClientNode> GridGain.Client.Impl.GridClientConnectionAdapter.Node | ( | String | ipAddr, | |
| bool | includeAttrs, | |||
| bool | includeMetrics, | |||
| Guid | destNodeId | |||
| ) | [pure virtual] |
<inheritdoc>
Implements GridGain.Client.Impl.IGridClientConnection.
Implemented in GridGain.Client.Impl.GridClientHttpConnection, and GridGain.Client.Impl.GridClientTcpConnection.
| IGridClientDataMetrics GridGain.Client.Impl.GridClientConnectionAdapter.parseCacheMetrics | ( | IDictionary< String, Object > | data | ) | [protected] |
| data | Map of raw cache metrics. |
| IDictionary<String, GridClientCacheMode> GridGain.Client.Impl.GridClientConnectionAdapter.parseCacheModes | ( | IDictionary< String, String > | rawCaches | ) | [protected] |
| rawCaches | Map of raw cache modes. |
| IGridClientNodeMetrics GridGain.Client.Impl.GridClientConnectionAdapter.parseNodeMetrics | ( | IDictionary< String, Object > | data | ) | [protected] |
| data | Map of raw node metrics. |
| abstract IGridClientFuture<IList<IGridClientNode> > GridGain.Client.Impl.GridClientConnectionAdapter.Topology | ( | bool | includeAttrs, | |
| bool | includeMetrics, | |||
| Guid | destNodeId | |||
| ) | [pure virtual] |
<inheritdoc>
Implements GridGain.Client.Impl.IGridClientConnection.
Implemented in GridGain.Client.Impl.GridClientHttpConnection, and GridGain.Client.Impl.GridClientTcpConnection.
readonly Guid GridGain.Client.Impl.GridClientConnectionAdapter.ClientId [protected] |
readonly Object GridGain.Client.Impl.GridClientConnectionAdapter.Credentials [protected] |
readonly IGridClientSslContext GridGain.Client.Impl.GridClientConnectionAdapter.SslCtx [protected] |
readonly GridClientTopology GridGain.Client.Impl.GridClientConnectionAdapter.Top [protected] |
IPEndPoint GridGain.Client.Impl.GridClientConnectionAdapter.ServerAddress [get, set] |
Implements GridGain.Client.Impl.IGridClientConnection.
1.7.1