leo_mdcr_tbl_cluster_stat¶
The multi-datacenter cluster status talble’s operation.
References
Description¶
The multi-datacenter cluster status talble’s operation
Function Index¶
all/0 | Retrieve system configuration by cluster-id. |
checksum/0 | Retrieve a checksum by cluster-id. |
checksum/1 | |
create_table/2 | Create a table of system-configutation. |
delete/1 | Remove a cluster-status. |
find_by_cluster_id/1 | Retrieve system configuration by cluster-id. |
find_by_state/1 | Retrieve system configuration by State. |
get/1 | Retrieve system configuration by cluster-id. |
size/0 | Retrieve the records. |
synchronize/1 | Synchronize records. |
transform/0 | Transform records. |
update/1 | Modify system-configuration. |
Function Details¶
all/0¶
all() -> {ok, [#'?CLUSTER_STAT'{}]} | not_found | {error, any()}
Retrieve system configuration by cluster-id
create_table/2¶
create_table(Mode, Nodes) -> ok | {error, any()}
- Mode = mnesia_copies()
- Nodes = [atom()]
Create a table of system-configutation
find_by_cluster_id/1¶
find_by_cluster_id(ClusterId) -> {ok, #'?CLUSTER_STAT'{}} | not_found | {error, any()}
- ClusterId = atom()
Retrieve system configuration by cluster-id
find_by_state/1¶
find_by_state(State) -> {ok, #'?CLUSTER_STAT'{}} | not_found | {error, any()}
- State = atom()
Retrieve system configuration by State
get/1¶
get(ClusterId) -> {ok, #'?CLUSTER_STAT'{}} | not_found | {error, any()}
- ClusterId = atom()
Retrieve system configuration by cluster-id
update/1¶
update(ClusterStat) -> ok | {error, any()}
- ClusterStat = #'?CLUSTER_STAT'{}
Modify system-configuration