public interface ClientCluster extends ClientClusterGroup
Modifier and Type | Method and Description |
---|---|
boolean |
disableWal(String cacheName)
Disables write-ahead logging for specified cache.
|
boolean |
enableWal(String cacheName)
Enables write-ahead logging for specified cache.
|
boolean |
isWalEnabled(String cacheName)
Checks if write-ahead logging is enabled for specified cache.
|
ClusterState |
state()
Gets current cluster state.
|
void |
state(ClusterState newState)
Changes current cluster state to given
newState cluster state. |
forAttribute, forClients, forHost, forHost, forNode, forNodeId, forNodeIds, forNodes, forOldest, forOthers, forOthers, forPredicate, forRandom, forServers, forYoungest, node, node, nodes
ClusterState state()
void state(ClusterState newState) throws ClientException
newState
cluster state.
NOTE: Deactivation clears in-memory caches (without persistence) including the system caches.
newState
- New cluster state.ClientException
- If change state operation failed.boolean disableWal(String cacheName) throws ClientException
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.
cacheName
- Cache name.ClientException
- If error occurs.enableWal(String)
,
isWalEnabled(String)
boolean enableWal(String cacheName) throws ClientException
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.
cacheName
- Cache name.ClientException
- If error occurs.disableWal(String)
,
isWalEnabled(String)
boolean isWalEnabled(String cacheName)
cacheName
- Cache name.True
if WAL is enabled for cache.disableWal(String)
,
enableWal(String)
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023