public class KnowledgeBlockClient
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
us.monoid.json.JSONObject |
publishInformation(int nemid,
java.lang.String key,
us.monoid.json.JSONObject value)
Set some data
|
us.monoid.json.JSONObject |
registerNEM(us.monoid.json.JSONObject registrationInfo)
New registration given a JSONObject which contains is the registration details.
|
us.monoid.json.JSONObject |
requestInformation(int nemid,
java.lang.String key)
Get some data
|
us.monoid.json.JSONObject |
subscribeForInformation(int nemid,
java.lang.String callbackURI,
java.lang.String key)
Subscribe for data given a request and send a response.
|
public us.monoid.json.JSONObject registerNEM(us.monoid.json.JSONObject registrationInfo) throws java.io.IOException, us.monoid.json.JSONException
java.io.IOException
us.monoid.json.JSONException
public us.monoid.json.JSONObject requestInformation(int nemid, java.lang.String key) throws java.io.IOException, us.monoid.json.JSONException
java.io.IOException
us.monoid.json.JSONException
public us.monoid.json.JSONObject publishInformation(int nemid, java.lang.String key, us.monoid.json.JSONObject value) throws java.io.IOException, us.monoid.json.JSONException
java.io.IOException
us.monoid.json.JSONException
public us.monoid.json.JSONObject subscribeForInformation(int nemid, java.lang.String callbackURI, java.lang.String key) throws java.io.IOException, us.monoid.json.JSONException
The caller on host remotehost, must listen for REST calls and handle the request http://remotehost:8500/update/ and the key as part of the path. e.g. http://remotehost:8500/update/VIM/Removed The latest data is sent as a POST to the caller.
java.io.IOException
us.monoid.json.JSONException
User Space Routing 0.10.3