SyncInfoCommands

class aerospike_sdk.sync.info.SyncInfoCommands[source]

Bases: object

Synchronous wrapper for InfoCommands.

Provides the same API as the async InfoCommands but executes operations synchronously by running them on an event loop.

__init__(async_info, loop_manager)[source]

Initialize a SyncInfoCommands.

Parameters:
  • async_info (InfoCommands) – The async InfoCommands to wrap.

  • loop_manager (_EventLoopManager) – The event loop manager for executing async operations.

build()[source]

Get the build information from all nodes in the cluster (synchronous).

Return type:

Set[str]

namespaces()[source]

Get the list of namespaces from all nodes in the cluster (synchronous).

Return type:

Set[str]

namespace_details(namespace)[source]

Get detailed information about a specific namespace (synchronous).

Return type:

Optional[Dict[str, str]]

sets(namespace)[source]

Get the list of sets in a specific namespace (synchronous).

Return type:

List[str]

secondary_indexes(namespace=None)[source]

Get information about all secondary indexes (synchronous).

Return type:

List[Dict[str, str]]

secondary_index_details(namespace, index_name)[source]

Get detailed information about a specific secondary index (synchronous).

Return type:

Optional[Dict[str, str]]

is_cluster_stable()[source]

Check if all nodes agree on the current cluster state (synchronous).

Return type:

bool

get_cluster_size()[source]

Get the number of nodes in the cluster (synchronous).

Return type:

int

info(command)[source]

Execute a raw info command against the cluster (synchronous).

Return type:

Dict[str, str]

info_on_all_nodes(command)[source]

Execute a raw info command against all nodes in the cluster (synchronous).

Return type:

Dict[str, Dict[str, str]]