basho/riak_kv — pull request #654 by rzezeski (2013-09-06 15:15:39+00:00)
Title: Generic AAE Status

This is replacing #596. It's been rebased against develop.

This pull request makes AAE entropy info parameterized on type. This allows both KV and Yokozuna to share almost all the same status code without copy pasta.

* Add a `Type` to entropy info. It represents the type of AAE being performed. Currently `riak_kv` or `yokozuna` but could be other things in the future.

* Export the `get_build_time` function as it can be reused by Yokozuna.

* Parameterize the module and function name used to compute all exchanges. KV has inter-partition exchange whereas Yokozuna is purely intra. I.e. Yokozuna exchange is always between the same partition, different services. By parameterizing the "all exchanges" calculation can let different services have different exchange patterns.