InfoCommands¶
- class aerospike_sdk.aio.info.InfoCommands[source]¶
Bases:
objectProvides high-level methods to execute common Aerospike info commands.
This class encapsulates the most commonly used Aerospike info commands and provides a convenient API for retrieving cluster information.
Example:
info = session.info() # Get all namespaces namespaces = await info.namespaces() # Get namespace details ns_detail = await info.namespace_details("test") # Get all secondary indexes indexes = await info.secondary_indexes()
- __init__(session)[source]¶
Initialize InfoCommands.
- Parameters:
session (
Session) – The Session to use for info commands.
- async secondary_index_details(namespace, index_name)[source]¶
Get detailed information about a specific secondary index.
- async is_cluster_stable()[source]¶
Check if all nodes agree on the current cluster state.
- Return type:
- Returns:
True if the cluster is stable, False otherwise.
- async get_cluster_size()[source]¶
Get the number of nodes in the cluster.
- Return type:
- Returns:
The number of nodes in the cluster.