Tutorial
April 26th, 2009
- Getting started
- Download - go to http://subrecord.org/files/ and pick the most recent snapshot
- Unpack, go to ‘bin’ directory (cd bin) and do ./infra-start.sh or infra-start.cmd depending on what your OS is
- The infrastructure will be bootstrapping (master, local data servers, web server etc)
- From now on a RESTful interface is ready. See ‘example’ dir scripts.
- When the whole thing is started and up and running you can try to consume the services:
SubRecordClient client = new SubRecordClient(”localhost:8282″);
Record r1 = new Record().attribute(”foo”, 1).attribute(”x”, “yyy”).attribute(”y”, true);
boolean result = client.put(”foo”, “boo”, “myid”, r1);
Record record = client.get(”foo”, “boo”, “myid”);
client.remove(”foo”, “boo”, “myid”);