public class KnowledgeExchangeInterface
extends java.lang.Object
Constructor and Description |
---|
KnowledgeExchangeInterface(java.lang.String host,
java.lang.String port)
Access the KnowledgeExchangeInterface on host:port.
|
Modifier and Type | Method and Description |
---|---|
us.monoid.json.JSONObject |
PublishInformation(int nemid,
java.lang.String key,
us.monoid.json.JSONObject value)
Publish an Information value to KNOW
passes the id of the NEM sharing the information
|
us.monoid.json.JSONObject |
RequestInformation(int nemid,
java.lang.String key)
Request Information value using the Pull Method
passes the id of the requesting NEM
|
us.monoid.json.JSONObject |
SubscribeForInformation(int nemid,
java.lang.String callbackURI,
java.lang.String key)
A NEM subscribes for information to be sent out at a later date
|
public KnowledgeExchangeInterface(java.lang.String host, java.lang.String port)
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
java.io.IOException
us.monoid.json.JSONException
User Space Routing 0.10.3