pyignite.aio_cluster module¶
This module contains AioCluster that lets you get info and change state of the whole cluster asynchronously.
-
class
pyignite.aio_cluster.
AioCluster
(client: AioClient)¶ 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
.
-