leo_cluster_tbl_conf

The cluster conf table’s operation.

References

Description

The cluster conf table’s operation

Function Index

all/0 Retrieve all configuration of remote-clusters.
checksum/0 Retrieve a checksum by cluster-id.
create_table/2 Create the system-configutation table.
delete/1 Remove a system-configuration.
find_by_ver/1 Retrieve a system configuration.
get/0 Retrieve a system configuration (latest).
synchronize/1 Synchronize records.
transform/0 Transform records.
update/1 Modify a system-configuration.

Function Details

all/0

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

Retrieve all configuration of remote-clusters

checksum/0

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

Retrieve a checksum by cluster-id

create_table/2

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

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

Create the system-configutation table

delete/1

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

  • SystemConfig = #'?SYSTEM_CONF'{}

Remove a system-configuration

find_by_ver/1

find_by_ver(Ver) -> {ok, #'?SYSTEM_CONF'{}} | not_found | {error, any()}

  • Ver = pos_integer()

Retrieve a system configuration

get/0

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

Retrieve a system configuration (latest)

synchronize/1

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

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

Synchronize records

transform/0

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

Transform records

update/1

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

  • SystemConfig = #'?SYSTEM_CONF'{}

Modify a system-configuration