NebulaGraph Python Client  release-3.8
MetaClient Class Reference
+ Inheritance diagram for MetaClient:
+ Collaboration diagram for MetaClient:

Public Member Functions

def __init__ (self, addresses, timeout)
 
def open (self)
 
def list_tags (self, space_id)
 
def list_edges (self, space_id)
 
def list_spaces (self)
 
def list_hosts (self)
 
def get_parts_alloc (self, space_id)
 
def close (self)
 
def update_leader (self, leader)
 
def __del__ (self)
 

Detailed Description

Definition at line 36 of file __init__.py.

Member Function Documentation

◆ close()

def close (   self)
close the connection

:eturn: void

Definition at line 225 of file __init__.py.

+ Here is the caller graph for this function:

◆ get_parts_alloc()

def get_parts_alloc (   self,
  space_id 
)
get all parts info of the specified space id

:param space_id:
:eturn: map<PartitionID, list<HostAddr>>

Definition at line 194 of file __init__.py.

+ Here is the call graph for this function:

◆ list_edges()

def list_edges (   self,
  space_id 
)
get all version edge

:param space_id: the specified space id
:return: list<EdgeItem>

Definition at line 100 of file __init__.py.

+ Here is the call graph for this function:

◆ list_hosts()

def list_hosts (   self)
get all online hosts info

:eturn: list<HostItem>

Definition at line 160 of file __init__.py.

+ Here is the call graph for this function:

◆ list_spaces()

def list_spaces (   self)
get all spaces info

:eturn: list<IdName>

Definition at line 131 of file __init__.py.

+ Here is the call graph for this function:

◆ list_tags()

def list_tags (   self,
  space_id 
)
get all version tags

:param space_id: the specified space id
:eturn: list<TagItem>

Definition at line 69 of file __init__.py.

+ Here is the call graph for this function:

◆ open()

def open (   self)
open the connection to connect meta service

:eturn: void

Definition at line 52 of file __init__.py.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ update_leader()

def update_leader (   self,
  leader 
)
update the leader meta info when happen leader change

:param leader: the address of meta leader
:eturn:

Definition at line 236 of file __init__.py.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: