Friday, June 4, 2010

Using the BISSA console


Hi all! In this article we are going to demonstrate how to use the BISSA console for basic operations. As you know, Bissa is a distributed tuple space implementation, ie, a shared memory implementation that uses only tuples. You can read a little bit more about our implementation in our article "Bissa Shaping Up".
Bissa has three basic operations used to manipulate tuples in the space, write, read and take. The write operation allows you to write tuples to the space, the read operation allows to read tuples from the space and the take operation allows you to take tuples, ie read and remove tuples from the space. Using the BISSA console you can try these operations and test BISSA global space on your network.

Starting BISSA from scratch

To start BISSA where there is no other node available you need to bootstrap the first node. For this simply go to the configuration tab in the console and make sure the local and remote ip and ports are the same and click on "start".
Once BISSA is successfully started you will see the message "BISSA started" on the console.



Adding another node to the space


To add another node to the space you need to know the ip and port of an operating BISSA node. Add those details as the remote computer in the configuration tab and start the node.
Alternatively you can start a second process in the same machine. Here only the port changes between the local and remote computer, but make sure you set the setting "allow_loopback" to "true" in the freepastry.params file.
We have shown below how a second node is added to the earlier bootstrapped node.



Basic operations on BISSA

Write
once you've set up the space by starting BISSA on one or more nodes you can write tuples to it. To write a tuple simply write the elements separated by a comma in the space given under "write operation".


Read and Take
To read a tuple from the space you need to enter the tuple template you are interested in. For example, to retrive the earlier written tuple you can request a tuple with a template "hello,???" or any combination with one or more known elements. If a tuple is successfully read or taken it will be indicated in the BISSA console as given below.


That explains how to use the basic BISSA console. Hopefully, after playing around with it you will be inspired to develop an exciting application based on our implementation. (do let us know about it!)


No comments:

Post a Comment