leo_mdcr_tbl_cluster_info

The multi-datacenter cluster info table’s operation.

References

Description

The multi-datacenter cluster info table’s operation

Function Index

all/0 Retrieve all configuration of remote-clusters.
checksum/0 Retrieve a checksum.
create_table/2 Create a table of configuration of clusters.
delete/1 Remove a configuration of a cluster.
find_by_limit/1 Retrieve records by limit.
get/1 Retrieve a configuration of remote-clusters by cluster-id.
size/0 Retrieve the records.
synchronize/1 Synchronize records.
transform/0 Transform records.
update/1 Modify a configuration of a cluster.

Function Details

all/0

all() -> {ok, [#'?CLUSTER_INFO'{}]} | not_found | {error, any()}

Retrieve all configuration of remote-clusters

checksum/0

checksum() -> {ok, pos_integer()} | {error, any()}

Retrieve a checksum

create_table/2

create_table(Mode, Nodes) -> ok | {error, any()}

  • Mode = mnesia_copies()
  • Nodes = [atom()]

Create a table of configuration of clusters

delete/1

delete(ClusterId) -> ok | {error, any()}

  • ClusterId = atom()

Remove a configuration of a cluster

find_by_limit/1

find_by_limit(Rows) -> {ok, #'?CLUSTER_INFO'{}} | not_found | {error, any()}

  • Rows = pos_integer()

Retrieve records by limit

get/1

get(ClusterId) -> {ok, #'?CLUSTER_INFO'{}} | not_found | {error, any()}

  • ClusterId = atom()

Retrieve a configuration of remote-clusters by cluster-id

size/0

size() -> integer()

Retrieve the records

synchronize/1

synchronize(ValL) -> ok | {error, any()}

  • ValL = [#'?CLUSTER_INFO'{}]

Synchronize records

transform/0

transform() -> ok | {error, any()}

Transform records

update/1

update(ClusterInfo) -> ok | {error, any()}

  • ClusterInfo = #'?CLUSTER_INFO'{}

Modify a configuration of a cluster