xia_synchronizer.synchronizer.Synchronizer

class xia_synchronizer.synchronizer.Synchronizer

Bases: object

Synchronizer get the data from the source and put it into target

__init__()

Methods

__init__()

synchronize(domain_name, model_name, ...)

copy data from source to target

Attributes

address_manager

model_manager

classmethod synchronize(domain_name: str, model_name: str, doc_list: list, source_address: str, target_address: str)

copy data from source to target

Parameters
  • domain_name – data model domain name

  • model_name – data model name

  • doc_list – list of document id

  • source_address – source address

  • target_address – target address