Module rr_recon_stats

Replica Repair Reconciliation Statistics.

Copyright © 2011-2012 Zuse Institute Berlin

Version: $Id$

Authors: Maik Lange (malange@informatik.hu-berlin.de).

Description

Replica Repair Reconciliation Statistics

Data Types

field_list1()

field_list1() = 
    [{tree_size, merkle_tree:mt_size()} |
     {tree_nodesCompared, non_neg_integer()} |
     {tree_compareSkipped, non_neg_integer()} |
     {tree_leavesSynced, non_neg_integer()} |
     {error_count, non_neg_integer()} |
     {build_time, non_neg_integer()} |
     {recon_time, non_neg_integer()} |
     {resolve_started, non_neg_integer()} |
     {await_rs_fb, non_neg_integer()}]

field_list2()

field_list2() = [{session_id, rrepair:session_id() | null} |
                 {status, status()}]
              | field_list1()

stats()

stats() = 
    #rr_recon_stats{session_id = rrepair:session_id() | null,
                    tree_size = merkle_tree:mt_size(),
                    tree_nodesCompared = non_neg_integer(),
                    tree_compareSkipped = non_neg_integer(),
                    tree_leavesSynced = non_neg_integer(),
                    error_count = non_neg_integer(),
                    build_time = non_neg_integer(),
                    recon_time = non_neg_integer(),
                    resolve_started = non_neg_integer(),
                    await_rs_fb = non_neg_integer(),
                    status = status()}

status()

status() = wait | abort | finish

Function Index

get/2
inc/2increases the record field with name key by value.
merge/2
new/0
new/1
print/1
set/2sets the value of record field with name of key to the given value.

Function Details

new/0

new() -> stats()

new/1

new(KVList :: field_list2()) -> stats()

inc/2

inc(L :: field_list1(), Old :: stats()) -> New :: stats()

increases the record field with name key by value

set/2

set(L :: field_list2(), Old :: stats()) -> New :: stats()

sets the value of record field with name of key to the given value

get/2

get(X1 :: session_id, Rr_recon_stats :: stats()) ->
       rrepair:session_id() | null

merge/2

merge(A :: stats(), Rr_recon_stats :: stats()) -> stats()

print/1

print(Stats :: stats()) -> [any()]


Generated by EDoc, Jul 23 2015, 22:20:29.