Tutorial

April 26th, 2009
  1. Getting started
    1. Download - go to http://subrecord.org/files/ and pick the most recent snapshot
    2. Unpack, go to ‘bin’ directory (cd bin) and do ./infra-start.sh or infra-start.cmd depending on what your OS is
    3. The infrastructure will be bootstrapping (master, local data servers, web server etc)
  2. From now on a RESTful interface is ready. See ‘example’ dir scripts.
  3. 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”);

  1. No comments yet.
  1. No trackbacks yet.