|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.discovery.topics.TopicDiscoveryClient
public class TopicDiscoveryClient
Topic Discovery Client can be used to discover topic UUIDs by querying TDN
Created on Apr 8, 2005
| Constructor Summary | |
|---|---|
TopicDiscoveryClient(int clientEntityId,
String configFile,
Certificate _creds,
PrivateKey _priv,
String host,
String port,
String protocol)
Creates a TopicDiscoveryClient for discovering topics Assumes that the host/port/protocol of the broker have been previously determined (using for e.g. |
|
| Method Summary | |
|---|---|
void |
close()
|
SignedTopicAdvertisement[] |
discover(int queryType,
String query,
String TDN_ID,
int maxResponses)
Utility function to discover a topic. |
static void |
main(String[] args)
|
void |
onEvent(NBEvent nbEvent)
Upon the receipt of an event which has satisfied all the constraints, if any were provided, that needed to be satisfied prior to delivery |
void |
send(String topicName,
byte[] request)
Publishes the specified request(bytes) on the specifed topic |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TopicDiscoveryClient(int clientEntityId,
String configFile,
Certificate _creds,
PrivateKey _priv,
String host,
String port,
String protocol)
clientEntityId - clientId to useconfigFile - Path to ServiceConfiguration.txt file_creds - Client certificate_priv - Client's private keyhost - The host where a broker is runningport - The port to which to connect toprotocol - Protocol to use| Method Detail |
|---|
public SignedTopicAdvertisement[] discover(int queryType,
String query,
String TDN_ID,
int maxResponses)
queryType - -
Type of query (String, INT, TaG-value etc...query - -
The query for discovering topicsTDN_ID - -
IF NULL, broadcast the query on TOPIC_DISCOVERY topic, else can
specify a specific TDN to target this query
public void send(String topicName,
byte[] request)
topicName - -
The topic to which the request must be publishedrequest - -
The request to be published (in bytes)public void close()
public void onEvent(NBEvent nbEvent)
NBEventListener
onEvent in interface NBEventListenerpublic static void main(String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||