View Source partisan_hyparview_xbot_peer_service_manager (partisan v5.0.0-beta.15)

Link to this section Summary

Types

The epoch_count indicates how many disconnect messages are generated.
t/0
The epoch indicates how many times the node is restarted.

Functions

Debugging.
Debugging.
Cast a message to a remote gen_server.
Cast a message to a remote gen_server.
Decode state.
Gensym support for forwarding.
Gensym support for forwarding.
Forward message to registered process on the remote side.
Return local node's view of cluster membership.
Inject a partition.
Attempt to join a remote node.
Leave the cluster.
Remove another node from the cluster.
Return membership list.
Return membership list.
Register a trigger to fire when a connection drops.
Register a trigger to fire when a connection drops.
Register a trigger to fire when a connection opens.
Register a trigger to fire when a connection opens.
Return partitions.
Debugging.
Receive message from a remote manager.
Reserve a slot for the particular tag.
Resolve a partition.
Send message to a remote peer service manager.
Start the peer service manager.
Attempt to join a remote node.
Update membership.

Link to this section Types

-type active() :: sets:set(partisan:node_spec()).
-type config() ::
    #{active_max_size := non_neg_integer(),
      active_min_size := non_neg_integer(),
      active_rwl := non_neg_integer(),
      passive_max_size := non_neg_integer(),
      passive_rwl := non_neg_integer(),
      random_promotion := boolean(),
      random_promotion_interval := non_neg_integer(),
      shuffle_interval := non_neg_integer(),
      shuffle_k_active := non_neg_integer(),
      shuffle_k_passive := non_neg_integer(),
      xbot_enabled := boolean(),
      xbot_interval := non_neg_integer()}.
-type epoch() :: non_neg_integer().
The epoch_count indicates how many disconnect messages are generated.
-type epoch_count() :: non_neg_integer().
-type message_id() :: {epoch(), epoch_count()}.
-type message_id_store() :: #{partisan:node_spec() := message_id()}.
-type passive() :: sets:set(partisan:node_spec()).
-type reserved() :: #{atom() := partisan:node_spec()}.
-type t() :: #state{}.
-type tag() :: atom().
The epoch indicates how many times the node is restarted.

Link to this section Functions

Debugging.
Debugging.
Link to this function

cast_message(Term, MEssage)

View Source
-spec cast_message(Term :: partisan_remote_ref:p() | partisan_remote_ref:n() | pid(),
             MEssage :: partisan:message()) ->
                ok.
Link to this function

cast_message(Node, ServerRef, Message)

View Source
Cast a message to a remote gen_server.
Link to this function

cast_message(Node, ServerRef, Message, Options)

View Source
Cast a message to a remote gen_server.
Link to this function

code_change(OldVsn, State, Extra)

View Source
-spec code_change(term() | {down, term()}, t(), term()) -> {ok, t()}.
Decode state.
Link to this function

forward_message(Term, Message)

View Source
Gensym support for forwarding.
Link to this function

forward_message(Pid, Message, Opts)

View Source
Gensym support for forwarding.
Link to this function

forward_message(Node, ServerRef, Message, Opts)

View Source
Forward message to registered process on the remote side.
Return local node's view of cluster membership.
Link to this function

handle_call(Cmd, From, State)

View Source
-spec handle_call(term(), {pid(), term()}, t()) -> {reply, term(), t()}.
Link to this function

handle_cast(Event, State)

View Source
-spec handle_cast(term(), t()) -> {noreply, t()}.
Link to this function

handle_info(Event, State0)

View Source
-spec handle_info(term(), t()) -> {noreply, t()}.
-spec init([]) -> {ok, t()}.
Link to this function

inject_partition(Origin, TTL)

View Source
Inject a partition.
Attempt to join a remote node.
Leave the cluster.
Remove another node from the cluster.
Return membership list.
Link to this function

members_for_orchestration()

View Source
Return membership list.
Register a trigger to fire when a connection drops.
Link to this function

on_down(Name, Function, Opts)

View Source
Register a trigger to fire when a connection drops.
Register a trigger to fire when a connection opens.
Link to this function

on_up(Name, Function, Opts)

View Source
Register a trigger to fire when a connection opens.
Return partitions.
Debugging.
Link to this function

receive_message(Peer, Channel, Cmd)

View Source
Receive message from a remote manager.
Reserve a slot for the particular tag.
Link to this function

resolve_partition(Reference)

View Source
Resolve a partition.
Link to this function

send_message(Name, Message)

View Source
Send message to a remote peer service manager.
-spec start_link() -> {ok, pid()} | ignore | {error, term()}.
Start the peer service manager.
Link to this function

supports_capability(Arg)

View Source
-spec supports_capability(Arg :: atom()) -> boolean().
Attempt to join a remote node.
Link to this function

terminate(Reason, State)

View Source
-spec terminate(term(), t()) -> term().
Update membership.