Public Member Functions | Protected Attributes

GridGain.Client.Impl.GridClientTcpConnection Class Reference

This class performs request to grid over tcp protocol. Serialization is performed with marshaller provided.

Inherits GridGain::Client::Impl::GridClientConnectionAdapter.

List of all members.

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.

Constructor & Destructor Documentation

GridGain.Client.Impl.GridClientTcpConnection.GridClientTcpConnection ( Guid  clientId,
IPEndPoint  srvAddr,
IGridClientSslContext  sslCtx,
int  connectTimeout,
IGridClientMarshaller  marshaller,
Object  credentials,
GridClientTopology  top 
)
Parameters:
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.
Exceptions:
IOException If connection could not be established.

Member Function Documentation

override IGridClientFuture<Boolean> GridGain.Client.Impl.GridClientTcpConnection.CacheAppend< K, V > ( String  cacheName,
ISet< GridClientCacheFlag >  cacheFlags,
K  key,
V  val,
Guid  destNodeId 
) [virtual]
override IGridClientFuture<Boolean> GridGain.Client.Impl.GridClientTcpConnection.CacheCompareAndSet< K, V > ( String  cacheName,
ISet< GridClientCacheFlag >  cacheFlags,
K  key,
V  val1,
V  val2,
Guid  destNodeId 
)
override IGridClientFuture<IDictionary<K, V> > GridGain.Client.Impl.GridClientTcpConnection.CacheGetAll< K, V > ( String  cacheName,
ISet< GridClientCacheFlag >  cacheFlags,
IEnumerable< K >  keys,
Guid  destNodeId 
)
override IGridClientFuture<IGridClientDataMetrics> GridGain.Client.Impl.GridClientTcpConnection.CacheMetrics ( String  cacheName,
ISet< GridClientCacheFlag >  cacheFlags,
Guid  destNodeId 
) [virtual]
override IGridClientFuture<Boolean> GridGain.Client.Impl.GridClientTcpConnection.CachePrepend< K, V > ( String  cacheName,
ISet< GridClientCacheFlag >  cacheFlags,
K  key,
V  val,
Guid  destNodeId 
) [virtual]
override IGridClientFuture<Boolean> GridGain.Client.Impl.GridClientTcpConnection.CachePutAll< K, V > ( String  cacheName,
ISet< GridClientCacheFlag >  cacheFlags,
IDictionary< K, V >  entries,
Guid  destNodeId 
)
override IGridClientFuture<Boolean> GridGain.Client.Impl.GridClientTcpConnection.CacheRemove< K > ( String  cacheName,
ISet< GridClientCacheFlag >  cacheFlags,
K  key,
Guid  destNodeId 
)
override IGridClientFuture<Boolean> GridGain.Client.Impl.GridClientTcpConnection.CacheRemoveAll< K > ( String  cacheName,
ISet< GridClientCacheFlag >  cacheFlags,
IEnumerable< K >  keys,
Guid  destNodeId 
)
override IGridClientFuture<Boolean> GridGain.Client.Impl.GridClientTcpConnection.CacheReplace< K, V > ( String  cacheName,
ISet< GridClientCacheFlag >  cacheFlags,
K  key,
V  val,
Guid  destNodeId 
)
override sealed void GridGain.Client.Impl.GridClientTcpConnection.Close ( bool  waitCompletion  )  [virtual]
Parameters:
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]
override IGridClientFuture<T> GridGain.Client.Impl.GridClientTcpConnection.Execute< T > ( String  taskName,
Object  arg,
Guid  destNodeId 
) [virtual]
override IGridClientFuture<IList<String> > GridGain.Client.Impl.GridClientTcpConnection.Log ( String  path,
int  fromLine,
int  toLine,
Guid  destNodeId 
) [virtual]
override IGridClientFuture<IGridClientNode> GridGain.Client.Impl.GridClientTcpConnection.Node ( String  ipAddr,
bool  includeAttrs,
bool  includeMetrics,
Guid  destNodeId 
) [virtual]
override IGridClientFuture<IGridClientNode> GridGain.Client.Impl.GridClientTcpConnection.Node ( Guid  id,
bool  includeAttrs,
bool  includeMetrics,
Guid  destNodeId 
) [virtual]
override IGridClientFuture<IList<IGridClientNode> > GridGain.Client.Impl.GridClientTcpConnection.Topology ( bool  includeAttrs,
bool  includeMetrics,
Guid  destNodeId 
) [virtual]

Member Data Documentation