Module riaknostic_node

Functions that help diagnostics interact with the local Riak node or other members of the cluster.

Description

Functions that help diagnostics interact with the local Riak node or other members of the cluster.

Function Index

can_connect/0Attempts to connect to the local Riak node if it is not already, and returns whether connection was successful.
cluster_command/2Calls the given 0-arity module and function on all members of the Riak cluster.
cluster_command/3Calls the given module and function with the given arguments on all members of the Riak cluster.
cluster_command/4Calls the given module and function with the given arguments on all members for the Riak cluster, returning an error if the call doesn't complete within the given timeout.
local_command/2Calls the given 0-arity module and function on the local Riak node and returns the result of that call.
local_command/3Calls the given module and function with the given arguments on the local Riak node and returns the result of that call.
local_command/4Calls the given module and function with the given arguments on the local Riak node and returns the result of that call, returning an error if the call doesn't complete within the given timeout.
pid/0Retrieves the operating system's process ID of the local Riak node.
stats/0Fetches or returns previously fetched Riak statistics.

Function Details

can_connect/0

can_connect() -> true | false

Attempts to connect to the local Riak node if it is not already, and returns whether connection was successful.

cluster_command/2

cluster_command(Module::atom(), Function::atom()) -> term()

Equivalent to cluster_command(Module, Function, []).

Calls the given 0-arity module and function on all members of the Riak cluster.

See also: can_connect/0.

cluster_command/3

cluster_command(Module::atom(), Function::atom(), Args::[term()]) -> term()

Equivalent to cluster_command(Module, Function, Args, 5000).

Calls the given module and function with the given arguments on all members of the Riak cluster.

See also: can_connect/0.

cluster_command/4

cluster_command(Module::atom(), Function::atom(), Args::[term()], Timeout::integer()) -> term()

Equivalent to rpc:multicall(RiakClusterMembers, Module, Function, Args, Timeout).

Calls the given module and function with the given arguments on all members for the Riak cluster, returning an error if the call doesn't complete within the given timeout.

See also: can_connect/0.

local_command/2

local_command(Module::atom(), Function::atom()) -> term()

Equivalent to local_command(Module, Function, []).

Calls the given 0-arity module and function on the local Riak node and returns the result of that call.

See also: can_connect/0.

local_command/3

local_command(Module::atom(), Function::atom(), Args::[term()]) -> term()

Equivalent to local_command(Module, Function, Args, 5000).

Calls the given module and function with the given arguments on the local Riak node and returns the result of that call.

See also: can_connect/0.

local_command/4

local_command(Module::atom(), Function::atom(), Args::[term()], Timeout::integer()) -> term()

Equivalent to rpc:call(RiakNodeName, Module, Function, Args, Timeout).

Calls the given module and function with the given arguments on the local Riak node and returns the result of that call, returning an error if the call doesn't complete within the given timeout.

See also: can_connect/0.

pid/0

pid() -> string()

Equivalent to local_command(os, getpid).

Retrieves the operating system's process ID of the local Riak node.

See also: can_connect/0.

stats/0

stats() -> [proplists:property()]

Fetches or returns previously fetched Riak statistics.

See also: can_connect/0.


Generated by EDoc, Feb 18 2012, 03:37:56.