Show / Hide Table of Contents

# Interface IClientCluster

Represents whole cluster (group of all nodes in a cluster).

##### Inherited Members

IClientClusterGroup.ForAttribute(String, String)
IClientClusterGroup.ForDotNet()
IClientClusterGroup.ForServers()
IClientClusterGroup.ForPredicate(Func<IClientClusterNode, Boolean>)
IClientClusterGroup.GetNodes()
IClientClusterGroup.GetNode(Guid)
IClientClusterGroup.GetNode()
IClientClusterGroup.GetCompute()
IClientClusterGroup.GetServices()

###### Namespace: Apache.Ignite.Core.Client

###### Assembly: Apache.Ignite.Core.dll

##### Syntax

    public interface IClientCluster : IClientClusterGroup

### Methods

#### DisableWal(String)

Disables write-ahead logging for specified cache. When WAL is disabled, changes are not logged to disk. This significantly improves cache update speed.The drawback is absence of local crash-recovery guarantees. If node is crashed, local content of WAL-disabled cache will be cleared on restart to avoid data corruption.

Internally this method will wait for all current cache operations to finish and prevent new cache operations from being executed.Then checkpoint is initiated to flush all data to disk.Control is returned to the callee when all dirty pages are prepared for checkpoint, but not necessarily flushed to disk.

WAL state can be changed only for persistent caches.

##### Declaration

    bool DisableWal(string cacheName)

##### Parameters

Type | Name | Description
--- | --- | ---
System.String | cacheName | Name of the cache.

##### Returns

Type | Description
--- | ---
System.Boolean | Whether WAL was enabled by this call.

#### EnableWal(String)

Enables write-ahead logging for specified cache. Restoring crash-recovery guarantees of a previous call to DisableWal(String).

Internally this method will wait for all current cache operations to finish and prevent new cache operations from being executed. Then checkpoint is initiated to flush all data to disk. Control is returned to the callee when all data is persisted to disk.

WAL state can be changed only for persistent caches.

##### Declaration

    bool EnableWal(string cacheName)

##### Parameters

Type | Name | Description
--- | --- | ---
System.String | cacheName | Name of the cache.

##### Returns

Type | Description
--- | ---
System.Boolean | Whether WAL was disabled by this call.

#### IsActive()

Determines whether this grid is in active state.

##### Declaration

    bool IsActive()

##### Returns

Type | Description
--- | ---
System.Boolean | `true` if the grid is active; otherwise, `false`.

#### IsWalEnabled(String)

Determines whether write-ahead logging is enabled for specified cache.

##### Declaration

    bool IsWalEnabled(string cacheName)

##### Parameters

Type | Name | Description
--- | --- | ---
System.String | cacheName | Name of the cache.

##### Returns

Type | Description
--- | ---
System.Boolean |

#### SetActive(Boolean)

Changes Ignite grid state to active or inactive.

##### Declaration

    void SetActive(bool isActive)

##### Parameters

Type | Name | Description
--- | --- | ---
System.Boolean | isActive |