# Module acceptor

- Description
- Function Index
- Function Details

Part of a generic Paxos-Consensus implementation The role of a acceptor.

Copyright © 2009-2015 Zuse Institute Berlin,

Version: $Id$

Behaviours: `gen_component`.

Authors: Florian Schintke (`schintke@zib.de`).

## Description

Part of a generic Paxos-Consensus implementation The role of a acceptor.

## Function Index

add_learner/3 |
check_config/0 | Checks whether config parameters exist and are valid.
init/1 |
msg_accepted/4 |
on/2 |
start_gen_component/5 |
start_link/2 |
start_paxosid/2 |
start_paxosid/3 |
start_paxosid_local/3 |
stop_paxosids/2 |

## Function Details

### start_gen_component/5

    start_gen_component(Module :: module(),
                        Handler :: gen_component:handler(),
                        Args :: term(),
                        Options :: [gen_component:option()],
                        Self :: pid()) ->
                           no_return() | ok

### msg_accepted/4

    msg_accepted(Learner :: comm:mypid(),
                 PaxosID :: any(),
                 Raccepted :: non_neg_integer(),
                 Val :: any()) ->
                    ok

### start_paxosid/2

    start_paxosid(PaxosID :: any(), Learners :: [comm:mypid()]) -> ok

### start_paxosid_local/3

    start_paxosid_local(LAcceptor :: pid(),
                        PaxosID :: any(),
                        Learners :: [comm:mypid()]) ->
                           ok

### start_paxosid/3

    start_paxosid(Acceptor :: comm:mypid(),
                  PaxosID :: any(),
                  Learners :: [comm:mypid()]) ->
                     ok

### stop_paxosids/2

    stop_paxosids(Acceptor :: comm:mypid(), PaxosIds :: [any()]) -> ok

### add_learner/3

    add_learner(Acceptor :: comm:mypid(),
                PaxosID :: any(),
                Learner :: comm:mypid()) ->
                   ok

### start_link/2

    start_link(DHTNodeGroup :: pid_groups:groupname(),
               PidName :: pid_groups:pidname()) ->
                  {ok, pid()}

### init/1

    init(X1 :: []) -> atom()

### on/2

    on(X1 :: comm:message(), ETSTableName :: atom()) -> atom()

### check_config/0

    check_config() -> boolean()

Checks whether config parameters exist and are valid.

Generated by EDoc, Feb 29 2016, 16:12:14.