riak_test/include/rt_pipe.hrl
Bryan Fink cde2d2d20c convert riak_pipe eunit system tests to riak_test
This will allow us to remove the fragile setup/teardown logic in the
riak_pipe module.

pipe_verify_examples <- half of riak_pipe:basic_test_
pipe_verify_basics <- other half of riak_pipe:basic_test_
pipe_verify_exceptions <- riak_pipe:exception_test_
pipe_verify_handof <- riak_pipe:limits_test_
pipe_verify_sink_types <- riak_pipe:sink_type_test_
2013-01-11 12:25:24 -05:00

59 lines
1.2 KiB
Erlang

%% This is a copy of riak_pipe/include/riak_pipe.hrl, so that we don't
%% have to pull riak_pipe and its dependencies in as dependencies of
%% riak_test.
-record(fitting,
{
pid :: pid(),
ref :: reference(),
chashfun :: riak_pipe_vnode:chashfun(),
nval :: riak_pipe_vnode:nval()
}).
-record(fitting_details,
{
fitting :: #fitting{},
name :: term(),
module :: atom(),
arg :: term(),
output :: #fitting{},
options :: riak_pipe:exec_opts(),
q_limit :: pos_integer()
}).
-record(fitting_spec,
{
name :: term(),
module :: atom(),
arg :: term(),
chashfun = {chash, key_of} :: riak_pipe_vnode:chashfun(),
nval = 1 :: riak_pipe_vnode:nval(),
q_limit = 64 :: pos_integer()
}).
-record(pipe,
{
builder :: pid(),
fittings :: [{Name::term(), #fitting{}}],
sink :: #fitting{}
}).
-record(pipe_result,
{
ref,
from,
result
}).
-record(pipe_eoi,
{
ref
}).
-record(pipe_log,
{
ref,
from,
msg
}).