SyncInfoCommands

class aerospike_sdk.sync.info.SyncInfoCommands[source]

Bases: object

Synchronous high-level info-command helpers.

Constructed by SyncSession.info() (no args). Calls PAC’s info_blocking / info_on_all_nodes_blocking directly — no asyncio loop is involved.

__init__(pac_client)[source]

Pair with the PAC aerospike_async.Client from the session.

build()[source]

Build strings from every node.

Return type:

Set[str]

namespaces()[source]

Namespace names across the cluster.

Return type:

Set[str]

namespace_details(namespace)[source]

Per-namespace info; None when the namespace is unknown.

Return type:

Optional[Dict[str, str]]

sets(namespace)[source]

Set names in namespace.

Return type:

List[str]

secondary_indexes(namespace=None)[source]

All secondary indexes (optionally filtered by namespace).

Return type:

List[Dict[str, str]]

secondary_index_details(namespace, index_name)[source]

Details for one secondary index; None when missing.

Return type:

Optional[Dict[str, str]]

is_cluster_stable()[source]

True when every node reports cluster-stable=true.

Return type:

bool

get_cluster_size()[source]

Number of cluster nodes.

Return type:

int

info(command)[source]

Raw info command against one random node.

Return type:

Dict[str, str]

info_on_all_nodes(command)[source]

Raw info command against every node.

Return type:

Dict[str, Dict[str, str]]