Public Member Functions | Properties

GridGain.Client.IGridClient Interface Reference

Grid client API. More...

Inherited by GridGain.Client.Impl.GridClientImpl.

List of all members.

Public Member Functions

IGridClientData Data ()
 Gets a data projection for a default grid cache with null name.
IGridClientData Data (String cacheName)
 Gets a data projection for grid cache with name cacheName. If no data configuration with given name was provided at client startup, an exception will be thrown.
IGridClientCompute Compute ()
 Gets a default compute projection. Default compute projection will include all nodes in remote grid. Selection of node that will be connected to perform operations will be done according to Balancer.IGridClientLoadBalancer provided in client configuration or according to affinity if projection call involves affinity key. More restricted projection configurations may be created with IGridClientCompute methods.
void AddTopologyListener (IGridClientTopologyListener lsnr)
 Adds topology listener. Remote grid topology is refreshed every IGridClientConfiguration.TopologyRefreshFrequency milliseconds. If any node was added or removed, a listener will be notified.
void RemoveTopologyListener (IGridClientTopologyListener lsnr)
 Removes previously added topology listener.
ICollection
< IGridClientTopologyListener > 
TopologyListeners ()
 Gets an unmodifiable snapshot of topology listeners list.

Properties

Guid Id [get]
 Gets a unique client identifier. This identifier is generated by factory on client creation and used in identification and authentication procedure on server node.

Detailed Description


Member Function Documentation

void GridGain.Client.IGridClient.AddTopologyListener ( IGridClientTopologyListener  lsnr  ) 
Parameters:
lsnr Listener to add.
IGridClientCompute GridGain.Client.IGridClient.Compute (  ) 
Returns:
Default compute projection.

IGridClientCompute

IGridClientData GridGain.Client.IGridClient.Data ( String  cacheName  ) 
Parameters:
cacheName Grid cache name for which data projection should be obtained.
Returns:
Data projection for grid cache with name cacheName.
Exceptions:
GridClientException If client was closed or no configuration with given name was provided.
IGridClientData GridGain.Client.IGridClient.Data (  ) 
Returns:
Data projection for grid cache with null name.
Exceptions:
GridClientException If client was closed.
void GridGain.Client.IGridClient.RemoveTopologyListener ( IGridClientTopologyListener  lsnr  ) 
Parameters:
lsnr Listener to remove.
ICollection<IGridClientTopologyListener> GridGain.Client.IGridClient.TopologyListeners (  ) 
Returns:
List of topology listeners.

Property Documentation

Guid GridGain.Client.IGridClient.Id [get]