This class performs request to grid over tcp protocol. Serialization is performed with marshaller provided.
Inherits GridGain::Client::Impl::GridClientConnectionAdapter.
Public Member Functions | |
| GridClientTcpConnection (Guid clientId, IPEndPoint srvAddr, IGridClientSslContext sslCtx, int connectTimeout, IGridClientMarshaller marshaller, Object credentials, GridClientTopology top) | |
| Creates a client facade, tries to connect to remote server, in case of success starts reader thread. | |
| override sealed void | Close (bool waitCompletion) |
| Closes this client. No methods of this class can be used after this method was called. Any attempt to perform request on closed client will case GridClientConnectionResetException. All pending requests are failed without waiting for response. | |
| override bool | CloseIfIdle (TimeSpan timeout) |
| override IGridClientFuture < Boolean > | CachePutAll< K, V > (String cacheName, ISet< GridClientCacheFlag > cacheFlags, IDictionary< K, V > entries, Guid destNodeId) |
| override IGridClientFuture < IDictionary< K, V > > | CacheGetAll< K, V > (String cacheName, ISet< GridClientCacheFlag > cacheFlags, IEnumerable< K > keys, Guid destNodeId) |
| override IGridClientFuture < Boolean > | CacheRemove< K > (String cacheName, ISet< GridClientCacheFlag > cacheFlags, K key, Guid destNodeId) |
| override IGridClientFuture < Boolean > | CacheRemoveAll< K > (String cacheName, ISet< GridClientCacheFlag > cacheFlags, IEnumerable< K > keys, Guid destNodeId) |
| override IGridClientFuture < Boolean > | CacheReplace< K, V > (String cacheName, ISet< GridClientCacheFlag > cacheFlags, K key, V val, Guid destNodeId) |
| override IGridClientFuture < Boolean > | CacheAppend< K, V > (String cacheName, ISet< GridClientCacheFlag > cacheFlags, K key, V val, Guid destNodeId) |
| override IGridClientFuture < Boolean > | CachePrepend< K, V > (String cacheName, ISet< GridClientCacheFlag > cacheFlags, K key, V val, Guid destNodeId) |
| override IGridClientFuture < Boolean > | CacheCompareAndSet< K, V > (String cacheName, ISet< GridClientCacheFlag > cacheFlags, K key, V val1, V val2, Guid destNodeId) |
| override IGridClientFuture < IGridClientDataMetrics > | CacheMetrics (String cacheName, ISet< GridClientCacheFlag > cacheFlags, Guid destNodeId) |
| override IGridClientFuture< T > | Execute< T > (String taskName, Object arg, Guid destNodeId) |
| override IGridClientFuture < IGridClientNode > | Node (Guid id, bool includeAttrs, bool includeMetrics, Guid destNodeId) |
| override IGridClientFuture < IGridClientNode > | Node (String ipAddr, bool includeAttrs, bool includeMetrics, Guid destNodeId) |
| override IGridClientFuture < IList< IGridClientNode > > | Topology (bool includeAttrs, bool includeMetrics, Guid destNodeId) |
| override IGridClientFuture < IList< String > > | Log (String path, int fromLine, int toLine, Guid destNodeId) |
Protected Attributes | |
| byte[] | sesTok |
| Authenticated session token. | |
| GridGain.Client.Impl.GridClientTcpConnection.GridClientTcpConnection | ( | Guid | clientId, | |
| IPEndPoint | srvAddr, | |||
| IGridClientSslContext | sslCtx, | |||
| int | connectTimeout, | |||
| IGridClientMarshaller | marshaller, | |||
| Object | credentials, | |||
| GridClientTopology | top | |||
| ) |
| clientId | Client identifier. | |
| srvAddr | Server to connect to. | |
| sslCtx | SSL context to use if SSL is enabled, null otherwise. | |
| connectTimeout | Connect timeout. | |
| marshaller | Marshaller to use in communication. | |
| credentials | Client credentials. | |
| top | Topology instance. |
| IOException | If connection could not be established. |
| override IGridClientFuture<Boolean> GridGain.Client.Impl.GridClientTcpConnection.CacheAppend< K, V > | ( | String | cacheName, | |
| ISet< GridClientCacheFlag > | cacheFlags, | |||
| K | key, | |||
| V | val, | |||
| Guid | destNodeId | |||
| ) | [virtual] |
<inheritdoc>
Implements GridGain.Client.Impl.GridClientConnectionAdapter.
| override IGridClientFuture<Boolean> GridGain.Client.Impl.GridClientTcpConnection.CacheCompareAndSet< K, V > | ( | String | cacheName, | |
| ISet< GridClientCacheFlag > | cacheFlags, | |||
| K | key, | |||
| V | val1, | |||
| V | val2, | |||
| Guid | destNodeId | |||
| ) |
<inheritdoc>
Implements GridGain.Client.Impl.IGridClientConnection.
| override IGridClientFuture<IDictionary<K, V> > GridGain.Client.Impl.GridClientTcpConnection.CacheGetAll< K, V > | ( | String | cacheName, | |
| ISet< GridClientCacheFlag > | cacheFlags, | |||
| IEnumerable< K > | keys, | |||
| Guid | destNodeId | |||
| ) |
<inheritdoc>
Implements GridGain.Client.Impl.IGridClientConnection.
| override IGridClientFuture<IGridClientDataMetrics> GridGain.Client.Impl.GridClientTcpConnection.CacheMetrics | ( | String | cacheName, | |
| ISet< GridClientCacheFlag > | cacheFlags, | |||
| Guid | destNodeId | |||
| ) | [virtual] |
<inheritdoc>
Implements GridGain.Client.Impl.GridClientConnectionAdapter.
| override IGridClientFuture<Boolean> GridGain.Client.Impl.GridClientTcpConnection.CachePrepend< K, V > | ( | String | cacheName, | |
| ISet< GridClientCacheFlag > | cacheFlags, | |||
| K | key, | |||
| V | val, | |||
| Guid | destNodeId | |||
| ) | [virtual] |
<inheritdoc>
Implements GridGain.Client.Impl.GridClientConnectionAdapter.
| override IGridClientFuture<Boolean> GridGain.Client.Impl.GridClientTcpConnection.CachePutAll< K, V > | ( | String | cacheName, | |
| ISet< GridClientCacheFlag > | cacheFlags, | |||
| IDictionary< K, V > | entries, | |||
| Guid | destNodeId | |||
| ) |
<inheritdoc>
Implements GridGain.Client.Impl.IGridClientConnection.
| override IGridClientFuture<Boolean> GridGain.Client.Impl.GridClientTcpConnection.CacheRemove< K > | ( | String | cacheName, | |
| ISet< GridClientCacheFlag > | cacheFlags, | |||
| K | key, | |||
| Guid | destNodeId | |||
| ) |
<inheritdoc>
Implements GridGain.Client.Impl.IGridClientConnection.
| override IGridClientFuture<Boolean> GridGain.Client.Impl.GridClientTcpConnection.CacheRemoveAll< K > | ( | String | cacheName, | |
| ISet< GridClientCacheFlag > | cacheFlags, | |||
| IEnumerable< K > | keys, | |||
| Guid | destNodeId | |||
| ) |
<inheritdoc>
Implements GridGain.Client.Impl.IGridClientConnection.
| override IGridClientFuture<Boolean> GridGain.Client.Impl.GridClientTcpConnection.CacheReplace< K, V > | ( | String | cacheName, | |
| ISet< GridClientCacheFlag > | cacheFlags, | |||
| K | key, | |||
| V | val, | |||
| Guid | destNodeId | |||
| ) |
<inheritdoc>
Implements GridGain.Client.Impl.IGridClientConnection.
| override sealed void GridGain.Client.Impl.GridClientTcpConnection.Close | ( | bool | waitCompletion | ) | [virtual] |
| waitCompletion | If true this method will wait for all pending requests to be completed. |
Implements GridGain.Client.Impl.GridClientConnectionAdapter.
| override bool GridGain.Client.Impl.GridClientTcpConnection.CloseIfIdle | ( | TimeSpan | timeout | ) | [virtual] |
<inheritdoc>
Implements GridGain.Client.Impl.GridClientConnectionAdapter.
| override IGridClientFuture<T> GridGain.Client.Impl.GridClientTcpConnection.Execute< T > | ( | String | taskName, | |
| Object | arg, | |||
| Guid | destNodeId | |||
| ) | [virtual] |
<inheritdoc>
Implements GridGain.Client.Impl.GridClientConnectionAdapter.
| override IGridClientFuture<IList<String> > GridGain.Client.Impl.GridClientTcpConnection.Log | ( | String | path, | |
| int | fromLine, | |||
| int | toLine, | |||
| Guid | destNodeId | |||
| ) | [virtual] |
<inheritdoc>
Implements GridGain.Client.Impl.GridClientConnectionAdapter.
| override IGridClientFuture<IGridClientNode> GridGain.Client.Impl.GridClientTcpConnection.Node | ( | String | ipAddr, | |
| bool | includeAttrs, | |||
| bool | includeMetrics, | |||
| Guid | destNodeId | |||
| ) | [virtual] |
<inheritdoc>
Implements GridGain.Client.Impl.GridClientConnectionAdapter.
| override IGridClientFuture<IGridClientNode> GridGain.Client.Impl.GridClientTcpConnection.Node | ( | Guid | id, | |
| bool | includeAttrs, | |||
| bool | includeMetrics, | |||
| Guid | destNodeId | |||
| ) | [virtual] |
<inheritdoc>
Implements GridGain.Client.Impl.GridClientConnectionAdapter.
| override IGridClientFuture<IList<IGridClientNode> > GridGain.Client.Impl.GridClientTcpConnection.Topology | ( | bool | includeAttrs, | |
| bool | includeMetrics, | |||
| Guid | destNodeId | |||
| ) | [virtual] |
<inheritdoc>
Implements GridGain.Client.Impl.GridClientConnectionAdapter.
byte [] GridGain.Client.Impl.GridClientTcpConnection.sesTok [protected] |
1.7.1