Module node_details

Node summary for statistics.

Copyright © 2007-2011 Zuse Institute Berlin

Version: $Id$

Authors: Thorsten Schuett (schuett@zib.de).

Description

Node summary for statistics

Data Types

hostname()

hostname() = string()

load()

load() = integer()

load2()

load2() = lb_stats:load()

load3()

load3() = lb_stats:load()

memory()

memory() = non_neg_integer()

message_log()

message_log() = any()

node_details()

abstract datatype: node_details()

node_details_name()

node_details_name() = 
    predlist | pred | node | my_range | succ | succlist | load |
    hostname | rt_size | message_log | memory | new_key | db |
    is_leaving

rt_size()

rt_size() = integer()

Function Index

new/0Creates an empty node details object.
new/9Creates a new node details object with the given data.
set/3Adds the given data to the node list object.
contains/2Checks whether the given data is available in a node details object.
get/2Gets the value of the given data in a node details object.

Function Details

new/0

new() -> node_details()

Creates an empty node details object.

new/9

new(PredList :: nodelist:non_empty_snodelist(),
    Node :: node:node_type(),
    SuccList :: nodelist:non_empty_snodelist(),
    Load :: load(),
    Load2 :: load2(),
    Load3 :: load3(),
    Hostname :: hostname(),
    RTSize :: rt_size(),
    Memory :: memory()) ->
       node_details()

Creates a new node details object with the given data.

set/3

set(NodeDetails :: node_details(),
    Key :: predlist,
    Value :: nodelist:non_empty_snodelist()) ->
       node_details()

set(NodeDetails :: node_details(),
    Key :: pred,
    Value :: node:node_type()) ->
       node_details()

set(NodeDetails :: node_details(),
    Key :: node,
    Value :: node:node_type()) ->
       node_details()

set(NodeDetails :: node_details(),
    Key :: my_range,
    Value :: intervals:interval()) ->
       node_details()

set(NodeDetails :: node_details(),
    Key :: is_leaving,
    Value :: boolean()) ->
       node_details()

set(NodeDetails :: node_details(),
    Key :: succ,
    Value :: node:node_type()) ->
       node_details()

set(NodeDetails :: node_details(),
    Key :: succlist,
    Value :: nodelist:non_empty_snodelist()) ->
       node_details()

set(NodeDetails :: node_details(),
    Key :: db,
    Value :: db_dht:db()) ->
       node_details()

set(NodeDetails :: node_details(), Key :: load, Value :: load()) ->
       node_details()

set(NodeDetails :: node_details(), Key :: load2, Value :: load2()) ->
       node_details()

set(NodeDetails :: node_details(), Key :: load3, Value :: load3()) ->
       node_details()

set(NodeDetails :: node_details(),
    Key :: hostname,
    Value :: hostname()) ->
       node_details()

set(NodeDetails :: node_details(),
    Key :: rt_size,
    Value :: rt_size()) ->
       node_details()

set(NodeDetails :: node_details(),
    Key :: message_log,
    Value :: message_log()) ->
       node_details()

set(NodeDetails :: node_details(),
    Key :: memory,
    Value :: memory()) ->
       node_details()

set(NodeDetails :: node_details(),
    Key :: new_key,
    Value :: rt_chord:key()) ->
       node_details()

Adds the given data to the node list object. Beware: Setting pred/succ will overwrite predlist/succlist! (pred and succ are only shortcuts for hd(predlist)/hd(succlist))

contains/2

contains(NodeDetails :: node_details(),
         Key :: node_details_name()) ->
            boolean()

Checks whether the given data is available in a node details object.

get/2

get(Node_details :: node_details(), Key :: predlist | succlist) ->
       nodelist:non_empty_snodelist()

get(Node_details :: node_details(), Key :: pred | node | succ) ->
       node:node_type()

get(Node_details :: node_details(), Key :: my_range) ->
       intervals:interval()

get(Node_details :: node_details(), Key :: is_leaving) ->
       boolean()

get(Node_details :: node_details(), Key :: db) -> db_dht:db()

get(Node_details :: node_details(), Key :: load) -> load()

get(Node_details :: node_details(), Key :: load2) -> load2()

get(Node_details :: node_details(), Key :: load3) -> load3()

get(Node_details :: node_details(), Key :: hostname) -> hostname()

get(Node_details :: node_details(), Key :: rt_size) -> rt_size()

get(Node_details :: node_details(), Key :: message_log) ->
       message_log()

get(Node_details :: node_details(), Key :: memory) -> memory()

get(Node_details :: node_details(), Key :: new_key) ->
       rt_chord:key()

Gets the value of the given data in a node details object. Will throw an exception if the value can not be located.


Generated by EDoc