pyignite.cluster module¶
This module contains Cluster that lets you get info and change state of the whole cluster.
- class pyignite.cluster.Cluster(client: Client)¶
Bases:
object
Ignite cluster abstraction. Users should never use this class directly, but construct its instances with
get_cluster()
method instead.- get_state() pyignite.datatypes.cluster_state.ClusterState ¶
Gets current cluster state.
- Returns
Current cluster state. This is one of
INACTIVE
,ACTIVE
,ACTIVE_READ_ONLY
.
- set_state(state: pyignite.datatypes.cluster_state.ClusterState)¶
Changes current cluster state to the given.
- Note: Deactivation clears in-memory caches (without persistence)
including the system caches.
- Parameters
state – New cluster state. This is one of
INACTIVE
,ACTIVE
,ACTIVE_READ_ONLY
.