Skip to content

Commit

Permalink
Some meat in the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
gdusbabek committed Nov 12, 2012
1 parent 8ade613 commit 8e11840
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
@@ -1,3 +1,22 @@
# Java Rackspace Service Registry client

Java client for Rackspace Service Registry.

## Build and run tests

mvn install

## Using the client

### Registration and Heartbeat

Client client = new Client("MY_RAX_USER", "MY_RAX_API_KEY", Region.US);

Map<String, String> metadata = new HashMap<String, String>();
metadata.put("host", "127.0.0.1");
metadata.put("testdata?", "absolutely");;
metadata.put("version", "0u812");

SessionCreateResponse sessionResponse = client.sessions.create(15, metadata);

sessionResponse.getHeartbeater().start();

0 comments on commit 8e11840

Please sign in to comment.