Skip to content
This repository has been archived by the owner on Apr 4, 2022. It is now read-only.

example of usage #10

Open
benoitc opened this issue Jun 6, 2015 · 7 comments
Open

example of usage #10

benoitc opened this issue Jun 6, 2015 · 7 comments

Comments

@benoitc
Copy link

benoitc commented Jun 6, 2015

Is there any documentation on how to use plumtree?

@cmeiklejohn
Copy link
Contributor

+1, would be awesome.

@sumerman
Copy link

sumerman commented Jun 7, 2015

+1

@ixmatus
Copy link

ixmatus commented Jun 9, 2015

Look at the tests? I know it's not the best answer but, hope this helps:

> plumtree:start().
...join assuming other node also has had `plumtree:start/0` executed
> plumtree_peer_service:join(OtherNode).
> plumtree_metadata:put({some, prefix}, <<"mykey">>, <<"myvalue">>).
...on other node...
> plumtree_metadata:get({some, prefix}, <<"mykey">>).

@jrwest
Copy link

jrwest commented Jun 9, 2015

This documentation from the original Cluster Metadata (Riak's usage of
plumtree before it was extracted to this library) is available here:
https://gist.github.com/jrwest/d290c14e1c472e562548. Hopefully it can be
helpful. Should probably move it somewhere better than my gists...

On Mon, Jun 8, 2015 at 6:55 PM, Parnell Springmeyer <
[email protected]> wrote:

Look at the tests? I know it's not the best answer but, hope this helps:

plumtree:start().
...join assuming other node also has had plumtree:start/0 executed
plumtree_peer_service:join(OtherNode).
plumtree_metadata:put({some, prefix}, <<"mykey">>, <<"myvalue">>).
...on other node...
plumtree_metadata:get({some, prefix}, <<"mykey">>).


Reply to this email directly or view it on GitHub
#10 (comment).

@benoitc
Copy link
Author

benoitc commented Jun 10, 2015

@jrwest thanks that helped a lot :)

@ixmatus sure but tests are not a doc :) Also I was looking specifically at how to handle your own broadcast handler. I didn't realised at first that it was mostly working like in riak_core...

@tsantero
Copy link
Contributor

@benoitc my apologies for a slow response to this, and thanks to @jrwest for sharing his gist. I hope to put together something that lives within the repo shortly.

@benoitc
Copy link
Author

benoitc commented Jun 17, 2015

@tsantero no worries :) I will also document the way it's used inside primer so it will give more hints too :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants