ASOperations

The first example program you should examine is the ASOperations example. ASOperations defines and joins (as a leech) a space called myspace that has a very basic definition consisting of three fields.

You should launch more than one instance of ASOperations at the same time to see the different instances interacting with each other over the same space (for example, you can try the lock or compare and put operations).

ASOperations is a basic example that demonstrates how to connect to a metaspace, define and join a space, and invoke the basic methods of the API for performing operations on the space, such as put and get. ASOperations is the first example that you should examine and run to get familiar with ActiveSpaces. ASOperations is also sometimes run with other examples, so it is a good idea to become familiar with it first.

The table shows some of the features of ActiveSpaces that ASOperations exercises:

Metaspace Connect, close, begin transaction, commit transaction, rollback transaction.
Space Define, close, get, put, putAll, take, compare the previous tuple value and if still the same do a put, get the number of entries in a space, display the entries in the space, lock, unlock.