Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial support for processing a request through the event bus
When IntraHandlerJson gets called it sends a message on the event bus to the address "request.json". The handler registered at that address sends a separate message on the bus for each operation. When all of the operations have completed we call the reply handler provided with the message sent to the request.json address. That reply handler ends the http response. So far I have this working with an initial test in RawJsonITest. Still several things to be worked out like error handling and most importantly implementing handlers for each of the defined operations.
- Loading branch information
John Sanda
committed
Feb 17, 2013
1 parent
a452435
commit 8e3f27d
Showing
4 changed files
with
200 additions
and
7 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
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
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
11 changes: 11 additions & 0 deletions
11
src/test/resources/org/usergrid/vx/experimental/create_keyspace.json
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"e":[ | ||
{ | ||
"type": "CREATEKEYSPACE", | ||
"op": { | ||
"name": "create_ks_test", | ||
"replication": 1 | ||
} | ||
} | ||
] | ||
} |