Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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(); |