Infinispan.Hotrod.Core 0.0.3
.NET Core client for Infinispan Hotrod Protocol
Classes | Public Member Functions | Public Attributes | Properties | List of all members
Infinispan.Hotrod.Core.InfinispanDG Class Reference

InfinispanDG class describes an Infinispan Cluster and is the main API entry point. More...

Inheritance diagram for Infinispan.Hotrod.Core.InfinispanDG:

Public Member Functions

 InfinispanDG ()
 Constructor for the InfinispanDG class. The returned instance is blank and needs to be properly setup before any operation can be executed on the Infinispan cluster. Most of the configuration is exposed as properties or public methods.
 
bool SwitchCluster (string clusterName)
 
InfinispanHost AddHost (string host, int port=11222)
 Add a cluster node to the initial list of nodes for the DEFAULT_CLUSTER. More...
 
InfinispanHost AddHost (string clusterName, string host, int port=11222)
 Add a cluster node to the initial list of nodes for the specified cluster. If applied to the active cluster, the current list of active node is discarded and replace with the new list. i.e. all the nodes info received via topology update are discarded. More...
 
Cache< K, V > NewCache< K, V > (Marshaller< K > keyM, Marshaller< V > valM, string name)
 Returns a proxy to a remote cache on the server More...
 
void EnableLog (LogType type)
 
void Log (LogType type, string message)
 
void Dispose ()
 
IDictionary< int, ISet< K > > SplitBySegment< K > (Marshaller< K > km, CacheBase cache, ICollection< K > keys)
 
IDictionary< int, IDictionary< K, V > > SplitKeyValueBySegment< K, V > (Marshaller< K > km, CacheBase cache, IDictionary< K, V > map)
 

Public Attributes

bool ForceReturnValue = false
 Force the server must include a return value in the respose
 
bool UseTLS = false
 Enable TLS communication
 
X509Chain CACert
 Certification chain for server certificate verification. Leave it null for no verification.
 
string ServiceName = "hotrod"
 

Properties

string User [getset]
 Username for the connection credentials
 
string Password [getset]
 Password for the connection credentials
 
string AuthMech [getset]
 SASL authentication mechanism

 
string Domain = "infinispan" [getset]
 SASL domain name

 
byte Version = 0x1f [getset]
 HotRod protocol version
 
byte ClientIntelligence = 0x02 [getset]
 Client intelligence. Supported values are: 0x01 (basic) and 0x03 (hash-distribution)
 

Detailed Description

InfinispanDG class describes an Infinispan Cluster and is the main API entry point.

Member Function Documentation

◆ AddHost() [1/2]

InfinispanHost Infinispan.Hotrod.Core.InfinispanDG.AddHost ( string  clusterName,
string  host,
int  port = 11222 
)

Add a cluster node to the initial list of nodes for the specified cluster. If applied to the active cluster, the current list of active node is discarded and replace with the new list. i.e. all the nodes info received via topology update are discarded.

Parameters
clusterNamename of the owner cluster
hostnode address
portport
ssloverrides the cluster TLS setting
Returns

◆ AddHost() [2/2]

InfinispanHost Infinispan.Hotrod.Core.InfinispanDG.AddHost ( string  host,
int  port = 11222 
)

Add a cluster node to the initial list of nodes for the DEFAULT_CLUSTER.

Parameters
hostnode address
portport
Returns

◆ NewCache< K, V >()

Cache< K, V > Infinispan.Hotrod.Core.InfinispanDG.NewCache< K, V > ( Marshaller< K >  keyM,
Marshaller< V >  valM,
string  name 
)

Returns a proxy to a remote cache on the server

The returned Cache object allows the execution of all the remote operation on the Infinispan cluster.

Template Parameters
KType of the key
VType of the value
Parameters
keyMA marshaller for K. Infinispan.Hotrod.Core.Marshaller
valMA marshaller for V
nameName of the cache
Returns
the cache object

The documentation for this class was generated from the following file: