Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Getting the Spin source, including examples

The Spin source is available from a public Subversion server.  Instructions for accessing the source are here.

Building Spin

Spin is written primarily in Java and uses the Apache Maven build tool.  (See the installation guide for more information on prerequisites.)  You should be able to check out the Spin trunk, or a release, and build it with

Code Block

 $ mvn install

The Spin source is divided into a number of Maven modules, some of which have sub-modules of their own.  (See the Maven reference for more information on what a module means in the Maven context.)  In particular, the examples/ module contains small example applications built with Spin, written in Java and Scala.  Example configuration files are also provided.  The code samples used here all come from the examples module.  Later, this document will refer to an example web application that allows testing Spin in a servlet container.  This web application is built by the examples/war/ moduleClint -- I envision the Developers Guide as more than a single topic -- Writing a Spin Query.  If I'm wrong then we should change the title to something other than Developer Guide. If I'm right and you expect to add more information, we'll figure out how to add a TOC or something.

Writing a Spin Query

A Spin network is a collection of nodes, which are objects that can perform queries. These nodes join together to form a network that allow queries to be broadcast from node to node and then aggregate results in reverse order. 

...